Instructions to use sfanm/d24-sft-v5-simplechat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sfanm/d24-sft-v5-simplechat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sfanm/d24-sft-v5-simplechat") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sfanm/d24-sft-v5-simplechat") model = AutoModelForCausalLM.from_pretrained("sfanm/d24-sft-v5-simplechat") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use sfanm/d24-sft-v5-simplechat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sfanm/d24-sft-v5-simplechat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sfanm/d24-sft-v5-simplechat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/sfanm/d24-sft-v5-simplechat
- SGLang
How to use sfanm/d24-sft-v5-simplechat with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "sfanm/d24-sft-v5-simplechat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sfanm/d24-sft-v5-simplechat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "sfanm/d24-sft-v5-simplechat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sfanm/d24-sft-v5-simplechat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use sfanm/d24-sft-v5-simplechat with Docker Model Runner:
docker model run hf.co/sfanm/d24-sft-v5-simplechat
d24-sft-v5-simplechat
d24-sft-v5-simplechat is an experimental 756,819,456-parameter English
chat model for research on supervised fine-tuning and reinforcement learning.
It is the canonical simple-ChatML SFT policy from the d24 v5 lineage.
All 756,819,456 parameters in the published safetensors file are BF16.
Lineage
ftajwar/d24-climbmix-100b: pretrained from scratch on about 100B tokens of ClimbMix.ftajwar/d24-climbmix-dolmino-midtrain-100b: continued-pretrained for another approximately 100B tokens on 80% OLMo-3 Dolmino plus 20% ClimbMix replay.- This checkpoint: one epoch of SFT on the standard d24 conversation mixture, formatted with the simple ChatML template.
The model has seen approximately 200B pretraining/midtraining tokens before SFT.
The v5 label identifies this training lineage; it is not a parameter-count
label.
Architecture
| Field | Value |
|---|---|
| Parameters | 756,819,456 |
| Layers | 24 |
| Hidden size | 1,536 |
| Attention heads | 12 (MHA) |
| FFN size | 4,096 (SwiGLU/SiLU) |
| Position encoding | RoPE, theta 10,000 |
| Normalization | RMSNorm |
| Embeddings | Tied |
| Tokenizer | GPT-2 BPE, vocabulary padded to 50,304 |
| Maximum context | 2,048 tokens |
| Published weight dtype | BF16 |
The Hugging Face architecture is LlamaForCausalLM, but the model uses the
GPT-2 tokenizer and the d24 architecture above. It is not a Llama-family
pretrained checkpoint.
SFT data and training
The source conversations are the
sfanm/d24-sft-mixture
research mixture: SmolTalk, MMLU auxiliary data, GSM8K, spelling tasks, and
identity examples. The local simple-ChatML preparation produced 227,443 packed
training sequences and 7,381 packed validation sequences at length 2,048, with
about 476M tokens across both splits.
Training used:
| Hyperparameter | Value |
|---|---|
| Epochs / steps | 1 / 1,777 |
| Global / micro batch | 128 / 1 |
| Sequence length | 2,048 |
| Optimizer | AdamW |
| Peak / minimum LR | 1e-4 / 1e-5 |
| LR schedule | Cosine, 50-step warmup |
| Adam betas / epsilon | (0.9, 0.95) / 1e-8 |
| Weight decay | 0.1 |
| Gradient clip | 1.0 |
| Precision | BF16 |
The final SFT validation language-model loss was 0.79675 (perplexity 2.2183). This is an in-distribution SFT validation metric, not a downstream capability or safety evaluation.
Chat format and stopping
The template is:
<|im_start|>user
...<|im_end|>
<|im_start|>assistant
...
<|im_end|> is a literal string represented by seven GPT-2 BPE tokens. It is
not eos_token_id=50256 and is not a registered special token. Generation
must stop on the string <|im_end|>; otherwise the model can continue into
another turn until max_new_tokens.
Transformers usage
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "sfanm/d24-sft-v5-simplechat"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto",
).eval()
messages = [
{
"role": "user",
"content": "Natalia sold clips to 48 friends in April and half as many in May. How many total?",
}
]
prompt = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
output = model.generate(
**inputs,
max_new_tokens=512,
do_sample=False,
stop_strings=["<|im_end|>"],
tokenizer=tokenizer,
)
response = tokenizer.decode(
output[0, inputs.input_ids.shape[1]:],
skip_special_tokens=False,
)
print(response)
For vLLM, use SamplingParams(stop=["<|im_end|>"]).
Intended use
- research on SFT, RLVR, GRPO/RLOO/maxRL, and small-model behavior;
- a warm-start chat policy for the d24 regular-RL recipes;
- controlled comparisons with other d24 SFT checkpoints.
The accompanying unified-training repository contains the reproducible
cluster setup, current RL defaults, and algorithm baselines in
docs/REGULAR_RL_TRAINING.md.
Limitations and evaluation caveats
- This is a small experimental research model and has not undergone production safety alignment or a comprehensive capability/safety evaluation.
- It can produce incorrect, incoherent, biased, or unsafe text. Verify outputs independently and do not use it for high-stakes decisions.
- The context window is 2,048 tokens.
- The SFT mixture includes GSM8K training examples. Do not treat GSM8K results
from this checkpoint as a clean no-exposure benchmark. The separate local
d24-sft-v5-nogsm8k-hfcheckpoint exists for that control but is not part of this repository. - Chat generation is incorrect unless the caller stops on the literal
<|im_end|>string. - The model and SFT mixture derive from multiple upstream datasets. The Hub
metadata therefore uses
license: other; review the source dataset licenses and terms before redistribution or downstream use.
Reproducibility
- SFT checkpoint:
sft-d24-v5-simplechat/iter_0001777 - HF export:
d24-sft-v5-simplechat-hf - Chat template:
src/nemotron/data_prep/templates/simple_chatml.jinja - Training repository:
yudasong/unified-training
- Downloads last month
- 4
Model tree for sfanm/d24-sft-v5-simplechat
Base model
ftajwar/d24-climbmix-dolmino-midtrain-100b