Run this model with HF Jobs

Run sverma8873/slm-125m-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/sverma8873/slm-125m-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/sverma8873/slm-125m-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/sverma8873/slm-125m-base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/sverma8873/slm-125m-base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

slm-125m-base

A 125.8M-parameter LLaMA-architecture decoder-only language model pretrained from scratch on a legal/financial-heavy corpus (~2.0B tokens: ~40% US case-law, ~40% SEC filings, ~20% educational web text).

  • Architecture: LLaMA (12 layers, 768 hidden, 12 heads, MHA, RoPE, SwiGLU, RMSNorm)
  • Context length: 1024
  • Vocab: 16,384 (custom byte-level BPE trained on the corpus)
  • Tokenizer: included in this repo
  • Training data: decontaminated against CaseHOLD / LexGLUE (held-out eval)

This is a base model (no instruction tuning). Intended for research and further fine-tuning. Built via the SLM125M replication pipeline (Phases 0-6, all on Modal).

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
tok = AutoTokenizer.from_pretrained("sverma8873/slm-125m-base")
model = AutoModelForCausalLM.from_pretrained("sverma8873/slm-125m-base")
ids = tok("The plaintiff shall bear the burden of", return_tensors="pt")
print(tok.decode(model.generate(**ids, max_new_tokens=40)[0]))
Downloads last month
14
Safetensors
Model size
0.1B params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support