trained from scratch on Modal

SLM‑125M

A 125-million-parameter Llama-style language model, pretrained from random weights on a legal and financial corpus. Give it the start of a sentence and it continues in the legal register.

125.8M
parameters
16,384
vocab
1,024
context
2.04B
train tokens
8.35
val perplexity
4
epochs
your prompt (a prefix to continue)
ready
The completion will appear here.

What this is base completer

This is a base model, not a chatbot. It was trained on next-token prediction only, so it continues text rather than answering questions. Prompt it with the opening of a sentence and watch it complete the thought.

The honest quality metric is held-out validation perplexity: 8.35 (lower is better), reached over 4 epochs of pretraining. It speaks the legal register fluently (case-citation phrasing, procedural language) but it does not know facts, at 125M parameters a model holds only about 31MB of usable knowledge. Grounded facts would need retrieval (RAG).

stream 3 datasets clean rule chain dedup + decontaminate 16K byte-level BPE pack 1024-token windows pretrain 8×H100, 4 epochs

Corpus: US case law (~40%), SEC filings (~40%), educational web text (~20%). First call may take ~15–30s while the model wakes from idle.