Explore the research collection
22 entries · Follow this search
- 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.
- Model
River Recipes: Achieving Frontier Text-to-SQL with the River API
River AI's 'River Recipes' is an open-source initiative that turns promising research papers into vetted, reproducible training recipes. The first recipe tackles text-to-SQL: it rebuilds the ReViSQL recipe (RL with a LoRA adapter, arXiv 2603.20004v4) from scratch on the River API, fixing several bugs in the released code (outdated VeriEQL with an ORDER BY-in-subqueries bug, a 1% tolerance grader that rewarded wrong row counts, and treating token-limit-interrupted attempts as answers) and hardening it for longer runs (async RL overlapping sampling and training, warmup+cosine LR, tightened grader, -1 reward for unfinished attempts, tool-use demonstration prefix). Across six models from five families it improved accuracy by 9-36 points on Arcwise-Plat; four models reached human-level performance (92.96%) and five finished between 92.0% and 93.4%. Five outperformed GPT-6 Astra Pro (max effort), averaging 4.0 points higher at less than 2% of the per-question cost (OpenRouter list prices, Sep 29 2026); GLM-5.3 Flash led at +4.6 points at just 0.5% of the cost. Key recipe extensions: BIRD-Platinum cleaned training data (+9.4 points avg vs original annotations), training hints for questions no attempt ever solves (~6% of questions after epoch 1), learnability weighting from epoch 2, the VeriEQL penalty and evidence process reward for shaping, and BIRD-Diamond/BIRD-Platinum-Hard curated subsets on Hugging Face. Gains transfer to Spider2-Lite (every model improved, best models just shy of the proprietary frontier).
- 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.
- Model
Qwen-Image-2.1 Consistent Lighting LoRA (rh-qwen-image-2.1-lora)
LoRA adapter (160 MiB safetensors) finetuned on Qwen-Image-2.1 for compositing products/objects into scenes with consistent lighting: removes unwanted reflections/glares, enhances specular highlights, adds natural contact shadows and front-back spatial relationships so the object blends seamlessly into the background. Trigger word: 'pengyu'. Works in ComfyUI / RunningHub / Hugging Face.
- Paper
Write Back the Δ: Revisiting the Same Tokens with Fresh Representations
Inference-time feedback that recycles endogenously produced computation: feeding a Transformer's full deep state back into shallow layers saturates fast (deep states are collinear copies of early residuals), but routing the depth increment Δ = z_deep − z_shallow isolates the newly accumulated computation and scales cleanly up to 6 edges. ReFlux frames depth feedback as a learnable directed-acyclic graph over layer pairs, with a tiny 2.2M-param router MLP predicting sparse gates and amplitudes over a frozen backbone — beating a 2.9M rank-8 LoRA adapter on C4 perplexity. Post-write norm projection avoids 'norm shock' on Pre-LN models like Qwen 3 (flipped Qwen3-4B from negative to +6.15% gain). Two execution flavors: sync (2 passes, 1.9x latency) and streaming (single pass, injects cached Δ(t−1) into token t — 0 extra backbone FLOPs, same KV cache, 1.02–1.08x decode latency, >80% of sync gains). Streaming serializes prefill (510x slowdown on 1,107-token prompts), so serving needs parallel prefill. Downstream: +2.1–2.3 accuracy points overall, +4.7 on multi-hop reasoning (2WikiMultiHopQA 24.6→29.7, HotpotQA 42.3→47.0); with CoT on GSM8K hits 92.0 while cutting output length 31% (1,002→691 tokens). Gemma3-4B C4 PPL 23.69→21.85 (full state only 22.79). Relevant to the user's LLM training-run and agent-harness work; related cluster: looped/recurrent models (670, 952).
- Model
Kev 1.0: Open-Weight Family of Decision Models (Kev-27B, Kev-9B, Kev-4B, Kev-0.8B)
Kev 1.0 is a family of four open-weight (Apache-2.0) 'decision models' — Kev-27B (new), Kev-9B (updated), Kev-4B, and Kev-0.8B — built on Qwen3.5/3.8 backbones. Each model adds a pointer head that scores user-supplied answer options (yes/no, multiple choice, ordered scales) and returns calibrated probabilities per answer, instead of generating text: the document is processed once and cached, and every question branches off that single read via <decide> tokens. The interface matches TypeSafe's Jev API, so TypeSafe SDK apps can switch by changing endpoint and model name. Kev-27B is a full fine-tune of the Qwen3.8-27B post-trained text backbone on ~146k records / 337k questions (documents up to 32k tokens; 64k-token document window), blending 85% of the new fine-tune with 15% of the previous prerelease checkpoint; the smaller models use Qwen3.5 backbones with LoRA adapters. Weights are on Hugging Face, code and a GPU/Apple-Silicon (MLX) server are on GitHub, and agent skills (kev-finetune, kev-deploy) package fine-tuning on your own data and deployment to Modal.
- Paper
Tuning Language Models by Mixture-of-Depths Ensemble
Not the DeepMind Mixture-of-Depths (dynamic compute); Discord flagged the name collision. MoDE reads logits off late layers (logit-lens style), trains a router, and adds per-layer norm/distillation. Plug-in on LoRA/DoRA. LLaMA2-7B arithmetic avg 54.8 (LoRA+MoDE) / 55.1 (DoRA+MoDE) vs LoRA ALL 54.5 / DoRA 54.7; LLaMA3-8B 77.6 / 77.9 vs 77.2 / 77.5. Replacing late-layer LoRA with MoDE is +0.04% params vs +10.3%. Sparse top-k routing keeps most accuracy and speeds generation up to 1.6×. No official code on abs.
- Paper
Continual Learning via Sparse Memory Finetuning
Replaces one mid-stack FFN with a 1M-slot memory layer (k=32, 4 heads) and finetunes only the top-t slots that are highly accessed on the current batch relative to DCLM pretraining (TF-IDF). On a 1.3B model, TriviaQA 1K fact stream: NaturalQuestions F1 drops 11% vs 89% full finetuning and 71% LoRA at matched target learning; document-stream SimpleQA shows the same Pareto pattern. Naive memory FT and TF-only ranking forget more. No official code on abs.
- Paper
Evolution Strategies at the Hyperscale
EGGROLL samples rank-r adapters AB^T instead of full-rank noise, reaching ~91% of batch-inference throughput and ~100× naïve ES at large populations. Individual perturbations are low-rank but the population average is full-rank (O(1/r) to Gaussian ES). Pretrains an int8 nonlinear RNN (EGG, no activations) on MiniPile to 3.40 bits/byte vs a backprop Transformer 3.58 at matched data batch (pop 2^20). Competitive with GRPO on countdown/GSM8K (RWKV-7) and with OpenES on 16 tabula-rasa RL envs. Code https://github.com/ESHyperscale/HyperscaleES; project https://eshyperscale.github.io/.
- Paper
Self-Policy Distillation via Capability-Selective Subspace Projection
SPD SVD-extracts a low-rank K/V subspace from gradients on correctness-defining tokens (answer span / assertions), hooks those projections during self-generation, then LoRA-SFT on the raw hooked completions. No teacher, reward, or filter. Up to 13% over SSD/PSR and 16% over base across code/math/QA on five instruct backbones; QA-calibrated SPD also lifts math/code OOD. Correctness-aligned loss beats full-sequence loss (MBPP 11.9→25.5). Calibration works with ~50 examples. No official code on abs.
- Paper
Transformers Stop Thinking Too Early, and a Tiny LoRA Fixes It
Pretrained transformers use little of their depth to follow references in context: 13 base models reliably follow only 1.4-3.6 lines, and extra pretrained loops add little. A task-trained rank-8 LoRA at one early layer extends computation with all model weights frozen: Qwen3-8B improves from 15.5% to 99% exact accuracy on 24-line chains; a longer-trained LoRA reaches 50 lines; Ouro-1.4B reaches 60 lines after four loops and at least 160 after eight. Mechanism: the LoRA starts a relay -- program lines pass on their chain identity through a short range of middle layers, frozen heads read progressively further up the chain, and removing parent-line attention stops the relay. A frozen-model measurement locates the last useful intervention layer within tolerance in 3 of 4 held-out models. Task-specific LoRAs also improve MuSiQue. Takeaway: default answers understate the computation accessible through a tiny edit. Code and an interactive demo at https://lunamos.github.io/stop-thinking-too-early/
- Paper
Fine-Tuning Language Models with Just Forward Passes
MeZO adapts zeroth-order (gradient-free) SGD to fine-tune language models using only forward passes, operating in-place with inference-level memory. Supports full-parameter and parameter-efficient tuning (LoRA, prefix tuning) and non-differentiable objectives.
- Paper
PiSSA: Principal Singular Values and Singular Vectors Adaptation of Large Language Models
PiSSA (Principal Singular values and Singular vectors Adaptation) is a drop-in LoRA replacement that initializes adapters with the principal components of the pretrained weights instead of Gaussian noise, freezing the residual. It converges faster and beats LoRA consistently — e.g., +5.16% on GSM8K with Mistral-7B — and its quantized variant QPiSSA beats QLoRA.
- Paper
The Universal Weight Subspace Hypothesis
The Universal Weight Subspace Hypothesis proposes that neural networks of the same architecture share an architecture-specific low-dimensional 'universal subspace' of weight directions, so new tasks can be stored or trained as coefficients on a frozen shared basis. Experiments across GPT-2, ViT, LLaMA-8B, Flan-T5, and 500 Mistral LoRA adapters show rapid spectral decay and large storage savings, but the evidence is limited to within-architecture comparisons with small evaluation sets.
- Model
GPC-1 — multimodal general-purpose classifier (categorical + Numeric101 + joint records)
Announced 2026-09-23 by @harshagundal as GPC-1: general-purpose classifier for bounding boxes, poses, coordinates, mechanical control, and more “in milliseconds.” HF package harshatheg/GPC-1 (~70.3 GB usedStorage): modified Qwen/Qwen3.5-35B-A3B multimodal MoE backbone + matching LoRA adapter (r=16, alpha=16, language_model q/k/v/o…), Apache-2.0, OpenAI-style /v1/chat/completions server (gpc1_server). Modes: atomic categorical (2–255 choices), numeric101 (101-grid over caller bounds; multi-field one pass; MAP + expected value), image-conditioned numeric101, finite_joint over enumerated records. Thread claims post-training on millions of datapoints / thousands of problem classes from X posts; dual training of Qwen base + adapters, designed to be easy to fine-tune further. Hosted demo Space harshatheg/GPC-1-Demo. Uses LM output projection for schema-bound scoring (not claimed NAR Jev). Source attribution lists CLINC, HelpSteer2, Open-Jev (CC0), GLiClass/Typed Decisions, PushT, etc. Author site usemoonshine.com.
- Code
tev1 — Together open recipe to fine-tune a Jev-inspired decision model
MIT-licensed repo for tev1-4B-experimental: fetch_sources.py + build_all.py assemble new-v1 instruction JSONL (37,840 train / 4,568 val) from public HF classification datasets plus synthetic policy/routing/research taxonomy; examples/train_together.py uploads and launches Together LoRA FT; examples/decide.py and scripts/evaluate.py for inference/eval. Proposed recipe rank 8 / 1 epoch / lr 5e-5 / 2048 context. Documents that this is independent Jev-inspired work with no Jev answers as labels. Companion blog and HF model announced 2026-09-23.
- Model
Tev1-4B-experimental (Together Jev-inspired decision SFT on Qwen3.5-4B)
togethercomputer/Tev1-4B-experimental (Together API id together/Tev1-4B-experimental) is a supervised fine-tune of Qwen/Qwen3.5-4B (~4.66B params) for closed-set decisions. Input: system instruction + JSON with state, question, and labeled options; output: exactly one letter (temp 0, max_tokens 8, thinking off). Training mixture new-v1: 37,840 unique train / 4,568 val from MultiNLI, BoolQ, Banking77, AG News, SST-5, synthetic policies/routing, synthetic research taxonomy; LoRA on existing LM head (not NAR Jev). Dev eval: 880/1000 (88%) main, 300/300 policy-transfer, 1300/1300 valid letters, 0 HTTP errors — development results, not independent benchmark. Historical checkpoint name hassan/Qwen3.5-4B-v1-new-69617472-bdc3c2fc. License: base Apache-2.0; FT weights license being finalized. Recipe/code MIT at togethercomputer/tev1. Announced via @nutlope X Article + Together blog 2026-09-23.
- Post
How to train your own Jev for $17 (Together Tev1 tutorial)
2026-09-23 Together blog (also posted as X Article by @nutlope) walks through training a Jev-like classifier: clone github.com/togethercomputer/tev1, sample/normalize ~37,840–38,340 classification examples from MultiNLI, BoolQ, Banking77, AG News, SST-5, programmatic policies (~13.5k), routing (~6k), and research taxonomy (~3.8k), LoRA SFT Qwen/Qwen3.5-4B via Together Fine-tuning (~25 min, ~$17), deploy a dedicated endpoint, and query with state/question/options JSON returning a single option letter. Serverless reference model: together/Tev1-4B-experimental (HF togethercomputer/Tev1-4B-experimental). Explicitly autoregressive LM-head SFT — not a non-autoregressive Jev runtime. Dev eval cited on card: 880/1000 main decisions, 300/300 policy-transfer, 1300/1300 valid letters.
- Model
Cua-S1-4B-0.2 (multimodal computer-use decision LoRA + live RLOO)
Cua-S1-4B-0.2 (announced 2026-09-23 by @trycua) is a pair of independently trained PEFT LoRA adapters (text/ and multimodal/) on frozen Qwen/Qwen3.5-4B for closed-option computer-use element/action selection. At each step the model sees screen state (ax-tree and/or screenshot), task goal, and a fixed candidate action set; it returns one action; the environment updates. Training recipe (thread): (1) supervised training for the decision format; (2) agentic RL (RLOO) in live cua-bench-basic environments with reward only on completed tasks. Author-reported held-out live episodes: 17/18 text and 13/18 multimodal vs zero-shot djev 16/18 and 12/18. On frozen GUI-360 multimodal hard cross-dataset split (168 tasks, no accessibility tree): overall 92.9% (ECE 0.069) vs untrained djev 60.1% (ECE 0.360) under same inputs/scoring. MODEL_CARD aggregates: text hard cross-dataset overall 0.875 (ECE 0.121); multimodal hard cross-dataset overall 0.929; live cua-bench-basic 0.944 text / 0.722 multimodal (20-step cap). Does not replace cua-s1-4b-0.1; both published. Family also includes cua-s1-nano-0.1 (~855K option-attention) and cua-s1-forms / form-v0 (jev-like form filler). Code MIT in libs/cua-s1 + libs/cua-bench-s1; adapter weights Apache-2.0 (~187 MB Hub); base Qwen3.5-4B under its own license.
- Thread
ReLoRA as stacked low-rank updates for Distribution Fine-Tuning
Independent-researcher tweet (@rosmine, 2026-05-20) arguing ReLoRA is a useful trick: train a LoRA, merge it into the base, then train a new LoRA, because a sum of low-rank updates can be full rank. Says this was used for Distribution Fine-Tuning (DFT) with a total of 13 stages; the posted text cuts off there. No paper, code, or dataset linked from the tweet. Underlying ReLoRA method is Lialin et al. 2023, not this post.
- Paper
Inoculation Adapters: Improved Selective Generalization of Capabilities with Fewer Surprising Backdoors
IA/GIA/CGIA: train a LoRA on the undesired trait, freeze it while training a task LoRA on mixed desired+undesired data, drop the IA at deploy. Compared with inoculation prompting, preventative steering, CAFT, and KL across 9 setups and 5 model families. The family occupies the observed suppression–retention Pareto frontier (wide CIs). Vanilla IA strongly suppresses undesired traits and adds fewer surprising backdoors than IP on negated/structure/keyword probes. Works on unelicitable traits (new cipher capability, hate speech under refusal, base-model sycophancy) where IP fails. GIA/CGIA trade some backdoor-resistance for better desired-trait retention. Authors note the magnitude vs best baselines is uncertain.
- Paper
Can a Language Model Learn Facts Continually in Its Weights?
Writes invented facts into Qwen3-4B (8B replication of the entailment gap) via LoRA/full FT and context distillation, then follows them through 20–100 later writes with five held-out question types against a fact-in-prompt ceiling. Training-data breadth, not the objective label, creates usable knowledge: diverse restatements cut the recitation-to-use gap from 27.4 to 5.4 points without showing conclusions. After 20 sequential writes, bare-statement facts retain 1% vs 46% for study facts (plateau ~25–28% by 100 study writes). Forgotten facts keep 57–67% of their log-prob lift, so access fails rather than storage; incoming writes cause interference. A frozen original-model teacher preserves capability; no tested intervention keeps earlier facts reachable. Context remains the reliable channel for composition and survival.