Black Forest Labs' FLUNG 8B Generates 6.5 Tokens per Pass Without Autoregressive Training
Black Forest Labs, the team behind FLUX, extends flow matching to language with an 8B parallel-decoding model that drafts 128 tokens at once.
Takeaways
- Black Forest Labs released FLUNG 8B, its first language model, under CC BY-NC 4.0.
- Flow-matching transformer drafts 128 tokens as noise and refines them in parallel.
- Decodes 4.8 tokens per forward pass default, up to 6.5 with early stopping at 32 steps.
- Trained from scratch on ~1T open-source tokens, no autoregressive warm-start or auxiliary loss.
- Matches LLaDA and Dream on math, code, instruction following; trails autoregressive baselines.
- Paper Towards Training Your Language Flow Model from Scratch details the full recipe.
Black Forest Labs, the Freiburg lab behind the FLUX image models, has released FLUNG 8B, its first language model. FLUNG has 7.9 billion parameters, or 9.0 billion when embeddings are counted. The lab trained it on roughly one trillion tokens of public data using variational flow matching, then post-trained it for chat.
The model weights are available under CC BY-NC 4.0. A companion research paper documents the architecture, data mixture, training stages, distillation process, and preference tuning.
How 128 tokens emerge together
FLUNG begins each generation block with noise representing 128 tokens, then refines the entire block over multiple model evaluations. An autoregressive decoder requires a separate sequential step for each new token. FLUNG’s parallel refinement allows several completed tokens to emerge from each forward pass.
The default sampler allows up to 64 refinement steps and uses stable early stopping. Black Forest Labs reports an average of 4.8 generated tokens per forward pass under that configuration. A 32-step configuration reaches 6.5 tokens per pass while remaining within about two points of the 64-step result on every reported benchmark.
Generated tokens per forward pass measures decoding parallelism. Wall-clock throughput also depends on hardware, batch size, prompt length, serving software, and the cost of evaluating each 128-token block.
The token leakage problem
Flow matching trains a model to move samples from Gaussian noise toward the data distribution along a continuous path. Images already occupy a continuous numerical space, while language models ultimately select discrete token IDs represented by continuous embedding vectors.
The paper defines a decodability boundary as the noise level at which a corrupted embedding reveals enough information to recover its original token. Below that boundary, the model can infer the answer directly from the noisy embedding instead of learning useful relationships among tokens. The authors use this analysis to choose the architecture and noise schedule.
FLUNG’s network starts from randomly initialized parameters. Its pre-training does not use an autoregressive checkpoint, pretrained embeddings, a language encoder, or an auxiliary next-token objective. Earlier language diffusion and flow systems have often used one or more of those components to stabilize training.
Five stages, roughly one trillion tokens
The training pipeline moves from broad pre-training through supervised and preference-based post-training:
- Pre-training: About 820 billion tokens of web text, code, and mathematics.
- Mid-training: 200 billion tokens of higher-quality web, code, mathematics, and instruction data.
- Supervised fine-tuning: 4.7 billion tokens covering code, mathematics, conversation, science, and safety.
- Distillation: Guidance distillation followed by flow-map step distillation, reducing generation to 32 to 64 refinement steps per block. The paper reports sampling speedups of up to 13 times relative to its teacher configuration.
- Preference tuning: Offline direct preference optimization, followed by online group relative policy optimization using unit tests, reference answers, constraint checkers, and an LLM judge.
Named data sources include Nemotron-CC, FineMath, Dolma 3 Dolmino, OpenMathInstruct-2, OpenCodeInstruct, Tülu 3, and SmolTalk. The training stack reuses the Qwen3 tokenizer, while the model parameters themselves are initialized from scratch.
Parallel decoding by the numbers
The default 64-step sampler with stable early stopping produced the following zero-shot generative results in the model card:
| Benchmark | Score | Capability |
|---|---|---|
| GSM8K | 87.9 | Grade-school mathematics |
| MATH | 50.5 | Competition mathematics |
| HumanEval | 70.7 | Python code generation |
| IFEval | 76.0 | Instruction following |
| MT-Bench | 5.68 | Multi-turn conversation |
Each benchmark uses its own scoring method, so scores should be compared within a row rather than across tasks. Sampler settings also affect results because fewer refinement steps increase parallelism and can reduce answer quality.
Compared with iLLaDA 8B, FLUNG trails on MATH and matches or leads it on GSM8K and the reported coding evaluations. Under the same MT-Bench judge, FLUNG performs similarly to LLaDA and Dream, then trails LLaDA 1.5 and iLLaDA 8B.
Sigma 8B outperforms FLUNG on mathematics and code at two generated tokens per forward pass. Sigma starts from a strong autoregressive model and retains an auxiliary autoregressive loss, giving the comparison a different training setup. In the paper’s seven-task evaluation, the classical autoregressive baseline leads every diffusion or flow variant.
Run it with custom model code
FLUNG loads through the custom Transformers implementation distributed with the weights. A single GPU can run the bfloat16 model when it has sufficient memory. Nine billion bfloat16 parameters occupy roughly 18 GB before framework, activation, and generation overhead.
import torch
from transformers import AutoModel, AutoTokenizer
repo = "black-forest-labs/flung-8b"
tokenizer = AutoTokenizer.from_pretrained(
repo,
trust_remote_code=True,
)
model = AutoModel.from_pretrained(
repo,
trust_remote_code=True,
dtype=torch.bfloat16,
).to("cuda").eval()
messages = [
{
"role": "user",
"content": "Explain flow matching in one paragraph.",
}
]
out = model.generate_chat(messages, tokenizer)
print(out["text"])
Loading with trust_remote_code=True executes Python from the model repository. Production and shared environments should pin a reviewed repository revision and run the code in an isolated environment.
The generation helper exposes controls including steps and stable_stop. Lower step counts increase generated tokens per forward pass and may reduce quality. The repository also documents serving paths for vllm serve and SGLang.
A research license with hard limits
The CC BY-NC 4.0 license requires attribution and limits the published weights to noncommercial use. The model card positions FLUNG for research on flow-based language models, non-autoregressive generation, distillation, and post-training.
Suitable research projects include:
- Measuring parallel decoding and latency under controlled hardware configurations.
- Comparing flow, diffusion, and autoregressive models on mathematics, code, and instruction following.
- Testing guidance and flow-map distillation at different sampling budgets.
- Applying DPO or GRPO to non-autoregressive backbones.
- Studying noise schedules and the decodability boundary for discrete tokens.
Deployment constraints include:
- Context: A maximum sequence length of 16,384 tokens.
- Modalities: Text input and output only.
- Languages: Training focused mainly on English and code; other languages were not evaluated.
- Reliability: The model can generate plausible but incorrect facts, programs, and reasoning.
- Commercial use: Product deployment requires separate permission from the rights holder.
A from-scratch baseline for language flows
Earlier non-autoregressive language research frequently relied on an autoregressive initialization, an auxiliary next-token loss, small models, or evaluations limited to tasks such as translation and summarization. FLUNG extends the experiment to a general-purpose model with an 8-billion-parameter backbone, chat post-training, online reinforcement learning, and a published training recipe.
The release provides a controlled baseline for testing whether blockwise flow generation can close the quality gap with autoregressive models. Its reported parallelism establishes a measurable starting point, while the remaining comparisons show weaker accuracy on several mathematics, coding, and general-language tasks.
End-to-end latency at equal quality and compute remains an open research question. Reproducing the results across common GPUs, serving stacks, batch sizes, and output lengths will determine how much of the reported forward-pass advantage becomes practical throughput.