Explore the research collection
14 entries · Follow this search
- Code
slime v0.4.0: A First Step Toward Greater Scale
slime (THUDM) is an LLM post-training framework for RL scaling that connects Megatron training with SGLang rollout through a shared training/rollout/Data Buffer path; it is the RL framework behind the GLM-4.5 through GLM-5.3 model releases and supports Qwen, DeepSeek, and Llama 3 models (repo ~8.6K stars, Apache-2.0). Release v0.4.0, 'A First Step Toward Greater Scale', was motivated by OpenAI's Navier-Stokes research effort (~10,000 concurrent agents, ~130B output tokens), which prompted a rethink of RL infrastructure scale. Four architectural changes: (1) Focus — two training modes share one train.py lifecycle: synchronous training for algorithmic exploration and correctness, fully async training for throughput at scale (legacy train_async.py removed; PR #2391). (2) Distributed rollout — with the new straw backend, fully async rollout runs one rollout worker per Ray node on CPU resources, each with its own generation pool and asyncio event loop, so orchestration spreads across cluster CPUs instead of a single process bottleneck; training batches collect completed groups without waiting for every worker (PR #2410). (3) Persistent storage — straw (github.com/zhuzilin/straw) provides durable queues and shared tensor storage on a filesystem (JuiceFS currently supported): rollout workers publish payloads to shared storage and training ranks read by reference, moving bulk data off Ray's object-store transport; prompt tasks, partial rollouts, completed samples, and converted training batches persist as large append-only files to reduce small-file/filesystem metadata overhead, with checkpoint rollback support (PRs #2410, #2427). Select via --rollout-data-transport straw. (4) Independent recovery — Megatron training lifetime separated from the SGLang serving cluster: healthy engines/routers keep running after a training failure, and resubmitted training restores the last committed checkpoint and replays retained batches, reusing accepted samples and conversion results (PR #2444). Other improvements: score centering (REINFORCE objective with top-p replay and importance-sampling corrections, --use-score-centering, for training-inference mismatch); PipelineRL --flush-cache-interval letting unfinished requests and KV caches survive selected weight updates; streaming and agent rollouts (cumulative/incremental generation streams, partial-prefix retention, per-request cancellation); Biren SUPA and Ascend NPU accelerator backends; correctness fixes (linear-attention gradients under context parallelism, full-vocabulary reference logprobs in actor top-p replay, checkpoint shard selection in disk-delta sync); stack updated to Megatron Core 0.19.2, Transformer Engine 2.18.0, Flash Linear Attention 0.5.2, NCCL 2.30.7.
- Code
sfFFT: fused tensor-core FFT convolution for NVIDIA GB10 (DGX Spark)
sfFFT is an MIT-licensed fused tensor-core FFT convolution kernel for NVIDIA GB10 (DGX Spark), from the solidSF lab. It computes batched causal long convolutions (the operation at the heart of Hyena, H3, S4/SSM-style layers in convolution mode, and long audio/signal filters) in one kernel launch per batch: the forward FFT, pointwise filter-spectrum multiply, and inverse FFT all run in shared memory, with FFT stages executed as small dense DFT matrix multiplies on fp16 tensor cores with fp32 accumulation (a complex product takes four real MMAs). It uses the four-step/Bailey FFT factorization (N = R0 x R1 (x R2), radices 16/32/64) — the same structure as Monarch matrices and FlashFFTConv — with twiddles computed in registers via __sincosf, real-input/real-output stage pruning, and a filter spectrum precomputed once per channel and fused into the last forward stage. On one GB10 (sm_121, CUDA 13.0), batch 8x768 channels, it records 3.8x to 6.1x end-to-end speedup over the cuFFT pipeline (pad, R2C, pointwise multiply, C2R, slice) for lengths 128 to 8192, using the best measured plan per length and I/O type. ACCURACY CAVEAT (disclosed by the authors): sfFFT trades accuracy for speed — relative L2 error is ~3.3e-4 to 4.7e-4 with fp32 I/O and ~2.4e-3 with bf16 I/O (dominated by bf16 I/O rounding), versus ~3e-7 for the cuFFT fp32 pipeline against an fp64 reference — i.e. roughly 1,000x worse than cuFFT in fp32 and ~8,000x worse in bf16. This is a speed-vs-accuracy tradeoff, not a free speedup; the README states it is not a drop-in replacement for fp32 or fp64 scientific FFT work, and suitability for ML training/inference depends on the application's error tolerance. The repo ships an error-budget selector (--max-error) that benchmarks plans and picks the fastest candidate meeting a target, plus an experimental fp16-accumulation mode (1.11x-1.32x faster, ~0.24% error) and multiple allocator modes (device/managed/mapped/hybrid) for GB10's unified memory. Benchmark scope is GB10 only, lengths 128-8192 (memory max); repo created 2026-10-08, 11 commits. Code: github.com/solidsf-inc/sfFFT (MIT).
- Code
RSIGym: A Flexible Environment for Recursive Self-Improvement
RSIGym is an agent-native recursive self-improvement environment built on Everything as a Service: training (Tinker-backed LoRA), inference (OpenAI-compatible, Tinker), rollout (frontier-model gateway), evaluation (Harbor + E2B), sandbox (E2B SDK), and authorization (run keys, budget accounting) are reusable platform services, while the research agent works in a lightweight CPU-only container and spends its budget on improving the target system. Three improvement tracks are supported: Data (change training data), Harness (change execution harness, weights fixed), and Joint (data + training settings + harness together). RSI-Index measures how well frontier agents jointly improve a target model's weights and harness, defined as the mean fraction of the remaining performance gap closed across five benchmarks: RSI-Index = mean((final - initial) / (1 - initial)) over SWE-bench Verified (100 tasks), Terminal-Bench 2.0 (89), AIME 2024/2025 (60), GPQA Diamond (100), and SkillsBench (37, science/office/finance). In the main Joint-track study (six research agents improving Qwen3.5-35B-A3B-Base with a minimal harness, $500 platform-service budget per benchmark run), Opus 5 leads at RSI-Index 0.4809, followed by Opus 5.5 (0.4528), DeepSeek V4.1 Flash (0.4343), Astra (0.4093), Sol 6.1 (0.3321), and Sol 6 (0.2079). Opus 5's selected systems improve all five benchmarks: SWE-bench Verified 17.67% to 50.33% and AIME 31.67% to 97.78% (Terminal-Bench 10.49% to 26.97%, GPQA 51.33% to 83.33%, SkillsBench 1.65% to 21.21%). 29 of 30 Joint runs improve; four different researchers lead at least one benchmark. Two additional experiments: Opus 5 iterating the DSH harness with Qwen3.6-35B-A3B-Instruct weights fixed raises Terminal-Bench from 30.34% to 40.82% (tasks solved on all three attempts increase 15 to 26); and Qwen3.8-27B acting as its own researcher completes training, candidate comparison, and submission but scores 56.26% vs 56.66% initially on SkillsBench - its six-task development gain does not translate into an overall improvement.
- Code
Bergson: An Open Source Library for Data Attribution
Open-source library (EleutherAI) unifying data attribution methods for LLMs across compute budgets. Implements MAGIC, SOURCE, EK-FAC, ASTRA, and TrackStar — the first open-source implementations of MAGIC, SOURCE, and TrackStar. Finetuning leaderboard: MAGIC tops (0.931), EK-FAC and ASTRA are both fast and accurate, SOURCE excels at multi-stage runs; TrackStar's efficient approximate scores enable cheap pretraining attribution via two-stage retrieval (amortize costs with on-disk gradient stores and ANN indices, then refine top scores with a more precise method). Also supports token-level attribution (claimed 10x data-filtering performance gain), GRPO rewards for attributing model behaviors, and optimizations like bucket batching and multi-node support. Answers 'how do LLMs generalize / why do they become misaligned?' by looking at the training data. Relevant to the user's LLM training setups (dataset curation, debugging misalignment) and GRPO work.
- Code
Orbit: Stable and Efficient Reinforcement Learning for Trillion-Parameter LLMs
May 2026 SphereLab technical blog + Apache-2.0 GitHub Sphere-AI-Lab/orbit. Holds base at deployment precision during train and rollout; gradients only on BF16 adapter (default OFT for stability under low-bit bases). Reports stable single-node RL on Kimi-K2.6 (~1T), DeepSeek V4-Flash, DeepSeek V4-Pro (~1.6T systems validation), and Qwen3 MoE. Emphasizes adapter-native async double-buffered rollout, trivial MB-scale weight sync, and train–rollout log-prob gap staying bounded. No separate arXiv id on the blog citation (journal=SphereLab Blog).
- Code
MolmoAct2: Action Reasoning Models for Real-world Deployment
Ai2 follow-on to MolmoAct. Molmo2-ER embodied-reasoning VLM plus robot state/action modeling and a flow-matching action expert. Releases foundation checkpoints (MolmoAct2, MolmoAct2-Think with depth-token reasoning, MolmoAct2-Pretrain discrete VLA, Molmo2-ER), finetunes for DROID Franka, bimanual YAM, SO-100/101, LIBERO, and LeRobot v3 datasets (SO-100/101, DROID, BC-Z, Bridge, RT-1, MolmoAct, plus Molmo2-ER spatial/3D data). Integrated into LeRobot (molmoact2-policy). FastAPI act servers for DROID and YAM. Paper arXiv 2605.02881. Apache-2.0; research/educational use per Ai2 Responsible Use Guidelines. Hardware-safety warnings on the README.
- Code
CoLoTa: A Dataset for Entity-based Commonsense Reasoning over Long-Tail Knowledge
Rewrites StrategyQA questions and CREAK claims by swapping head entities for long-tail Wikidata counterparts (popularity = number of triples), then annotates QIDs, relevant triples, a natural-language inference rule, and grounded reasoning steps. 3300 queries: 1650 QA + 1650 claim verification (CoLoTa_qa.json / CoLoTa_cv.json). o1 accuracy drops ~0.18-0.22 vs original popular-entity queries while answer rate stays high, implying more hallucinations. LLM-based KGQA (KGR, KB-Binder) near-collapse on CoLoTa. GitHub API license null; no LICENSE in README.
- Code
LLM-PuzzleTest (PuzzleVQA and AlgoPuzzleVQA)
DECLARE Lab repo for two generated VQA suites. PuzzleVQA (arXiv 2403.13315): abstract visual patterns over colors/numbers/sizes/shapes, single- and dual-concept templates with gold perception/induction/deduction explanations; GPT-4V ~46% on single-concept. AlgoPuzzleVQA (arXiv 2403.03864): 18 puzzle types x 100 instances = 1800, covering boolean logic, combinatorics, graphs, optimization, search, sets; answers from human-authored algorithms so difficulty/size can scale. Later tracking paper arXiv 2502.01081 compares GPT-n/o-n on open-ended vs MCQ. Repo MIT; AlgoPuzzleVQA HF Apache-2.0; PuzzleVQA HF card has no license tag.
- Code
rLLM / DeepScaleR: Agentic RL framework (Agentica)
agentica-project/deepscaler redirected to rllm-org/rllm. Original DeepScaleR work (Feb 2025 blog) scaled RL on DeepSeek-R1-Distill-Qwen-1.5B using ~40k unique math Q-A pairs (AIME 1984-2023, AMC pre-2023, Omni-MATH, Still). Current rLLM is a general agentic RL stack: GRPO/REINFORCE/RLOO/SFT/on-policy distillation; backends verl, tinker, fireworks; 60+ evals. Later Agentica results include DeepCoder-14B and DeepSWE-32B. Discord posted the old deepscaler/verl tree.
- Code
SIE: Superlinked Inference Engine
Apache-2.0 inference server (superlinked/sie). Argument: agent pipelines now run 4–5 small models, but one-server-per-model (vLLM + TEI + FastAPI wrappers) bills idle GPU time. SIE puts encode()/score()/extract()/generate() behind one API, loads models on first request, and evicts LRU so one GPU rotates the set. Catalog ~112 models with packaged serving configs. Plugs into Qdrant/Weaviate/Chroma/LanceDB/LangChain/LlamaIndex; OpenAI-compatible URL. Discord/X is Akshay Pachaar’s recap plus X article “How to serve 5 models on one GPU” walking a flood-insurance claim through Docling, GLiNER2, bge-reranker-v2-m3, Grounding DINO, and Qwen3.5-4B. pip sie-server[local]. Python.
- Code
MoonEP: A Perfectly Balanced Expert Parallelism Library via Dynamic Redundant Experts
Moonshot MIT EP communication library (Kimi K3 Open Day, with FlashKDA and AgentEnv). Hard invariant: every EP rank receives exactly S×K tokens regardless of router skew. An on-GPU planner duplicates a small set of experts from the current routing, prefetches their weights, and reduces duplicated grads back to home ranks. Zero-copy permute/unpermute writes tokens straight into expert-grouped remote buffers; static S×K shapes drop per-layer host sync and stop the fragmentation that OOMs DeepEP under imbalance. On H20 EP=8 vs DeepEP v2, comm time stays nearly flat as maxvio grows while DeepEP degrades, and e2e iteration time stays flat. Training prefetch slots B=E/R; inference can use B=3–4. NVIDIA GPU; Zhenwu PPU listed as coming. Cite moonep2026.
- Code
KTransformers
kvcache-ai/ktransformers is a CPU-GPU hybrid inference/SFT framework (MADSys Tsinghua / Approaching.AI / 9#AISoft). Current tree exposes kt-kernel serving (AMX/AVX INT4/INT8, NUMA-aware MoE, hot-GPU/cold-CPU experts, SGLang integration) and LLaMA-Factory SFT/DPO for ultra-large MoE on limited VRAM. README: DeepSeek-R1/V3 on a single 24GB GPU plus large DRAM; SFT DeepSeek-V3 ~80GB / 3.7 it/s on 4x RTX 4090, claimed 6-12x vs ZeRO-Offload in their MoE SFT benches. SOSP 2025 paper: AMX kernels, async CPU-GPU scheduling, Expert Deferral (CPU util <75% to ~100%, up to 1.45x extra throughput, <=0.5% avg accuracy drop). Apache-2.0. Docs site kvcache-ai.github.io/ktransformers.
- Code
LingBot-Vision
Robbyant/lingbot-vision ships LingBot-Vision, a family of self-supervised ViT backbones (S/16, B/16, L/16, g/16) for dense spatial perception. A ~1.1B ViT-g/16 teacher is pretrained with masked boundary modeling (boundary-centric masked targets that keep spatial structure plus semantics) and distilled to L/B/S. Drop-in encoder for PCA feature maps, depth, semantic/video object segmentation, and as the encoder init for LingBot-Depth 2.0 (RGB-D corpus scaled 3M to 150M in the tech report). Backbone-only .pt checkpoints on HF/ModelScope. Apache-2.0. Paper arXiv 2607.05247.
- Code
nanochat
RiddleHe/nanochat forks karpathy/nanochat into two hackable frameworks: nanochat/ for pretraining architecture variants (boolean flags in gpt_base.py, model_registry.py, torchrun scripts/base_train.py, DCLM CORE eval via scripts/base_eval.py) and nanorl/ for RL objective-function ablations (ALGORITHMS in nanorl/loss.py, vLLM rollout worker synced to a torchrun trainer). Ablations.sh runs d12/d24 FLOP-budget batches and skips existing checkpoints. MIT. Cite: Muyu He, Yuchen Liu 2026 (nanochat-arch).