FLUNG 8B

FLUNG is our first step into language modeling. It brings the flow models behind FLUX to text: instead of writing one token at a time, FLUNG drafts 128 tokens at once as noise and refines all of them in parallel, decoding up to 6.5 tokens per forward pass.
FLUNG 8B is a 7.9B parameter (9.0B including embeddings) language flow transformer, trained with variational flow matching on about 1T tokens of open-source data and post-trained for chat. It is competitive with open-source discrete diffusion models on math, code and instruction following, and runs on a single GPU.
Released as a research artifact under CC BY-NC 4.0 with the paper Towards Training Your Language Flow Model from Scratch (Abdessaied et al., Black Forest Labs, 2026). It is not intended for commercial use or production deployment.
Key features
- A flow model that works as a general-purpose language model at 8B scale, trained from scratch on open-source data only.
- Parallel decoding: 4.8 tokens per forward pass with the default sampler and 6.5 at 32 steps with early stop, within 2 points of full 64-step denoising on every benchmark below.
- Weights released for non-commercial research under CC BY-NC 4.0.
Usage
Requires torch and transformers (tested with 4.57.6).
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": "A train leaves at 9:40 and arrives at 13:15. How long is the trip in minutes?"}]
out = model.generate_chat(messages, tokenizer) # 64 steps per 128-token block, early stop n=4
print(out["text"])
# Sampling settings can also be overridden per call.
fast = model.generate_chat(messages, tokenizer, steps=32, stable_stop=0, max_new_tokens=512, seed=1973)
Training
About 1T tokens in total, from open-source datasets only.
- Pre-training: ~0.82T tokens (web, code, math).
- Mid-training: 200B tokens (higher-quality web, code and math, plus instruction data).
- Supervised fine-tuning: 4.7B tokens (code, math, instruction following, chat, science, safety).
- Distillation: guidance distillation, then flow-map step distillation, so the model samples in 32-64 steps per 128-token block.
- Preference tuning: offline DPO, then online GRPO with rewards from unit tests, reference answers, constraint checkers and an LLM judge.
Main data sources: Nemotron-CC, Nemotron pre-training code and math, FinePDFs-Edu, FineMath, Dolma 3 Dolmino, OpenMathInstruct-2, OpenCodeInstruct, Nemotron post-training sets, Tülu 3 and SmolTalk. The full list of datasets, with mixture weights and licenses, is in the paper's data appendix. No training data is redistributed with this model.
Evaluation
Zero-shot generative benchmarks from the paper (mean of 3 seeds; MT-Bench judged by GPT-4.1). Early stop (ES) stops denoising a block once its argmax readout has not changed for 4 consecutive steps; ES rows are in green. HE = HumanEval.
Sampler for all rows: temperature 0.3, top-p 0.9. See the paper for baselines and evaluation details.
Intended use and limitations
- Intended use: non-commercial research on language flow models and non-autoregressive generation.
- Out of scope: commercial use, production deployment, and any use where incorrect or harmful output can cause harm without human review.
- Accuracy: like other language models of this size, FLUNG can produce plausible but incorrect statements, code and reasoning.
- Language: trained mostly on English text and code; other languages are not evaluated.
License and attribution
- Weights and code: CC BY-NC 4.0 (see
LICENSE). - Tokenizer files: Qwen3 tokenizer, Apache 2.0 (see
NOTICE_TOKENIZER). - Training datasets are credited in the paper's data appendix.
Citation
@article{abdessaied2026flung,
title = {Towards Training Your Language Flow Model from Scratch},
author = {Abdessaied, Adnen and Addanki, Ravichandra and Sauer, Axel and Podell, Dustin and Rombach, Robin},
journal = {arXiv preprint arXiv:2612.06003},
year = {2026}
}