Views
No views yet
runs/run_quantum_sft_128m.sh (Stage 3: SFT).<|user_start|>/<|assistant_start|> special tokens),
not raw text continuation.CCCCCCCCCCAAAAAA)n_embd=1024, 16 query heads / 8 KV heads (GQA), head_dim=64, seq_len=1024vocab_size=32768theta=1e6, full (non-windowed) attention, value embeddings disabledconfig.json (metadata only) and meta_001291.json (exact
training config this checkpoint was produced with). This is a custom
architecture, not a transformers model -- there is no AutoModel support.MarkChenX/lfm2-quantum-128m-sft (step 849), warm-started from
its optimizer state (momentum buffers)nanochat/ source needed to load and run the
model, so it's self-contained (no need to clone the full training repo).1pip install torch tiktoken rustbpe filelock kernels
2hf download MarkChenX/lfm2-quantum-128m-sft-v2 --local-dir ./lfm2-quantum-128m-sft-v2
3cd lfm2-quantum-128m-sft-v2
4python inference.py --prompt "What is the capital of France?"inference.py for the full loading + generation code: it builds the model
from model_001291.pt + meta_001291.json, loads the tokenizer from
tokenizer/, wraps the prompt in the chat special tokens
(<|user_start|>...<|user_end|><|assistant_start|>), and streams the response
via the model's own .generate() until <|assistant_end|>.optim_001291_rank0.pt is the matching Muon/AdamW optimizer state for this
step. To continue training with the original
Quantum-GPT repo, place model_001291.pt,
optim_001291_rank0.pt and meta_001291.json under
$NANOCHAT_BASE_DIR/chatsft_checkpoints/lfm2-quantum-128m/, then run:1RESUME_FROM_STEP=1291 bash runs/run_quantum_sft_128m.sh # continue SFT
2# or
3MODEL_TAG=lfm2-quantum-128m SKIP_SFT=1 bash runs/run_lfm2_sft_rl.sh # move to RL