qwen3-0.6b-en-tr-hackable-diffusion-m1m-blocks
EnglishโTurkish diffusion translation model with the Qwen3-0.6B architecture and tokenizer, trained with Google's Hackable Diffusion SFT recipe in JAX: the library's SFT diffusion model, uniform categorical noise on a fixed target canvas, its denoising loss on every canvas slot plus its next-token loss on the causal pass, and its sampler. The optimisation loop is plain JAX/optax (not Kauldron's trainer); all parameters are float32.
Training
- Start: the autoregressive model
xl-arof this project, itself trained from random weights (no pretrained Qwen weights anywhere). - Data: the 1M-pair tier of
imrunya/en-tr-parallel-filtered-25m(human translations and web-crawled pairs). - Recipe: prompt_len=96, canvas_size=32, batch_size=32, accumulation=1, learning_rate=0.0001, warmup_steps=500, min_lr_ratio=0.1, weight_decay=0.1, adam_beta2=0.95, max_grad_norm=1.0, self_cond_prob=0.5, time_sampling=uniform, encoder_loss_weight=1.0, decoder_loss_weight=1.0, compute_dtype=bfloat16, shift=False, loss_region=all, seed=42.
- Run facts: pairs=986939, examples_per_step=32, steps_per_epoch=30841, max_steps=60827, filler_share=0.2813.
- Weights in this repo: the end of training, step 60827. (The quick dev score, 200 FLORES dev sentences decoded in 16 states, was best at step 55000: chrF++ 23.32.)
- Hardware: one A100-40GB.
Evaluation
| evaluation | decoding | flores200-devtest | wmt17 |
|---|---|---|---|
| hd-m-blocks-final-e192 | sampler=prior_entropy, steps=192, temperature=0.7, feedback=raw | 23.1 / 4.2 / 35.9 | โ |
| hd-m-blocks-final-ddim-argmax | sampler=ddim_argmax_final, steps=64, temperature=0.7, feedback=raw | 24.4 / 4.6 / 37.4 | โ |
| hd-m-blocks-final-ddim | sampler=ddim, steps=64, temperature=0.7, feedback=raw | 25.4 / 4.5 / 37.1 | โ |
| hd-m-blocks-ddim-argmax | sampler=ddim_argmax_final, steps=64, temperature=0.7, feedback=raw | 29.5 / 6.1 / 42.1 | โ |
| hd-m-blocks-ddim | sampler=ddim, steps=64, temperature=0.7, feedback=raw | 29.4 / 5.6 / 41.0 | โ |
| hd-m-blocks-final-s192 | sampler=ddim_argmax_final, steps=192, temperature=0.7, feedback=raw | 25.4 / 5.1 / 38.4 | โ |
| hd-m-blocks-final-wmt17 | sampler=ddim_argmax_final, steps=64, temperature=0.7, feedback=raw | โ | 23.9 / 4.8 / 43.8 |
| hd-m-blocks-final-e64 | sampler=prior_entropy, steps=64, temperature=0.7, feedback=raw | 22.6 / 3.9 / 35.0 | โ |
| hd-m-blocks-final-greedy | sampler=ddim_greedy, steps=64, temperature=0.7, feedback=raw | 24.4 / 4.9 / 37.5 | โ |
| hd-m-blocks-final-s32 | sampler=ddim_argmax_final, steps=32, temperature=0.7, feedback=raw | 23.2 / 4.0 / 35.6 | โ |
| hd-m-blocks-final-s16 | sampler=ddim_argmax_final, steps=16, temperature=0.7, feedback=raw | 21.8 / 3.2 / 34.1 | โ |
Each cell: chrF++ / BLEU / COMET-22.
ddim is the library's default sampler (every slot re-drawn at temperature 0.7 on every step, including the last); ddim_argmax_final takes the most likely token on the last step; prior_entropy is the entropy-bound sampler DiffusionGemma uses. Evaluations named -final- use the weights in this repo.
Usage
# code: https://github.com/rayendito/dlm_trajectory (branch dlm/imran), package hd_mt/
python -m hd_mt.evaluate --checkpoint <this repo, downloaded> --name my-eval \
--benchmarks flores200-devtest --sampler ddim_argmax_final --steps 64 --temperature 0.7
params.safetensors holds the float32 Flax parameter tree (keys are the Flax paths joined by /);
hd_mt.checkpoints.load_params restores it and hd_mt.model.build builds the model from hd_config.json.
Prompt format: <|im_start|> English <|im_end|><|im_start|>; the translation ends at <|im_end|>.