Llama 3.2 1B — Dolma 3
Pretraining from random initialization under constrained token and compute budgets.
Training Repository · Training Recipe · Weights & Biases
Overview
This model is a 1B-parameter causal language model trained from random initialization on allenai/dolma3_mix-150B-1025, following the Llama 3.2 1B architecture.
The project investigates how optimizer design, learning rate scheduling, batch size policies, and knowledge distillation affect language model pretraining under limited token and compute budgets.
The released checkpoint uses the R5 training recipe, which combines NorMuon and AdamW with online knowledge distillation from a frozen Llama 3.2 3B teacher.
| Value | |
|---|---|
| Student parameters | 1B |
| Teacher parameters | 3B |
| Student training tokens | 6.0B |
| Context length | 8,192 |
| Optimizer updates | 28,619 |
| Training compute | 64.71 H200 GPU-hours |
| Held-out perplexity | 12.3989 |
No pretrained student weights or intermediate training checkpoints were loaded. The pretrained teacher provides additional supervision during training and is not required for inference.
Evaluation Results
Three training recipes were evaluated using the same student architecture, initialization seed, student token budget, and held-out documents.
| Training recipe | Fixed 1K PPL ↓ | Combined 10K PPL ↓ |
|---|---|---|
| NorMuon + AdamW, without KD | 12.7739 | 12.9078 |
| R5: Online knowledge distillation | 12.2678 | 12.3989 |
| C2: Adaptive batching + early decay | 12.3953 | 12.5380 |
The released R5 checkpoint achieves a 3.94% reduction in held-out perplexity relative to the non-distilled baseline at the same student token budget.
This comparison does not imply equal training compute, as online distillation introduces additional teacher inference costs.
All results are obtained from single-seed experiments. R5 is the best-performing recipe among the completed 6B-token experiments in this project.
Training Dynamics

The left panel shows the R5 training objective and next-token cross-entropy. The right panel compares held-out perplexity across the three training recipes as a function of cumulative student input tokens.
The training curves use a fixed 1,000-document evaluation subset. The final results reported above use the combined 10,000-document set.
Interactive training curves · Figure data and reproduction instructions
Model Details
| Configuration | Value |
|---|---|
| Architecture | Llama 3.2 1B |
| Model type | Decoder-only Transformer |
| Training initialization | Random initialization with residual-half scaling |
| Vocabulary size | 128,256 |
| Training context length | 8,192 |
| Attention implementation | FlashAttention-3 |
| Attention masking | Intra-document causal attention |
| Training precision | FP32 student parameters with BF16 autocast |
| Random seed | 42 |
The architecture and tokenizer are inherited from meta-llama/Llama-3.2-1B, but the student parameters are initialized independently.
Training Data
The model is trained on Dolma 3 Mix 150B 1025 using the canonical, unfiltered dataset preparation.
The dataset is globally shuffled at the document level with seed 42. The final 50,000 documents are reserved for evaluation and excluded from the training corpus before tokenization and sequence packing.
Training sequences are packed into 8,192-token contexts with document-aware causal attention, preventing attention across document boundaries.
- Training dataset revision:
afa92bfb22366821c5e6cd427cdd036b34b713ef - Total student input tokens: 6,000,082,944
- Reserved evaluation documents: 50,000
- Evaluated documents: 10,000
Usage
This model is compatible with Hugging Face Transformers and can be loaded as a standard causal language model.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "asciibase64/Llama-3.2-1B-dolma3_mix"
revision = "3f9196e11f990ed2cb60fcf558d5f1f07a7a36d6"
tokenizer = AutoTokenizer.from_pretrained(
model_id,
revision=revision,
)
model = AutoModelForCausalLM.from_pretrained(
model_id,
revision=revision,
torch_dtype=torch.bfloat16,
device_map="auto",
).eval()
prompt = "The fundamental idea behind machine learning is"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.inference_mode():
outputs = model.generate(
**inputs,
max_new_tokens=128,
do_sample=True,
temperature=0.8,
top_p=0.95,
pad_token_id=tokenizer.eos_token_id,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This is a base language model rather than an instruction-tuned or chat model.
Intended Use and Limitations
This checkpoint is primarily intended for research on language model pretraining, knowledge distillation, optimization, and training efficiency.
- The student is randomly initialized, but training benefits from knowledge transferred from a pretrained teacher.
- The reported comparison controls for student input tokens, not total compute or teacher training data.
- Results are based on single-seed experiments and do not establish statistical significance.
- No matched full-length unaccelerated KD experiment is available to establish end-to-end quality equivalence for the execution optimizations.
- Evaluation is limited to held-out language modeling perplexity. Downstream task performance, reasoning ability, and safety have not been systematically evaluated.
- The model has not undergone instruction tuning or safety alignment and may generate inaccurate, biased, or harmful content.