Explore the research collection
4 entries · Follow this search
- Tool
K2 Horizon data release — DATA_NAVIGATOR index and the post-training data-generation pipelines
IFM's open release of the K2 Horizon training data (datasets queued as #121–125) and the pipelines that generated it, announced as "the most detailed open LLM data release yet" — an UNVERIFIED first-party superlative (the dataset cards carry identical boilerplate provenance and NO per-dataset token counts, so the post's 13T-token figure cannot be decomposed or checked from the cards; the detail lives in the repos and blog). PIPELINES: (1) pretraining-data-toolkit — annotates web documents with WebOrganizer topic/format classifiers, scores with FineWeb-Edu + two fastText quality scorers, buckets into FIVE quality tiers, two-pass distributed shuffle; ships `party`, a CLI record inspector. (2) search360 — dense retrieval over the corpus (Contriever + FAISS IVFPQ; production index 1.6B passages / 145M documents) grounding most synthetic generation; NO index or corpus ships with the repo. (3) Wzip — a new compressor (adaptive multi-window LZ77 + windowed Huffman) built because gzip/zstd diversity metrics saturate at scale; blog claim (chart only, no numbers): their synthetic data's measured diversity "approaches high-quality natural web text." (4) PRism (GitHub PRs → agentic coding data): curator (merged PRs + discussion + diffs, 1–15 changed files), annotator (local-LLM labels via vLLM), synthesis — pr_thoughts (LLM writes the missing developer reasoning around REAL diffs; only prose is synthetic), pr_tasks (tasks with controlled hint levels), pr_task_synthesis (agents build VERIFIED RL environments in Harbor format — kept only if the eval script FAILS on the pre-fix repo and PASSES after the fix), pr_chain_agent_datagen (a repo's successive PRs replayed as ONE long multi-turn session, hundreds of thousands of tokens, with LLM-compacted handoffs). (5) advisor — a PRIVILEGED advisor model sees the reference solution, hidden tests, and private notes; at a proposed finish or every k turns it reviews the solver's draft and either keeps it or has the solver REGENERATE the turn after a short solver-safe cue; privileged material never enters the solver's context or the recorded trajectory (one disclosed exception: the ReasoningPrefillCue variant places the hint at the opening of the solver's next reasoning block — "guarded, not guaranteed solver-safe"); ships a leak/coherence audit tool. Quantified result (strongest in the release, first-party): over 168,990 tasks, solver alone solved 54.1%; advised reruns of previously unsolved tasks brought the total to 73.0% (+18.9pp) of tasks yielding a successful trajectory — IFM's own caveat: this measures trajectory yield, NOT a per-attempt pass rate under matched conditions. (6) task-factory — a Markdown program for a coding agent: pick checkable problems, write Harbor tasks, verify the reference solution passes AND wrong answers fail, audit for reward hacking, calibrate difficulty against a real agent (status: pre-release). (7) process_entry — the strict validator every K2 mid/post-training conversation passed: turn structure, JSON-schema-valid tool calls, no degenerate loops, no leaked special tokens or other templates' markers, no foreign model identity; design principle "Reject, never repair." (8) file-manipulation-pipeline and agentic_semantic_packing — office-file tasks from 57 work templates; simulated-user personas (1,296 combinations) + search360 → length-targeted research conversations (both self-described as reference implementations; packing ships a simplified generate.py). (9) LCQA — questions about selected passages, training example shows the whole document. HEADLINE FINDINGS from the announcement: (a) MIXTURE — the chosen web-heavier pre-training mix ranked LAST in small experiments but was picked because scaling predictions put it first at the 20T-token target: "Small-scale wins can mislead" — small-scale mixture rankings INVERTED at target scale. (b) "More verification isn't always better. Strict verification can throw away useful training signal" — elaborated in the post's follow-up thread: loss is computed on individual TOKENS, not documents, so a wrong answer token can be one bad label among thousands of useful ones; strict document-level verification discards valuable content and narrows diversity, so for pre-training they deliberately skipped verification on most synthetic data. Still a first-party claim, and the shipped tooling cuts the other way on the post-training side (process_entry is strict-by-default, task-factory's gates are "never skipped") — so read it as a pre-training-specific tradeoff, not a general anti-verification stance. (c) "Beyond teacher imitation" — >100M unique synthesized tasks; trajectories the teacher couldn't generate alone (chain-replay sessions; advisor-guided rescue). Scale/context (blog, first-party): ~17% of the pre-training corpus is problem-solving trajectories with explicit reasoning; >10T synthetic tokens; each fleet model pretrained on ~20T tokens (blog elsewhere says the smaller models trained on "exactly the same 22 trillion tokens" — 20T vs 22T never reconciled; the released 13T is inferred to be the REDISTRIBUTABLE portion per the blog's license caveat — no source states the 13T↔20T relationship directly). REWARD-HACKING SELF-AUDIT (blog; procedure is Artificial Analysis's, execution IFM's): flagship on Terminal-Bench 2.1 scored 70.2% raw; auditing every passing trial → corrected 66.9% (−3.37pp); IFM also discloses its 7B found and downloaded SWE-bench answers, producing an inflated 82 it disowns. Caveats: several pipelines are reference implementations, not turnkey (file-manipulation "won't run elsewhere without changes"; task-factory pre-release; PRism-curator/annotator ship no examples); the flagship's independent evaluation coverage is thin (Artificial Analysis pages exist for at least the 3.7B); blog-vs-card contradiction on llama.cpp support for the flagship (also flagged in #111's orbit — unresolved); post overstates the advisor ("directly edit a solver's reasoning" — the advisor never edits; the solver regenerates after a cue).
- Tool
Dist-MoE: Speed-of-Light Distributed Mixture-of-Experts Forward and Backward Kernels
A library of fused communication-and-compute kernels for expert-parallel (EP) MoE on NVIDIA SM100+ (Blackwell) GPUs. The caller supplies top-k expert IDs and scores (routing itself is out of scope); a reusable context owns symmetric, peer-addressable HBM dispatch/combine buffers (NVLink) and executes dispatch → grouped expert GEMM (W13 → SwiGLU → W2) → combine as one ordered operation, with forward and backward (FPROP/DGRAD/WGRAD) kernels throughout. Precision/pipeline matrix: BF16 "standard" (training + inference); MXFP8 E4M3 in Staged (separate W13 and SwiGLU/W2 kernels) or Mega (both projections fused into one chunk-pipelined kernel with chunk-local readiness) pipelines (training + inference); NVFP4 in Staged or Mega, inference only, prepared weights. Kernels are CuTe/CUTLASS-DSL; validated stack is Linux ARM64, PyTorch 2.14 + CUDA 13.0, NCCL 2.30.7; no CPU fallback. Two mechanisms distinguish it from DeepEP (dispatch/combine comms only, no fused expert compute), MegaBlocks, DeepSeek's Mega MoE/DeepGEMM (fused forward only, no fused training backward), ByteDance Comet/Flux (no CUDA graphs on the dynamic-routing path, no packing policy), and Cursor's Mixture-of-Kittens (MoK): (1) dynamic activation packing — a planner packs saved forward state from all layers sharing an activation slot into one bounded buffer instead of reserving a per-layer budget, and it works during CUDA-graph replay; (2) dynamic, capacity-driven recompute — when the slot budget is exhausted the planner keeps mandatory layer inputs and rebuilds the remaining intermediates in backward, decided by device predicates so the host launches one fixed, graph-stable sequence (soft limit; scratch overflow without VMM host-backed overflow is a hard error). Also: full CUDA-graph support and non-strict make_fx (full torch.compile/strict export explicitly NOT supported), fused post-expert RMSNorm + score weighting + top-k reduction, clamped SwiGLU, in-place WGRAD accumulation into standard parameter.grad, and no shared-expert branch required — routed-only execution, -1 expert ID disables a route (MoK's reviewed API, by contrast, requires shared-expert weights). TorchTitan integration: a DistMoeTransform swaps stock RoutedExperts for the Dist-MoE backend in place (same GroupedLinear parameter layout, so FSDP/optimizer/checkpoint ownership is unchanged; requires mixed_precision_param="bfloat16"), plus a rank-wide DistMoeRuntime.Config (scratch/activation-slot capacity factors, VMM factor, pipeline-parallel slot policy); verified 671B DeepSeek-V3 recipes ship in torchtitan_recipes, MXFP8 Mega fused inference is wired for RL generators, and NVFP4 inference is in the library but not yet exposed by TorchTitan. Benchmarks — ALL Meta-reported, GB300 NVL72, no independent replication: "useful" throughput counts only real GEMM FLOPs (fwd = 6·T·K·D·F per GPU; bwd = 2× fwd), excluding padding and replay work, divided by whole-layer iteration time (median of five 30-iteration CUDA-graph windows, slowest rank; comm/quantization/padding time stays in the denominator). Headline MoK comparison (both implementations given one BF16 shared expert, D=7,168, 384 experts, top-6, 2,048 tokens/GPU, CUDA graphs on): up to 1.40× over MoK — specifically the synthetic ten-layer packing training workload under per-layer routing imbalance (MXFP8, EP64), where Dist-MoE packed all ten layers' saved state at capacity factor 2.5 with zero capacity-induced recompute (peak allocation 49.73 GiB vs MoK 48.37 GiB); Meta notes the experiment does not isolate how much of the gain is avoided recompute alone. MoK was chosen as baseline because Cursor's published single-layer NVL72 results lead the other OSS stacks (DeepEP+PyTorch, DeepEP+TransformerEngine, HybridEP+Megatron). Separate standalone suite (zero shared experts, one routed layer): 3.09 useful PFLOP/s per GPU NVFP4 Mega inference (EP16), 1.86 MXFP8 Staged training (EP64), 1.27 BF16 training (EP64) — vs dense datasheet peaks of 15/5/2.5 PFLOP/s respectively. Imbalance scaling is sub-linear: NVFP4 inference EP16, 8× received rows on the busiest GPU → 4.82× iteration time (~40% lower time per received row). Stated limitations: SM100+ only; no NVFP4 training, MXFP8 E5M2, MXFP4, A8W4, communication quantization, or expert borrowing in this release; the explainer itself discloses that EP32/EP64 training ran at different sites, some allocations shared an NVLink fabric with unconfirmed timing overlap (not uncontended-peak evidence), and HBM byte rates are modeled, not measured.
- Tool
rl-env-use: RL Environments for Any Domain from Real Web-Mined Cases
An open-source tool that builds an RL environment / eval for a skill in any domain from real cases mined from the live web. Input is one line ("predict whether a completed trial met its primary endpoint from its registered protocol; ClinicalTrials.gov"); a planner writes a spec (skill, sources, conventions, outcome-blind sampling rule), then mining rounds loop mine → write → verify → frontier panel → harden → verify → panel until the task target, the budget, or two rounds with no new tasks. A case = the materials the model reads (a trial protocol, a 10-Q) plus its true outcome, published elsewhere or later; Browser Use agents mine both. Gold answers are computed by code from expressions over numbers in the materials; mined outcome facts must be quote-verified (the agent must surface the source quote). A frontier panel (Opus 5.5, GPT Astra, Gemini) measures difficulty — all-pass tasks are rewritten harder on the same case, up to two levels — and tasks are rejected for leaked answers, memorized outcomes (closed-book memory check), or ambiguous prompts. Grading is programmatic (number / date / set / exact / contains / probability), self-tested against null, foreign, and perturbed golds. The artifact is one folder, envs/<name>/: spec.json, kb.json (materials + quote-verified outcome facts + missions), tasks.jsonl (every drafted task with gold and checks; only passing tasks are served), audit.json, reviews.jsonl (human verdicts and gold fixes), and climb-<model>/ prompt versions. `export` writes the dataset for an RL trainer; `from rl_env_use import Env` serves it in code (reset, reward). Built directly on Anthropic's "Automating eval design and hillclimbing" workflow (Lance Martin, claude.dev, 28 Sep 2026; the claude-api skill's build-eval → hillclimb method) with one change: real web-mined cases instead of synthetic ones. The hillclimb loop edits a model's SYSTEM PROMPT (the model is fixed), split by case, with A/A noise floors — edits are kept only on a paired case-bootstrap test gain. Verification comparison (first-party; also shipped as a `compare` command that reruns mining with vanilla Claude Code — WebSearch + WebFetch, same model and instructions — through the same synth + verify pipeline): 8 clinical-trial-result missions, Claude Code verified 0 of 86 facts vs Browser Use 17 verified / 4 complete cases; a same-model rerun, 0 of 43 vs 3 verified / 2 complete; 8 human-genetic-variant missions (UniProt, gnomAD, GTEx), 6 of 82 vs 40 verified. Shipped example envs/trial-forecast: 35 forecasts from 29 ClinicalTrials.gov trials whose results were posted since July 2026, after the models' training data; built for $72 ($17 of it Browser Use). A prompt-climbed open Qwen 3.6 35B-A3B goes 0.53 → 0.78 on held-out tasks it never trained on (score = 1 − Brier; +0.25, 95% CI +0.07 to +0.45), level with Opus 5.5 (0.77) and below GPT-6 Astra (0.81); the climb kept 1 of 12 proposed edits (base-rate priors per question type). The README is explicit that most of the gain is calibration: always answering 50% scores 0.75, so the base model's 0.53 sat below the constant baseline because it answered 0 or 1. Maturity: repo created the day of the announcement (2026-10-21), 10 commits, 43 stars, no releases; Python 3.11+, optional Node 18+ for HTML reports; offline pytest suite included. Human review is built into the step-by-step mode (three sign-offs: cases, tasks/grading, pilot cost); an autonomous mode is the default.
- Tool
Open Env Arena — agent arena for RL environments
On 2026-10-08, Hugging Face's Ben Burtenshaw (community MLE) launched the Open Env Arena, an agent arena for RL environments: instead of agents competing on tasks, agents compete on defining the best RL environments. The loop: agents submit environment definitions (tasks + rewards), the platform trains a fixed base model (Qwen-3.8-27B) on them with a fixed training recipe, evaluates the resulting models, and posts scores to a leaderboard. The arena runs on PostTrainArena by @benchflow_ai (benchflow-ai/posttrainarena): the Hugging Face frontend reuses the Agent Collabs shared board/score chart/leaderboard with 'Add your agent' onboarding, while PostTrain runs headlessly through a CLI/API. It is fully agent-accessible: agents pull instructions from the Space's /AGENTS.md and /openapi.json and use arena_cli.py (discover, environments list, experiment list, board list) to share env datasets, track metrics, and send each other messages. Compute comes from Nebius GPUs. The underlying pipeline uses native task.md-format tasks, one-epoch LoRA SFT followed by LoRA GRPO over the training set, and held-out evaluation (the repo's data-agent canary shows 2,238 training / 366 held-out tasks). First round tackles a mix of 8 domains on held-out tasks, with the best environments evaluated on public benchmarks; future arenas will focus on specific domains and benchmarks.