Architecture
~8 min readUpdated: December 2026

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

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.

Technical Review: Smoke Monkey Core Architecture Team
Tested on Node.js 18+ & BunTypeScript 5.x
Quick Answer & Executive Definition

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.

Key Architectural Takeaways
Quick Implementation Exampleflung-8b-parallel-agent.ts
flung-8b-parallel-agent.tstypescript
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);
Video Guides

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 Configtok/fwdGSM8KMATHHumanEvalHE+MBPPMBPP+IFEvalMT-Bench
64 + ES (default)4.887.950.570.765.756.560.876.05.68
64 (fixed)2.088.951.071.767.157.762.776.35.78
32 + ES6.588.549.770.365.756.161.975.65.71
32 (fixed)4.089.150.370.565.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:

python
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).

Google Search Questions & Answers

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 guides

Build with Smoke Monkey Harness

Zero dependencies. 24 built-in tools. Human-in-the-loop safety. 100% open source under the MIT License.

npm install smoke-monkey-harness