Vizuara AI Labs · trained from scratch

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.19B
train tokens
8.36
val perplexity
10
epochs
Validation metrics along the 125M lineage
Each perplexity is measured on that stage's own validation set, so read the trend as 'how well the model fits its own stage's data', not as one curve on one dataset. DPO and RLAIF optimize preferences rather than likelihood, so they log preference margin and reward instead of perplexity. Click a stage to open that model.
Base
ppl 8.36
pretrain val
QA SFT
ppl 6.06
QA val
Instruct
ppl 6.85
instruction val
DPO
margin 75.4%
preference val, no ppl
/
RLAIF
reward 9.9→11.7
RM reward, no ppl
RAFT on DPO
ppl 2.01
RAFT val
/
RAFT on RLAIF
ppl 2.04
RAFT val
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.36 (lower is better), reached over 10 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, 5 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.

what this model cost to build
$120.79 total to assemble, on real Modal billing
Data & tokenization $2.15Pretraining $118.64
StageCostShare
Data pipelinecorpus clean + dedup + 16K tokenizer + tokenize (CPU)$2.151.8%
Pretraining10 epochs on 8x H100, 21.9B tokens seen, incl. smoke runs$118.6498.2%
Total to assemble$120.79100%

Almost all of it is one line: 10 epochs of pretraining on 8x H100. Building the corpus and the tokenizer that fed it cost $2.15; the GPUs that learned from it cost $118.64.

Figures are actual invoiced Modal usage (GPU + CPU + memory) for this model’s lineage, not estimates. Serving is billed separately and scales to zero.