Skip to content
SurogateSurogateDocs
↑↓ to move↵ to openesc to close

Qwen3 pretraining

The maintained pretraining examples show two ways to train on raw text: from random initialization with NorMuon, and continued pretraining of an existing model with AdamW 8-bit (see Optimizers).

bash
surogate pt examples/pt/qwen3.yaml
surogate sft examples/pt/qwen3-continue.yaml

pt always initializes from scratch. Continued pretraining uses sft with lora: false and loss_scale: all. Both examples train on the tiny Shakespeare corpus to show the workflow, with explicit validation and checkpointing.

Next: Quickstart: pretraining walks through a first run step by step.