Fetches a random Hacker News comment and scores it with Laya, a local System One decision model. No LLM, no account, no API key.
~/.cache/huggingface)uv run main.py
uv run main.py --comment "This is the best explanation I have ever read!"
uv run main.py --min-points 50
uv run main.py --download-only # cache all Laya checkpoints and exit
With no flags, it prints a fetching notice, the comment, and the analysis:
Fetching a random Hacker News comment...
Comment by simonw
"Is this meant to link to the article..."
---------- analysis ----------
Sentiment: Neutral ████████░░ 79%
Sarcasm: No (not sarcastic) █████████░ 89%
Emotion: Neutral ████████░░ 76%
Toxicity: Not toxic █████████░ 93%
Constructive: Not constructive ██░░░░░░░░
Useful: █░░░░░░░░░ 12%
--min-points (default 10) from
the official Hacker News Firebase API, then a random comment from it.
Comment scores are not exposed by any public API, so the filter applies
to the story score.Router().predict() call with 7 typed questions
(choice/score/noul) in a single forward pass — no text is
generated, so nothing is parsed and nothing is hallucinated.After the first run, analysis is fully offline (HF_HUB_OFFLINE=1).
11 commits
Python
100.0%
Fetches a random Hacker News comment and scores it with Laya, a local System One decision model. No LLM, no account, no API key.
~/.cache/huggingface)uv run main.py
uv run main.py --comment "This is the best explanation I have ever read!"
uv run main.py --min-points 50
uv run main.py --download-only # cache all Laya checkpoints and exit
With no flags, it prints a fetching notice, the comment, and the analysis:
Fetching a random Hacker News comment...
Comment by simonw
"Is this meant to link to the article..."
---------- analysis ----------
Sentiment: Neutral ████████░░ 79%
Sarcasm: No (not sarcastic) █████████░ 89%
Emotion: Neutral ████████░░ 76%
Toxicity: Not toxic █████████░ 93%
Constructive: Not constructive ██░░░░░░░░
Useful: █░░░░░░░░░ 12%
--min-points (default 10) from
the official Hacker News Firebase API, then a random comment from it.
Comment scores are not exposed by any public API, so the filter applies
to the story score.Router().predict() call with 7 typed questions
(choice/score/noul) in a single forward pass — no text is
generated, so nothing is parsed and nothing is hallucinated.After the first run, analysis is fully offline (HF_HUB_OFFLINE=1).
11 commits
Python
100.0%