Tokens per forward pass
In the serving benchmark, up to 3.10 on GSM8K. AR decoding commits 1.00.
Generate several tokens per forward pass, verified by the model's own autoregressive path. The same AR answer, with less waiting.
Zoro served self-speculatively, against the same checkpoint decoding one token at a time.
In the serving benchmark, up to 3.10 on GSM8K. AR decoding commits 1.00.
Versus 216 tok/s for the AR path, with verify-guaranteed AR quality.
Concurrency 1, threshold 0.9, reasoning on, HybridDiffusion SGLang integration. The full-mask recipe makes Zoro a better drafter, so it is fastest at low concurrency.Choose Zoro for text generation, Zoro-1 for text and typed decisions, or explore the original Trida-7B.
Qwen3.5-4B base
The reference model. Block size 8, served self-speculatively or as plain AR. Tuned from an agent-aligned base for tool use and Korean agent tasks.
Qwen3.5-4B base · vision enabled
Text generation and typed decisions in one model, with calibrated probabilities for every option.
First generation · since January 2026
Continually pre-trained from Tri-7B for Korean, English and Japanese. To our knowledge, the first block-diffusion language model openly released in Korea.
Each training row holds the prompt, a noised copy of the response and a clean copy, tied together by one attention mask.
Each noised block attends to the prompt and to the clean copies of earlier blocks, so generation stays left-to-right block by block.
Inside a block, positions see each other in both directions, so the whole block can be predicted in a single pass.
Every committed token is an accepted draft equal to the AR token, or the AR correction. The gain is tokens per pass, never a different answer.
Concurrency 1, threshold 0.9, reasoning on. A vanilla Qwen3.5-4B baseline is being added.
| Benchmark | Self-speculative | AR |
|---|---|---|
| GSM8K | 84.2 | 89.3 |
| MMLU-Pro | 63.0 | — |
| IFEvalprompt-strict | 69.7 | — |
| BFCLnon-live AST | 65.2 | — |
| Ko-AgentBenchL1 / L2 | 0.909 / 1.00 | — |
| FunctionChatcall / completion | 0.85 / 0.88 | — |
| tau2retail / airline / telecom | 0.40 / 0.50 / 0.80 | — |
From the Zoro model card. Ko-AgentBench and tau2 are small suites, so differences under about 0.1 are within run-to-run noise.
Convert a pretrained AR checkpoint to block diffusion, then train, serve and evaluate it. No diffusion pre-training needed.
Native-torch FSDP2 trainer with packing, bucketing and multi-turn supervision. The output is a stock Hugging Face causal LM plus a mask token.
Causal, block-diffusion or self-speculative decoding through SGLang's HybridDiffusion integration or a self-contained vLLM plugin, both OpenAI-compatible.
Quick GSM8K, MMLU-Pro and IFEval checks, plus agentic harnesses: BFCL, tau2, FunctionChat, Ko-AgentBench, SWE-bench.
PYTHONPATH=. torchrun --nproc_per_node=8 train.py \
--model_id Qwen/Qwen3-4B \
--bd_size 32 --ar_loss_weight 0.2 \
--max_length 32768 --pack \
--save_dir checkpoints/my-bd-run
# diffusion draft → AR verify (default)
python inference/serve.py --port 30000
# the same checkpoint as plain AR
python inference/serve.py --mode causal --port 30000
| Family | Attention | Notes |
|---|---|---|
| Qwen3 | Full attention (dense) | Baseline path: dense block masks, standard KV cache |
| Qwen3.5 | Hybrid: gated-delta linear + periodic full | Hybrid-aware masking; rollback by state snapshot and restore |
The trainer works with any Hugging Face causal LM whose decoder is reachable via
model.get_decoder(). serve.py also fronts other block-diffusion families: SDAR and LLaDA 2.
Not with this recipe. It is trained for single-shot full-block drafts, which is exactly what self-speculative decoding needs. Serve it self-speculatively or as plain AR.
A stock causal LM, an added mask token, and a block_diffusion.json sidecar with the
block size, mask id and AR loss weight. The repo's model contract lists the details.
Trida Stack and Zoro's weights are Apache-2.0; each model's card states its license.