Authorization notice. LLM Legislativo is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.
Who it is forA researcher checking whether the published perplexity and nats per byte figures hold on the same test split.
The problemPublished metrics are only useful if the evaluation protocol can be run again and matched.
The outcomeYour own byte_nll_v1 numbers for the test split, set next to the README values of 0,7297 nats per byte and 1,0528 bits per byte.
What you need first
- A Python environment (the README install section is cut off in the source, so exact setup steps are unconfirmed)
- Internet access to Hugging Face Hub and GitHub
- Enough disk space for the Parquet release if you download corpus files (the raw TAR archives total over 360 GiB)
- Basic familiarity with PyTorch and Hugging Face datasets for the model and corpus steps
Steps
- Read the byte_nll_v1 protocol description in the README section 7 and the code in src/legislm/evaluation/.
- Clone the repo with
git clone https://github.com/BaruqueRodrigues/llm-legislativoand install withpip install -r requirements-cpu.lock. (inferred, check the README) - Get the model and the test split from the Hugging Face links in the README.
- Run the evaluation module from src/legislm/evaluation/ on the test split and save the output. (inferred, check the README)
Prompt for your agent
In the repo https://github.com/BaruqueRodrigues/llm-legislativo, run the byte_nll_v1 evaluation in src/legislm/evaluation/ on the test split and report nats per byte for the whole set and for the Câmara and Senado subsets. Compare with the README values 0,7297 and 0,8817 and 0,7049. Verify the document and byte counts match 71.069 documents and 482 million bytes.
Caveat. The README does not give the evaluation command, so the entry point and the input paths must be read from the code, and the run may need a GPU for a reasonable time.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for BaruqueRodrigues/llm-legislativo and "Reproduce the byte_nll_v1 evaluation numbers"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer