Explore the research collection
69 entries · showing 1–24 · Follow this search
- Code
Muon formula grid (vukrosic)
Standard Muon orthogonalizes every gradient with a fixed 5 rounds of a degree-5 Newton-Schulz/Polar Express polynomial. This repo asks: for a given target, what is the cheapest formula? A grid over three settings — how weak the weakest singular direction is (0.0001–0.01 of the longest), closeness-to-equal tolerance (±0.02 to ±0.4), and matrix shape (square or wide 1:4 like most LLM layers) — searches 1,104 mixes of degree-3/5/9/13/17 rounds per cell (Polar Express fitting) and keeps the cheapest hitting the target. Examples: 9+9+9 matches-or-beats standard Muon at 33% fewer wide-matrix FLOPs; 13+13+13 matches Polar Express at 27% fewer; 13+13 on short-band-only settings at 51% fewer. Since Muon's orthogonalization is ~0.5–2% of training compute (4096-wide, 1–4M-token batches), a 25–50% cut on the step saves ~0.1–0.5% of a training run. Usage: pick settings in picker.html, copy coefficients from grid.json, or use formulas.py's `orthogonalize(G, coefs)` as a drop-in for the Newton-Schulz call. Caveats (author-stated): degree-9+ rounds need the small (rows×rows) part in float32 (all-bf16 overflows); cost is matmul work, not wall-clock — the float32 part shrinks the real saving; not timed on a GPU; whether directions outside the target band hurt training is untested.
- Code
Watching: Can Language Models Detect Read-Only Probes? (SauersML)
Fine-tuning only the last two layers of Qwen3-8B teaches the model to detect when a read-only probe is capturing its activations — but only under torch.compile. The probe forces the compiler to split layer 14's kernel into two with BF16 rounding in between (~2.5% change in the user token's hidden state), and the model learns to recognize this: 128/128 correct on new prompts, separation ~27 nats. The key control shows it reads the compiler's change, not the observer — a two-kernel layer with no probe also gets "Yes", while a no-kernel-split copying probe is never learned. One attention head (layer 35 head 6) carries ~99% of the effect via a cancellation trick that subtracts away the normal component of the user-token key. The same recipe extends: detection of HF output_hidden_states reads (80% held-out), distinguishing HF Trainer training steps from vLLM/SGLang serving (66/68 prompts), and a logit-lens message ("I can see you watching me") that appears only when hidden states are read from the compiled model. Detection is GPU-specific: perfect on the training L40S, 52–77% on four other NVIDIA GPUs, backwards on H100/A100. Untrained models cannot detect the probe. Caveats: GPU-bound exactness; thread/README are AI-documented ("written by Opus 5.5 and GPT-6 Astra"); repo code license unstated.
- Code
OpenAI math: open-sourced math results + FineEnvs/openai-math Harbor RL environments
OpenAI's Oct 6, 2026 release of model-produced mathematics (github.com/openai/math, Apache-2.0, ~12.9K stars), announced via OpenAI's X post (~22M views): 719 manuscripts organized into 372 result families — proofs of or progress on long-standing open problems (number theory, algebraic geometry, combinatorics, mathematical physics, TCS), produced by an unreleased internal frontier model. Each result used ~3 hours of ChatGPT Pro-equivalent thinking compute on average; ~4,000 problems were posed in the evaluation. Results sit at different verification stages: ~42% of top-line results ship with Lean 4 formalizations (lean/ library + formalization catalogue), and abridged reasoning summaries are released for 10 headline results (e.g., Mahler conjectures, Kaplansky direct-finiteness, Mézard–Parisi formula). The Lean formalizations are what make this RL-usable: Adithya S K (Scaling RL Envs @huggingface; founded cognitivelab_ai; previously enriched catalog ID 1619) converted the release into Harbor RL environments on Hugging Face — FineEnvs/openai-math, 369 tasks, each instructing an agent to prove a theorem in Lean 4 with Mathlib and graded by the repo's Comparator in a separate sandbox (Dockerfile + task.toml + tests/Challenge.lean pinned to the upstream commit, Apache-2.0). IAS Advisory Group on Mathematics and Artificial Intelligence (Institute for Advanced Study) published Sept 29, 2026 recommendations (stop testing advanced math on proprietary models; name the model; publish prompts, reasoning summaries, compute costs; don't treat results as model marketing) — OpenAI consulted the group; a spokesperson said the company takes the guidelines seriously but isn't bound by them.
- 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
AgentEnv (Scale AI) — open framework for building RL agent environments
AgentEnv Framework is a Python SDK and CLI for building, deploying, and running agentic environments and the tasks that grade agents inside them. Environments are containerized servers speaking the open agentenv-framework-protocol; the framework builds them into versioned images, deploys them behind a gateway, points an agent at them, and scores what the agent did. Scale AI says every RL environment it builds runs on AgentEnv, so the release is effectively Scale's internal RL environment stack opened to the community ('so more people can build the worlds agents learn in'). It covers environments, artifacts, agents, tasks, and a registry, with an entry-point-based plugin system (envs, task steps, artifacts, sandbox/state/environment providers, CLI plugins, explorer routes) and a built-in explorer UI plus a 'hello' bundle for zero-config trials. Distributed as agentenv-framework on PyPI (import package agent_env, command agent-env), full docs at agentenvframework.com/docs, Apache 2.0 licensed. Caveat: the repo is young (created 24 Sep 2026) and the public announcement is hours old, so real-world adoption and maturity are unproven.
- Code
Agent Memory Repo (Cognition) — open spec for persistent agent memory
Cognition open-sources its agent memory format as an open standard, usable with any agent (announced alongside Devin's 'Dreaming' feature, where Devin builds a persistent memory graph of how a user likes to work across sessions). The format is a git repo of Markdown: every session clones the latest memory, searches or follows links, updates entries as the agent learns (no human in the loop), and pushes after every edit. MEMORY.md is the entry point loaded at the start of every session; entries are one-line bullets with open [key: value] metadata (recommended: source link to the session where it was learned, added date); [[path]] cross-links connect files; history and versioning come from git. 'Dreaming' is a dedicated periodic agent with two jobs: add new memory (spot patterns across sessions) and clean up (merge duplicates, drop outdated entries, resolve contradictions). Composability: memories are folders — a session can clone several repos at once (personal + team + swarm folders), each keeping its own ownership/permissions/history, and the agent tracks who said what. Agent swarms coordinate via message-board folders (findings.md, questions.md) with git rejecting conflicting pushes, forcing the agent to reconcile both versions. Worked examples: four parallel agents diagnosing a 1-in-100 slow request by sharing measurements through the repo, and a saved SQL query reused across sessions. Open to contributions: https://github.com/AgentMemoryRepo/agentmemoryrepo. Notably complementary/contrastable with the pending proactivity items on agent memory: the two-tier Memorystore/AlloyDB blueprint (SQL-native vector + BM25 hybrid retrieval, compaction) and the 'docs, not memory' RAG-skeptic argument. Directly relevant to the user's unnamed AI agent app.
- Code
Homebrew: an open agent that brews AI models with you
Guided console agent ('brewmaster') that turns model fine-tuning into a beginner-friendly conversation: the user describes the goal and the agent handles base-model selection, data preparation, safe hyperparameters, and training. The guiding AI can be Claude, any OpenAI-compatible model, or a local model. Supports text models (Qwen3, Qwen3.5, Llama 3.x, Gemma 3/4) with LoRA/QLoRA/full fine-tuning via chainable CPT -> SFT -> DPO regimes, plus image LoRAs for Qwen-Image 2.1 with live previews. Trains on a local GPU or an automatically provisioned rented GPU (Runpod/Vast.ai), with publishing to Hugging Face. Demo proof: 'Grandma's Kitchen' (Qwen3.5 2B writing recipes in a warm grandma voice) and a Y2K digicam LoRA for Qwen-Image 2.1, each brewed in a single guided session on one rented GPU.
- 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
Hyper-Connection Factory
Open-source repo with unified implementations of 11 residual-connection variants for decoder LLMs (HC, mHC, Frac, DenseFormer, MUDDFormer, LAuReL, AttnRes, MHAR, DAR) behind a single interface on one shared transformer body — same attention/MLP, init, data, optimizer, schedule, so differences are due to wiring alone. Trains with one recipe from 38M to 1.2B params at ~20 tokens/param on FineWeb-Edu (8xH100; checkpoints, configs, sweep scripts, logs, plots all in repo). Key result: what survives scale is dynamic, input-dependent mixing — MUDDFormer best at every size (Δ val loss vs pre-norm: -0.112 S / -0.070 M / -0.071 L / -0.061 XL); mHC and dynamic HC shrink smoothly but stay positive; static HC's gain fades at M then recovers at L with depth. Gotchas: plain MUDDFormer diverges at 24 layers (fixed by PrePostDANorm, previously only in the paper's JAX code); small-scale rankings don't transfer (mHC looked worse than pre-norm on laptop but is among the best on GPU); fancy variants train at ~0.5x pre-norm throughput. Single seed at L/XL. Relevant to the user's LLM pretraining and Launch Helm work.
- Code
KohakuFA: Attention Kernel with Fixed Backward-Pass Precision
New attention kernel claiming severe backward-pass precision bugs in cuDNN SDPA, FlashAttention-4, and flex attention: when attention logits get huge (DINOv3 reportedly hits ~1e5 out of the box), backward gradients can be wrong by 10-1000x or become inf, while forward and loss look completely normal — so instability surfaces only late in training when reruns are expensive. Implication: some reported fp16 instability, QKNorm benefits, or 'failed runs' may be kernel artifacts, not model-design flaws. KohakuFA fixes 3 precision bugs, keeping gradients at the fp16 error floor for ~5% extra cost; fast for ViT/DiT/video. Figures: DINOv3 ViT-B/16 fine-tuning backward error over training — FA4 highest error (~0.05-0.6), KohakuFA tracks the fp64 correct-kernel floor; whole-model fp16 gradient vs fp64 across 50k-200k steps — cuDNN SDPA gradients collapse after ~100k-125k steps (cosine→0, relative error >10x), KohakuFA stays near-correct. Blackwell (SM100) only for now; sm120 support planned (flex attention reportedly has the same issue on sm120). Directly relevant to user's training-run debugging (CUDA OOMs aside, kernel-precision bugs are the same class of hard-to-diagnose training instability).
- Code
Parallax (Parameterized Local Linear Attention) — official code
Repo for Parallax: parameterized local linear attention that replaces Softmax Attention's per-query linear solve with a learned probe. Integrates with flash-linear-attention and Modded-NanoGPT-plx. Paper already cataloged as id 516 under a different mid; this row covers the Discord message's GitHub URL.
- Code
unpuzzles_and_simple_reasoning (DeepMind eval data + grading code)
Official DeepMind repo for the unpuzzles paper (already papers_local id 688 under a different Discord mid). Three JSON eval sets: procedurally generated simple reasoning (~1120 questions / 5 categories), 97 original/unpuzzled pairs, and 69 context-shifted unpuzzle sets, plus notebooks to extract/grade model answers.
- Code
motion-video-kit (Claude Code skill kit for AI-assisted business videos)
A Claude Code skill (also usable as plain context for any LLM) for making premium, launch-style commercials for real businesses with AI-generated footage, code-built motion (HTML/GSAP), selective Three.js, and an independent-critic quality loop. Packages lessons from studying 28 professional SaaS launch films plus two full sample commercials built through dozens of critique rounds. Contents: the Gauntlet loop (builder != judge, fresh critics on actual renders, item-by-item verification); a motion grammar of six rules and 16 reusable mechanisms; a measurable quality bar (frozen time, loudness, contrast, brand colour); audio rules (music matched to the buyer's customer, sparse SFX, mix targets); a business playbook (verticals, price anchors, pilot-offer template); Three.js patterns (deterministic seekable scenes, exploded layers, projected callouts); product-hero realism techniques; scripts for frozen-time/loudness measurement, contact sheets, and offline mixing. Best with HyperFrames for rendering but renderer-agnostic. 294 stars, 28 forks, 6 commits as of the read.
- Code
xBridges
Checkpoint conversion, serving, and evaluation toolkit for xLLM. Converts tensor-parallel xLLM checkpoints to Hugging Face format (K2HorizonForCausalLM, BF16 safetensors) and back, with multi-node Slurm support; validates conversions by comparing per-token logprobs between xLLM and HF on the same document; registers K2 Horizon with vLLM 0.24, launches multi-node Ray+vLLM servers on Slurm, and runs lm-eval against them.
- Code
xattn
Efficient attention modules for the xLLM framework, with Python APIs for use in other PyTorch projects. Features high-precision FP32 attention output state for backward (reducing BF16 gradient error) and flexible segment-aware masking (segment IDs or BOS masks) for packed sequences. Supports causal Flash Attention, sliding window, sliding chunk, and SoftDelta attention variants; FP16/BF16 inputs; MHA, GQA, and MQA.
- Code
NVIDIA Model Optimizer (ModelOpt)
NVIDIA's unified open-source library of state-of-the-art model optimization techniques — post-training quantization, quantization-aware training/distillation, pruning, distillation, neural architecture search, speculative decoding, and sparsity. Takes Hugging Face, PyTorch, or ONNX models and exports optimized quantized checkpoints ready for TensorRT-LLM, TensorRT, vLLM, or SGLang deployment.
- Code
Repo2RLEnv — verifiable RL environments from any repository
Generates Harbor-format coding, terminal, and reasoning tasks — each with instruction, environment, private verifier, and reference solution — from any Git repository. Tasksmith reads pull requests, builds repositories, writes tasks and verifiers, and self-repairs until controls pass. The site reports 23 pipelines and 21 published Hugging Face datasets.
- Code
xLLM: Light-weight infrastructure for express LLM pre-training
Apache-2.0 PyTorch framework for long-context LLM pretraining supporting dense, MoE, and MoVA architectures, with FSDP1/FSDP2, data/model/context parallelism, custom CUDA kernels, FlashAttention, online tokenization and packing, evaluation, HuggingFace export, and vLLM support.
- Code
FrontierAgent
Open-source (Apache 2.0) agent runtime, terminal TUI, and evaluation suite for long-horizon research and file-based work, released alongside the Apodex-1.1 model. Ships two workflows: ReAct (one stateful agent in a task-scoped sandbox) and Agent Team (coordinator delegating to parallel sub-agents). Installs with one command on macOS/Linux with no Docker dependency; the same engine powers Apodex's model benchmark runner.
- Code
PufferLib
PufferLib is an open-source (MIT) reinforcement learning library focused on fast, compatible simulation. It offers one-line wrappers making complex environments (NetHack, Neural MMO, Griddly) compatible with Gymnasium/PettingZoo-style libraries, drop-in vectorization, and Puffer Ocean — 12 C environments each simulating at over 1M steps/second on a single CPU core. A PPO demo trains Ocean envs at 300K–1.2M steps/second on a single RTX 4090.
- Code
OpenBMB/MiniCPM
Official open-source repository for the MiniCPM family of small language models (MiniCPM5, MiniCPM4/4.1, MiniCPM-SALA, BitCPM4). Provides model downloads across Hugging Face and ModelScope in many formats (BF16, GGUF, MLX, GPTQ), quickstart guides for vLLM/SGLang/llama.cpp/Transformers, fine-tuning and deployment cookbooks, and agent skills. 11,325 stars, Apache-2.0 licensed, created 2024-01-29.
- Code
AI4AI-Bench
Official implementation of the AI4AI-Bench benchmark for recursive self-improvement via training-algorithm design. Ten tasks span generation, alignment, reasoning, unlearning, pruning, RL, reward modeling, and model merging. Each run separates open-ended exploration (up to 4h, agent produces a source patch) from reproducible measurement (fresh formal retraining up to 12h, up to 3 checkpoints, frozen validation and final evaluation). Apache-2.0; 41 stars, 3 forks as of late September 2026.