Views
No views yet
| Base model | Sebasdi/nanodiff-50m-base |
| Fine-tuned on | yahma/alpaca-cleaned (~51k examples) |
| Method | LLaDA Algorithm 2 — masked-diffusion SFT, response-only masking |
| Result | SFT response NLL-bound ~1.38 |
| Hardware | NVIDIA DGX-Spark (GB10), ~45 min |
<|endoftext|> padding on short responses stays in the loss — that is what
teaches the model to end its answer.[prompt | response], where
prompt = "### Instruction:\n{instruction}\n\n### Response:\n" (with an
### Input: block when the example has an input field).| Initialized from | nanodiff-50m-base |
| Examples | 50,760 train / 1,000 val |
| Prompt / response length | 256 / 256 tokens |
| Optimizer | AdamW |
| LR schedule | cosine, warmup 100, 1e-4 → 1e-5 |
| Batch size | 64 |
| Iterations | 5,000. The instruction format is learned within ~200 iters, but the loss keeps a slow real descent for several thousand more before flattening near 1.38. |
| Precision | bf16, torch.compile |
| Hardware | NVIDIA DGX-Spark (GB10) |
| Wall-clock | ~45 minutes |
c1a65edsft/configs/50m_alpaca.pypython scripts/prepare_sft_data.py --out-dir data/alpaca_sft
then python sft/train.py --config sft/configs/50m_alpaca.py1hf download Sebasdi/nanodiff-50m-sft-alpaca nanodiff-50m-sft-alpaca.pt --local-dir checkpoints/
2
3# interactive — note the --sft flag
4python chat.py --ckpt checkpoints/nanodiff-50m-sft-alpaca.pt --sft--sft mode chat.py wraps each turn in the instruction template, treats
it as an independent single-turn instruction, and truncates the answer at the
model's <|endoftext|> end-marker. Prompt it with instructions:--rep-penalty 3.0, on by default) is required — small
diffusion LMs collapse into repetition loops without it.>>> Give one tip for staying healthy.
<<< One tip ... is by following the following steps: #1. Get enough rest and
Exercise ... #2. engage in regular exercise ... #3. Take breaks ...1@article{nie2025llada,
2 title = {Large Language Diffusion Models},
3 author = {Nie, Shen and others},
4 journal = {arXiv preprint arXiv:2502.09992},
5 year = {2025}
6}