FLUNG 8B Language Flow Model: Parallel 128-Token Decoding Architecture

FLUNG 8B (black-forest-labs/flung-8b, arXiv:2612.06003) is a 7.9B-parameter (9.0B including embeddings) language flow transformer trained with variational flow matching on ~1T open-source tokens. Instead of autoregressive 1-token decoding, FLUNG drafts 128-token blocks as noise and refines them in parallel, yielding 4.8 to 6.5 tokens per forward pass.
FLUNG 8B Language Flow Model: Parallel 128-Token Decoding Architecture: FLUNG 8B (black-forest-labs/flung-8b, arXiv:2612.06003) is a 7.9B-parameter (9.0B including embeddings) language flow transformer trained with variational flow matching on ~1T open-source tokens. Instead of autoregressive 1-token decoding, FLUNG drafts 128-token blocks as noise and refines them in parallel, yielding 4.8 to 6.5 tokens per forward pass. Designed as a zero-dependency, open-source TypeScript architecture under the MIT License with native Model Context Protocol (MCP) support and deterministic phase state machines.
- Multi-Token Parallel Throughput: Decodes 4.8 tokens/forward pass at default 64+ES settings and 6.5 tokens/forward pass at 32+ES with <2-point benchmark delta.
- Transparent 1T Open-Source Pretraining: Trained from scratch across Nemotron-CC, FinePDFs-Edu, FineMath, Dolma 3 Dolmino, OpenMathInstruct-2, and OpenCodeInstruct.
- Five-Stage Post-Training & Distillation: Combines 4.7B SFT tokens, guidance + flow-map step distillation, offline DPO, and online GRPO with unit-test rewards.
- Single-GPU BF16 Execution: 9,032,087,168 BF16 parameters (~18.06 GB weights) run cleanly on a single 24 GB–48 GB CUDA GPU via Hugging Face Transformers.
import { createAgent } from '@smoke-monkey/harness';// Wrap local FLUNG 8B Python/FastAPI OpenAI-compatible bridge inside Smoke Monkey Harness// Note: FLUNG 8B is CC BY-NC 4.0 (non-commercial research artifact only)const agent = createAgent({agentId: 'flung-8b-flow-researcher',provider: 'openai-compatible',baseUrl: 'http://127.0.0.1:8090/v1',model: 'black-forest-labs/flung-8b',workspacePath: process.cwd(),permissions: {read_file: 'allow',write_file: 'ask',run_command: 'ask',},});async function main() {const result = await agent.run('Benchmark 32-step vs 64-step early-stop denoising latency on our HumanEval+ test fixture and log tok/fwd metrics.');console.log('FLUNG 8B Research Run:', result.summary);}main().catch(console.error);
Watch: Related Video Guides
Simple Diffusion Language Models
Flow-Matching vs Diffusion Models explained side by side
What Is FLUNG 8B and How Does Variational Language Flow Work?
FLUNG 8B is Black Forest Labs' first language model (black-forest-labs/flung-8b, arXiv:2612.06003), adapting continuous flow-matching techniques from FLUX image synthesis to discrete text generation. With 7.9B non-embedding parameters (9,032,087,168 BF16 parameters total including embeddings), FLUNG initializes 128-token output blocks as noise and iteratively refines the entire block in parallel.
Because each block converges via flow-map step distillation, an early-stop (ES) criterion halts denoising as soon as the argmax token readout remains unchanged for 4 consecutive steps (stable_stop=4). Across zero-shot math, code, and instruction benchmarks (mean of 3 seeds), 32-step sampling with early stop hits 6.5 tokens per forward pass while staying within 2 points of full 64-step refinement:
| Sampler Config | tok/fwd | GSM8K | MATH | HumanEval | HE+ | MBPP | MBPP+ | IFEval | MT-Bench |
|---|---|---|---|---|---|---|---|---|---|
| 64 + ES (default) | 4.8 | 87.9 | 50.5 | 70.7 | 65.7 | 56.5 | 60.8 | 76.0 | 5.68 |
| 64 (fixed) | 2.0 | 88.9 | 51.0 | 71.7 | 67.1 | 57.7 | 62.7 | 76.3 | 5.78 |
| 32 + ES | 6.5 | 88.5 | 49.7 | 70.3 | 65.7 | 56.1 | 61.9 | 75.6 | 5.71 |
| 32 (fixed) | 4.0 | 89.1 | 50.3 | 70.5 | 65.9 | — | — | — | — |
Running FLUNG 8B on a Single GPU with Custom Step & Early-Stop Controls
FLUNG 8B requires PyTorch and transformers==4.57.6 with trust_remote_code=True. At ~18.06 GB in torch.bfloat16, the checkpoint loads on a single 24 GB RTX 4090 or 48 GB workstation GPU, leaving room for 128-token block scratchpads during inference.
Notice the explicit trade-off exposed by generate_chat: keeping steps=64 with default early stopping (n=4) averages 4.8 tokens/forward pass, whereas overriding steps=32 boosts effective parallel decoding to 6.5 tokens/forward pass:
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?"}
]
# Default: 64 denoising steps per 128-token block, early stop after 4 unchanged argmax steps (4.8 tok/fwd)
default_out = model.generate_chat(messages, tokenizer)
print(default_out["text"])
# High-throughput fixed 32-step override (disable early stop with stable_stop=0)
fast_out = model.generate_chat(messages, tokenizer, steps=32, stable_stop=0, max_new_tokens=512, seed=1973)
print(fast_out["text"])CC BY-NC 4.0 Non-Commercial Research License
Black Forest Labs released FLUNG 8B strictly as a non-commercial research artifact under CC BY-NC 4.0. Do not deploy FLUNG 8B weights into commercial production APIs without separate licensing.
Five-Stage Training Recipe: Pretraining, Flow-Map Distillation, and Online GRPO
Unlike discrete masked diffusion models trained solely with cross-entropy over random masks, FLUNG 8B executes a five-stage pipeline over ~1T open-source tokens: 0.82T pretraining (web, code, math), 200B mid-training (high-quality web/code/math + instructions), 4.7B SFT, two-phase distillation (guidance distillation followed by flow-map step distillation down to 32–64 steps), and preference tuning (offline DPO + online GRPO using unit-test verifiers, reference answers, and constraint checkers).
For agent researchers inside Smoke Monkey Harness, this demonstrates why verifiable unit-test rewards during post-training directly stabilize non-autoregressive code generation (70.7% HumanEval / 65.7% HumanEval+ at 4.8 tok/fwd).
Frequently Asked Questions
Q:How many tokens per forward pass does FLUNG 8B generate?
FLUNG 8B decodes 4.8 tokens per forward pass using its default 64-step sampler with early stopping (n=4), and 6.5 tokens per forward pass at 32 steps with early stopping.
Q:What is the difference between 7.9B and 9.0B parameter counts for FLUNG 8B?
FLUNG 8B has 7.9B non-embedding transformer parameters and 9.0B total parameters (9,032,087,168 BF16 weights) when including token embeddings.
Q:Can I deploy FLUNG 8B in a commercial SaaS product?
No. FLUNG 8B is released under CC BY-NC 4.0 as a non-commercial research artifact accompanying arXiv:2612.06003.
Q:How much VRAM is needed to run FLUNG 8B in BF16?
At 9.03B BF16 parameters (~18.06 GB weights), FLUNG 8B runs on a single 24 GB or 48 GB CUDA GPU with transformers 4.57.6.
Related Alternatives & Comparisons
Related Architecture Guides
View all guidesBest Open Source Coding Agents in 2026: Free, Local & Fully Hackable Harnesses
MCP Server Security Best Practices: Hardening Model Context Protocol Agents in 2026
Open Source Coding Agent Harness: Build a Forkable, Local AI Engineering Runtime
Build with Smoke Monkey Harness
Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.