IMPORTED BASE · TRAINED FROM SCRATCH

SLM-500M

A 518-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.

HuggingFace weights →
517.8M
Parameters
32,768
Vocab
1,024
Context
2.08B
Train tokens
7.91
Val perplexity
0.588
Bits / byte
Model lineage
interactiveconnecting…

Your prompt — a prefix to continue

Connecting to the inference endpoint…
The completion will appear here.
base completer

What this is

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: 7.91 (lower is better). It speaks the legal register fluently but does not know facts reliably — at this scale, grounded facts need retrieval (RAG).

Architecture
ClassLlamaForCausalLM
Layers24
Hidden size1,280
Attention20 heads · dim 64 · full MHA
Feed-forwardSwiGLU · inner 3,456
PositionalRoPE · θ 10,000
NormRMSNorm · ε 1e-5
Context1,024 tokens
Vocabulary32,768
Embeddingstied input/output
Training
ObjectiveNext-token pretraining
Pretraining tokens2.08B
Trainable herenone — imported base
Pretrained byDr. Sreedath Panat
What this model cost to build

$3.22 total Modal usage

our cost begins at fine-tuning — the base is imported.

StageDetailCost
RAFT fine-tunetrained on this base; no site of its own$1.74
Evaluation (shared)13 versions on 500 held-out questions, this model's share$1.48
Total$3.22

Figures are Modal GPU usage (time × rate) across this model's lineage; shared datasets are charged at this model's share. Whether base pretraining is included is stated above — it is for the models pretrained here, and excluded for imported bases. Evaluation-derived metrics come from an independent blind-judge harness on a frozen, decontaminated held-out set. Serving is billed separately and scales to zero.