For a real dataset, generate an editable starter project:
dllm init ./my-run
cd ./my-runAdd records such as {"text": "A training document."} to
data/train.jsonl, then prepare, validate, preview, and launch:
dllm data prepare --config prepare.yaml
dllm data validate data/prepared --config train.yaml
dllm launch --config train.yaml --dry-run
dllm doctor --config train.yaml
dllm launch --config train.yaml --nproc-per-node 1Edit training settings in train.yaml and data settings in prepare.yaml.
dllm init does not download data or model weights.
List the included smoke tests and examples:
dllm recipe list
dllm recipe show smoke/cpu-config
dllm config validate --recipe smoke/cpu-configCopy and edit an example:
dllm recipe copy examples/fast-dllm-v2-qwen3 ./qwen3.yaml
dllm config validate --config ./qwen3.yamlChange the sequence length, data path, and topology in qwen3.yaml before
launching it.
After installing a compatible GPU bundle, launch with:
dllm launch --config ./qwen3.yaml --nproc-per-node 8The launcher checks the configuration, GPU runtime, and prepared data before starting workers.
To train a DFlash2 draft and deploy it with vLLM or SGLang, use the step-by-step DFlash2 guide.