A 125.8M-parameter LLaMA-architecture language model trained from scratch on a
legal/financial/web data mix.
Legal-first mix (NOT 70/20/10): case-law ~40%, SEC filings ~40%, fineweb-edu ~20%.
Cleaned, deduplicated (exact + MinHash near-dup), and decontaminated against
CaseHOLD/LexGLUE eval sets. See the source repo's REPLICATION_GUIDE.md for the
full pipeline.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3tok = AutoTokenizer.from_pretrained("ankitw497/slm-125m-base")
4model = AutoModelForCausalLM.from_pretrained("ankitw497/slm-125m-base")