1.5B base language model trained from scratch in 24 hours
- Architecture:
Qwen3ForCausalLM(stock transformers class; no remote code needed) — 24 layers, d_model 2048, 16 heads × 128, SwiGLU 5504, RMSNorm + QK-norm, RoPE θ=1e5, untied embeddings, 1.48B parameters. - Context: 4096 tokens (
max_position_embeddings), trained with document-masked attention (no cross-document attention). - Tokenizer: byte-level BPE, 65,536 tokens, GPT-4-style pre-tokenization, lossless;
<|endoftext|>(id 0) is BOS/EOS and was prepended to every training document. - Data (48.5B tokens seen, 46,246 steps): DCLM-baseline, FineWeb-Edu, StarCoder (OLMo mix), Wikipedia, arXiv, peS2o, OpenWebMath, Algebraic-Stack, FineMath-4+, FineWeb-2 (8 languages).
- Optimiser: Muon (hidden matrices) + AdamW (embeddings, head, norm gains); warmup-stable-decay schedule with deadline-aware length; global batch 1.05M tokens; 16×H100.
Usage:
from transformers import AutoTokenizer, AutoModelForCausalLM
tok = AutoTokenizer.from_pretrained(path)
model = AutoModelForCausalLM.from_pretrained(path, dtype="auto")
ids = [tok.bos_token_id] + tok("Hello", add_special_tokens=False)["input_ids"]
This is a base model (no instruction tuning or safety training). See paper.md in the training workspace for details.