From Qwen backbone to JointSchemaHead: full PyTorch walkthrough of Cloudflare's CLEF decision model
amaarora · x · 2026-11-26
Aman Arora published a long-form blog dissecting the complete architecture of Cloudflare's CLEF decision model, aimed at building intuition for System One / Decision model internals.
- Covers data processing, the Qwen3.5-9B backbone (32 layers), hidden states, and JointSchemaHead — EvidenceRoutingLayer (options attend to memory), TransformerDecoderLayer (fields attend to each other), and Scoring (softmax per field yielding calibrated probabilities).
- Demo task: invoice status classification with per-option probabilities.
- Uses the CPU-runnable 9B clef-flash variant; JointSchemaHead identical to the 27B version. Excludes multimodal inputs and training/Brier loss.
Related event: Deep Dive into Cloudflare's Clef Decision Model Architecture(2 posts)→
More from Research
- Deep dive into Cloudflare Clef: a step-by-step PyTorch walkthrough of its decision-model architecture — amaarora · 2026-11-26
- Huawei and researchers unveil ASP scheduler, boosting RL training throughput up to 3.22x — jiqizhixin · 2026-11-26
- Adobe and Oxford present PointX: view-consistent intrinsics predicted per 3D surface point — ssh4net · 2026-11-26
- Six Easy Tasks: a real-world robotics benchmark humans ace at 100% while frontier AI models score 0% — chris_j_paxton · 2026-11-26
- Berkeley linguist: LLMs and animal communication erode human language exceptionalism — begusgasper · 2026-11-26
- Force2Act: force-aware robot policy hits 0% on simple task GPT-6.2 Astra can't do — chris_j_paxton · 2026-11-26