Explore the research collection
7 entries · Follow this search
- Post
The ultimate guide to multi-harness RL
The ultimate guide to multi-harness RL (Adithya S Kolavi / FineEnvs, Hugging Face Space, 2026-10-01). Not a paper: a 33-figure ~60-page interactive research article plus full artifact release documenting how to do RL across multiple agent harnesses without modifying them -- claiming the first public multi-harness agent RL pipeline. Core idea: a 'capture proxy' sits between the agent harness and vLLM, speaks the four API formats coding agents use (OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, Gemini), records exact token ids/logprobs sampled by vLLM, and reconstructs TRL-trainable traces, so the same rollouts run unmodified through 10+ harnesses. Full GRPO runs: LFM2.5-2.6B trained with multi-harness RL on 1,000 SmolDataEnvs data-analysis tasks, evaluated on 250 held-out tasks under four harnesses: base 42.2% -> multi-harness RL 54.2% pass@1 overall (step 1,000; best checkpoint step 700: 54.6%); per-harness OpenCode 49.6%, Claude Code 48.8%, Codex 53.6%, Mini-SWE-Agent 64.8%. OpenCode-only RL (step 900) reached 52.4% overall and won on its home harness (56.0%) but lost to multi-harness RL on Claude Code and Codex. Tool efficiency: correctness-only reward keeps tool calls high; adding a small bonus for fewer calls cut tool calls 31.1% on 356 task/harness pairs solved by both base and model, savings in all four harnesses. SFT comparison: fine-tuning on 3,189 successful Qwen3.8-27B teacher rollouts (17,929 examples, 2 epochs) plateaued -- OpenCode SFT 47.5% (-8.5% calls), multi-harness SFT 43.1% (-24.2% calls), both below RL (54.6%), showing multi-harness RL beats imitation at both performance and efficiency. Setup: async GRPO (TRL Async GRPO), 1,000 steps, reward = correctness x (1 + 0.1x15/(15+tool_calls)), 8 rollouts per GRPO group (one harness each, rotating), on 2xH100 (~32h OpenCode-only, 46h multi-harness); rollouts in E2B sandboxes via OpenEnv + Harbor. OpenEnv is BSD-3-Clause (PR #1036 capture proxy + Harbor, PR #1280 typed TrainingTrace API); TRL PR #6947 HarnessRolloutWorker (on TRL main, not v1.14.1). Trained models (full weights) under LFM Open License v1.0: LFM2.5-2.6B-multiharness-RL, -opencode-RL, -multiharness-SFT, -opencode-SFT, Qwen3.5-2B variants. Caveat from the model card: best-checkpoint selection used the test set (no separate validation set); single-run results on fixed harness versions.
- 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.
- Post
vime × RL-Kernel × AMD: Bitwise Train–Rollout Consistency on ROCm (RL-Kernel v0.1.0)
vLLM Blog (2026-09-14) on RL-Kernel v0.1.0 with vime and AMD: Megatron training and vLLM rollout often disagree on logprobs for the same weights/tokens because kernels, Split-K/KV, reduction order, and intermediate precision differ, which pollutes importance ratios and KL/clipping. RL-Kernel aligns the numerical execution contract (RMSNorm, Attention, GEMM/SwiGLU, linear logprob, collectives) while vime aligns the timeline and weight sync. On ROCm they added deterministic MFMA GEMM, vocabulary reduction, HIP IPC, AITER/CK Attention schedule fixes, math/fusion last-bit fixes, and paged-KV/HIP-Graph state fixes. End-to-end Qwen3-8B BF16 GRPO on 8× MI300X (Megatron TP4/CP2; 2× vLLM TP4 colocated; 200 steps; dapo-math-17k) reports mismatch_count=0 and max_abs_diff=0 throughout on the strict path vs native mismatches every step. Apache-2.0 at github.com/RL-Align/RL-Kernel (pyproject 0.1.0; torch>=2.4.1; transformers==5.13.1; optional cuda/rocm/vllm extras). Docs https://rl-align.github.io/RL-Kernel/. Scope today: Qwen3-8B Dense + vime + CUDA/ROCm; MoE/multimodal next.
- Tool
FlashHead (Embedl) — vLLM plugin / flash-head
Open implementation of FlashHead as a vLLM plugin: balanced vocabulary clustering + multiprobe retrieval head, optional W4A16 pairing. Documented install via pip/flash-head; demo models e.g. embedl/Llama-3.2-1B-Instruct-FlashHead-W4A16.
- Paper
FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference
Argues growing vocabularies make the dense LM head a major param/compute bottleneck (up to ~60% params / ~50% decode compute on small models). FlashHead reframes next-token scoring as balanced-cluster multiprobe retrieval with sampling support and selective quantization, reporting up to ~1.75× model-level speedups (e.g. Llama-3.2-1B) with near-baseline accuracy; gains compound with W4A16.
- 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.
- Other
Photon 2.0: Inference engine for Physical AI
Moondream launch blog (2026-08-03). Argument: chat engines (vLLM/SGLang) optimize large-batch tokens/s, while robots/cameras need low concurrency, tight p99, and several models sharing a GPU. A proprietary compiler traces the forward pass and emits one megakernel so the GPU runs the whole inference without CPU launch chatter. First matrix: Moondream 2/3, Qwen3.5/3.6 0.8B–9B, Gemma 4 E2B/E4B on NVIDIA H100. Matched ChartQA streams: Photon beats vLLM and SGLang on every batch 1/2/4/8 throughput test and on cold start. pip install moondream; md.photon("Qwen/Qwen3.5-4B"). Engine Apache-2.0 and megakernels free to run; compiler closed. Discord/X is vikhyatk quoting the company thread.