Skip to content
Projets

À propos

FineEnvs — Introduction aux environnements d’apprentissage par renforcement : créer et faire évoluer des environnements d’apprentissage par renforcement à l’ère des LLM

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+2
in 7 days
+16
in 15 days
+31
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original
FineEnvs — open source RL environments for training LLM agents

FineEnvs

Open source RL environments for LLM agents

Build  ·  Deploy  ·  Train  ·  Eval  — end to end, reproducible, in the open.

FineEnvs on Hugging Face The ultimate guide to RL environments GitHub stars Apache 2.0 license


Why this exists

The RL environment ecosystem is moving fast. New frameworks land every few weeks, each with its own vocabulary for the same handful of ideas, and most of what's written about them is either a launch post or a spec. Meanwhile the actual bottleneck in RL for LLMs has quietly shifted: the algorithm isn't the hard part any more — the environment is.

So we're building the resource we wanted. Open source, end to end, and reproducible: how to design an environment, how to build it, how to deploy it, how to train against it, and how to scale it to thousands of concurrent sessions. Real code you can run, not diagrams of code someone else ran.

Every environment here works. Every rollout has been executed. Every training curve came from a job you can launch yourself, in one command, without a GPU of your own.

Where things live: source, recipes and notebooks in this repo · environments, datasets, models and demos on 🤗 huggingface.co/FineEnvs.


Projects

Each numbered folder is a self-contained, end-to-end project — its own environments, notebooks, results and README, plus the Hub repos it owns. They read in order but stand alone.

# Project What you get Status
00
RL Environments 101
Three environments, six frameworks, side by side. ✅ stable
01
LaTeX OCR
Train Qwen3-VL-2B to read math images into LaTeX, with a verifiable reward. ✅ stable
02
Watercolour
Train Qwen3.5-35B-A3B to paint watercolours by writing p5.brush sketches, rewarded by an aesthetic preference model. ✅ trained
03
GeoGuesser
Drop a VLM at a random street corner on Earth and score it on kilometres of error. ✅ stable
04
SmolDataEnvs
Data-analysis tasks, verified SFT traces and a single-turn GRPO tutorial on HF Jobs. ✅ stable
05
SmolDataEnvs: multi-harness RL
Train on SmolDataEnvs with SETA, native OpenCode or Harbor, using HF Jobs or Slurm. ✅ trained
06
Multilingual
Document OCR over a million pages in 22 languages and speech recognition over 102, each behind one OpenEnv server, and Gemma 4 trained to read and hear Kannada. ✅ trained
07
Simulation environments
Real operations rebuilt from their own records (Port of Barcelona dockings, a live port week, an airline storm day), graded against a proven optimum. ✅ stable
08
Math environments
Three ways to grade maths: an exact arithmetic answer, a kernel-checked Lean proof and a rubric-graded olympiad proof; a 2B prover trained 0.22 → 0.41. ✅ trained
09
RetroEnv
by Anindyadeep Sannigrahi, Adithya S Kolavi (Hugging Face)
Plan retrosyntheses back to purchasable molecules, scored step by step against a frozen reaction library, and Qwen3.8-27B trained to do it. ✅ trained
10
DesignWorld
by Adithya S Kolavi (Hugging Face)
Rebuild real graphic designs by computer use in six replica editors and the real Inkscape and Penpot (on Daytona), and Qwen3.6-35B-A3B trained to do it: 4.1 → 35.6 (SFT) → 41.7 (RL), 200-screenshot protocol. ✅ trained

Generated from each project's project.yaml by tools/build_index.py. Adding a project means editing that manifest, not this table.

00 · RL Environments 101  3 environments · 6 frameworks · 8 live Spaces

One env, six ways. Three environments, each implemented six times — same logic, six framework dialects. Diff any two server.py files and the differences are the lesson.

Environment Turns Tools Backend
Jupyter agent multi 4 E2B sandbox, real code execution
Wordle multi 1 pure Python, no backend
Desktop multi 19 E2B Desktop, vision-driven

Across openenv · ors · nemo_gym · verifiers · skyrl_gym · gem — 18 implementations, 8 of them deployed as Spaces you can hit right now.

01 · LaTeX OCR  train a VLM against a served reward

The full loop. Project 00 shows you what an environment is; this one takes a single environment all the way to a trained model.

Qwen3-VL-2B learns to read rendered math into LaTeX with GRPO, scored by a reward served from a live OpenEnv Space. The scorer compares normalized LaTeX using edit distance and exact match, with a guard against padded completions. Runs on a GPU you spin up in one command; no cluster, no local GPU. The environment source, notebook, and HF Jobs scripts live together with reproducible smoke tests. Browse the LaTeX OCR collection for the environment, model, dashboards, and run data.

02 · Watercolour  train against an aesthetic reward

RL over taste. Project 01 trains against a verifiable reward. This one asks what happens when there is no correct answer at all.

Qwen3.5-35B-A3B learns to paint watercolours by writing p5.brush sketches. Headless Chromium renders each sketch, and the render is scored by an aesthetic preference model plus a VLM judge comparing it against a hand-rated reference pool, so the reward is somebody's taste. Three reward mixes trained and compared, every artifact published, and the full story in the blog post.

03 · GeoGuesser  train a VLM to place itself on Earth

A game as an environment. Projects 01 and 02 score one shot. This one is multi-turn: the agent looks around, walks down the road, zooms on a sign, pins a candidate, and commits.

Qwen3.5-4B learns visual geolocation with GRPO against a playable OpenEnv Space serving real Mapillary panoramas, scored on kilometres of error. It ends up ahead of gpt-5.4-mini and claude-haiku-4.5 on a 200-task held-out split and behind only claude-sonnet-5, for about $100. Ten hours on four A100s, or one GPU if you are in no hurry. Three training runs, the reward redesigned once, and every measurement bug written down in the article.

04 · SmolDataEnvs  5.5K+ RL tasks in code and data science

A dataset, not a single run. The first three projects each train one model against one environment. This one ships the environments: 5,394 verified data-analysis tasks built from real Kaggle notebooks, where the agent gets a sandbox with the tables in it and has to compute the answer.

Grading is an exact comparison against a known answer — numeric tolerances, list normalisation, symbolic equivalence — so no LLM sits in the reward path. Every task had to be solved in a live sandbox before it was let in, which means a zero says something about your model rather than about the task. Three ways in: flat rows with a bundled grader, 4,677 verified trajectories to fine-tune on, and three Harbor suites you can serve straight into a trainer. A notebook takes you from one task to a trained small model in a sitting.

Browse the tasks in the Harbor Visualiser, or the whole SmolDataEnvs collection.

05 · SmolDataEnvs: multi-harness RL  one model, three ways to run the tool loop

Same tasks, different harness. Project 04 ships the tasks. This one trains on them while changing who runs the agent loop: TRL calling Python tools directly, native OpenCode in a sandbox, or Harbor rotating OpenCode, Claude Code, Codex and Mini-SWE-Agent.

Three readable TRL scripts train LFM2.5-2.6B or Qwen3.5-2B on HF Jobs or Slurm, with a fixed pass@1 evaluation in every harness. The article walks through the experiments, and the collection holds the Spaces, datasets and trained models.

06 · Multilingual  reading and hearing many languages, two servers

Two corpora as environments. ocr/ serves a million scanned pages in 22 languages from a bucket as 11 million tasks, with Sarvam Indic OCR Bench beside them as evaluation splits. asr/ serves all of FLEURS, 102 languages of read speech. Both play in the browser.

Gemma 4 E4B was trained on Kannada in each. Reading, it makes 16% fewer character errors on the benchmark's Kannada slice, mostly by learning to stay in the script. Hearing, it makes 45% fewer on clips it never saw, but only once the trainer actually fed it the audio: TRL drops audio from the forward pass its loss comes from, and the project shows the fix and the numbers. Part of the Multilingual Multimodal Envs collection.

07 · Simulation environments  a catalog of simulation environments and their evals

Real-world work as an environment. Each environment rebuilds one real job from the records it leaves behind and grades the agent once, deterministically, against an answer that can be proven best. The catalog credits every author and gives each environment an eval card in the same format.

  • PortSimEnv v1. The agent re-plans a broken week of container-ship dockings at the Port of Barcelona, built from the port's real 2024 records. It has three tools, and its plan is graded against the optimum CP-SAT proves. GPT-6.1 Sol leads the six-model eval at 0.888. Play it in the Space, watch every eval rollout in 3D, or run it on AgentEnv.
  • PortSimEnv v2–v5, by Edgar Arakelyan (Scale AI), on AgentEnv. The same weeks play out watch by watch: live news and freezes (v2), pilots and tugs (v3), real wind and forecasts (v4), and shipping lines that answer back (v5). Over 60 weeks Claude Opus 5.5 and GPT-6 Astra lead at 0.857 and 0.851, and Qwen3.8-27B finds a valid plan in 1 of 60. Every run replays in the Space, and the article's chapter walks through each version.

Everything is in the Simulation RL Envs collection, and the article covers all of it. Built a simulation environment? Add it to the catalog.

08 · Math environments  from mental arithmetic to research-level proofs

Three ways to grade maths. A catalog of math environments, each explicit about how it grades:

  • Scott Wu Math checks one arithmetic expression exactly.
  • openai/math accepts only a Lean 4 proof that the kernel checks against the exact statement.
  • FineProofEnvs has gpt-oss-20b grade a plain-language olympiad proof 0–7 against its rubric, the reward QED-Nano trained with.

Qwen3.5-2B, trained with RL from the base model on FineProofEnvs, went from 0.217 to 0.407 on held-out proofs in 500 updates. A gpt-oss-120b regrade sees 0.259 → 0.464. All of it ran on Hugging Face: Jobs, Sandboxes, Inference Providers and a bucket. Reading the proofs shows new key ideas, and also that both judges forgive contradictions around a correct argument. The blog post tells the story. The model, the tasks, every eval attempt and the training logs are in the Math Environments collection.

09 · RetroEnv  plan a synthesis back to molecules you can buy

A verifier that does not hold the answer. Given a target molecule, the agent works backwards through nine tools until every leaf is something a supplier sells. Each proposed reaction is checked against a frozen library of real reactions and templates, and each leaf against a 102,915-item stock list — so any route that holds up chemically counts, including one no chemist has published. Matching the patent route only adds a bonus.

Qwen3.8-27B trained on it with GRPO went from 0.118 to 0.338 pass@1 on the held-out set, hard tier 0.035 → 0.18. On the thirty tasks the 13-model board uses — where Sonnet 5.5 scores 0.400 and the untrained Qwen 0.100 — it solves 14 on first attempt against the base model's 4. Both mixed-pool runs peak and then decline, and results/ says so. Every rollout is readable in retroenv-rollouts: the route trees drawn with RDKit, the reward breakdown, and all fifteen models side by side on the same molecule. Models, adapters, datasets and 174 GB of runs are in the RetroEnv collection.

10 · DesignWorld  rebuild a real design in a real editor

Computer use on design software, scored on the layers. The agent gets a target design and its parts and rebuilds it by mouse and keyboard in one of eight editors: six browser replicas of common design tools, and the real Inkscape and Penpot, run in Daytona sandboxes. On submit the env reads the editor's own document back and scores it against the design's layers. About 2k designs, adapted from the corpus introduced with CanvasVAE (Yamaguchi, ICCV 2021).

Qwen3.6-35B-A3B fully fine-tuned and then trained with GRPO in the replicas goes from 4.1 to 35.6 (SFT) to 41.7 (RL) on 30 held-out designs across 14 editors, with the 200-screenshot history it was trained on; RL trained only in the replicas still adds +5.3 in the real apps. The env runs at FineEnvs/designworld-env; models, data and the benchmark are in the DesignWorld collection and linked from the project README.

More coming. Each new project is another end-to-end recipe: an environment, a training run, and the artifacts on the Hub. Proposals and contributions welcome →

Tooling

Apps for exploring and evaluating RL environments, in tooling/:

  • HF RL Explorer (Space): every RL environment on the Hub in one place (Harbor datasets, OpenEnv Spaces, NeMo Gym, Verifiers, verl and SkyRL, MiMo), what each task asks and how it is graded, and agent rollouts on any of them, graded and compared.
  • MiMo RL Environment Explorer (Space): the 7,780 MiMo-V2.6-RL environments, rollouts on MiMo's own harness, and mimo_harbor, their conversion to Harbor datasets.

Articles & talks

Long-form writing and conference talks, each one live on the Hub as a Space or blog post. Sources live in content/.

5 articles  ·  4 talks

FineProofEnvs: RL training a 2B math prover
article · HF blog

FineProofEnvs: RL training a 2B math prover

Qwen3.5-2B trained with RL from the base model to write olympiad proofs, through a ~280-line Harbor harness: 0.22 → 0.41 on held-out proofs.

📂 blog · project 08
Simulation RL Environments
article · HF Space

Simulation RL Environments

Real operations as RL environments: PortSimEnv from the Port of Barcelona's 2024 records, plus the community's v2–v5 and RailSimEnv.

📂 source · project 07
The Ultimate Guide to Multi-Harness RL
article · HF Space

The Ultimate Guide to Multi-Harness RL

Train open models with RL inside real agent harnesses: one set of data tasks, trained through TRL's own tools, native OpenCode and Harbor.

📂 source · project 05
How to turn a game into an RL environment
article · HF Space

How to turn a game into an RL environment

Curate the data, design the env, ship it with OpenEnv, then train a 4B with TRL until it outscores gpt-5.4-mini at GeoGuessr.

📂 source · project 03
The Ultimate Guide to RL Environments
article · HF Space

The Ultimate Guide to RL Environments

Building and scaling RL environments in the LLM era: how frameworks are built, how rewards are wired, and how they scale to thousands of sessions.

📂 source
Training a Coding Agent Through a Harness You Did Not Write
talk · Kernel Panic Madrid

Training a Coding Agent Through a Harness You Did Not Write

One small model trained with GRPO inside four unmodified coding agents: OpenCode, Claude Code, Codex and Mini-SWE-Agent.

📂 source · project 05
Multi-Harness Training
talk · OpenEnv × Harbor

Multi-Harness Training

Why an environment's failure model decides whether you can train against it, and how to capture trainable tokens across an HTTP boundary.

📂 source
Scaling RL for LLMs
talk · AMD AI Dev Day

Scaling RL for LLMs

What an environment actually is, how reward hacking happens, and how to build and train against your own. The 20-minute cut.

📂 source
RL Environments 101
talk · 30 min

RL Environments 101

From "what is an env?" to training your own: RL fundamentals → environment anatomy → OpenEnv → training with TRL. The original talk.

📂 source

Quickstart

Run an environment. Wordle is pure Python with no external backend — the fastest full rollout:

git clone https://github.com/adithya-s-k/FineEnvs
cd FineEnvs
cp .env.example .env          # HF_TOKEN, plus E2B_API_KEY for sandbox-backed envs

cd 00-environments-101/envs/wordle/verifiers
uv sync && uv run python rollout.py

Train a model against one. No GPU, no cluster, no setup — one command spins up a GPU with the notebooks loaded and prints a JupyterLab URL:

curl -sSL https://raw.githubusercontent.com/adithya-s-k/FineEnvs/main/tools/jupyter_launch.py | python3 -

Windows (PowerShell): irm https://raw.githubusercontent.com/adithya-s-k/FineEnvs/main/tools/jupyter_launch.py | python -. Set FLAVOR=t4-small for a cheaper GPU. Track jobs at huggingface.co/settings/jobs.


Build your own environment

Five SKILL.md-spec agent skills turn a plain-English description into a runnable RL environment across four frameworks. They work in any project — with Claude Code, Cursor, Codex, OpenCode, Gemini CLI and others.

npx skills add adithya-s-k/FineEnvs
Skill What it builds
rl-env-from-description Orchestrator — interviews you, then ports across all four frameworks
generate-openenv-env OpenEnv (Hugging Face / Meta) — HTTP + MCP
generate-ors-env OpenReward (ORS) — per-tool-call rewards
generate-verifiers-env Verifiers (Prime Intellect) — in-process + rubrics
generate-nemo-gym-env NeMo Gym (NVIDIA) — HTTP + post-episode /verify

"make me an env where the agent plays connect-four" — that's the whole interface.


Repository layout

FineEnvs/
├── 00-environments-101/     3 environments × 6 frameworks
├── 01-latex-ocr/            train a VLM against a served reward
├── 02-watercolour/          train against an aesthetic reward
├── 03-geoguesser/           a multi-turn game as an environment
├── 04-smoldataenvs/         5.5K+ verified data-analysis tasks
├── 05-multi-harness-rl/     the same tasks trained through TRL, OpenCode and Harbor
├── 06-multilingual/         OCR over 22 languages and ASR over 102, two OpenEnv servers
├── 07-simulation-environments/  a catalog of simulation environments: PortSimEnv v1–v5 and more
├── 08-math-environments/    math environments graded exactly, by Lean, or by a rubric judge
├── 09-retroenv/             retrosynthesis graded against a frozen reaction library
├── 10-design-world/         rebuild real designs by computer use in replica and real design editors
├── content/
│   ├── articles/            long-form sources (Astro → Docker Space)
│   └── slides/              talk decks (Vite → static Space)
├── tooling/
│   ├── hf-rl-explorer/      every RL environment on the Hub, with rollouts (Space + admin)
│   └── mimo-rl-explorer/    the MiMo-V2.6-RL environments, rollouts, Harbor conversion
├── tools/                   launcher, Space deploy, index generation
├── assets/                  brand + content thumbnails
└── .claude/skills/          the five environment-authoring agent skills

Inside a project the folders always mean the same thing: envs/ (implementations, shared logic in core/), train/ (configs + launch), notebooks/, results/.


Contributing

We're actively looking for new end-to-end recipes — a task, an environment, a training run, and honest results. Domains we don't cover yet are especially welcome: web browsing, SQL, games, robotics sims, tool-use over real APIs, long-horizon software engineering.

Half-finished counts. A recipe with real numbers and a gap beats a polished one nobody ran — open an issue and we'll help you land it. New framework ports, reproductions that disagree with ours, and corrections to the guide are all just as welcome.

See CONTRIBUTING.md. The fastest path to a new environment is the rl-env-from-description skill.

Citation

@misc{fineenvs,
  author = {Kolavi, Adithya S},
  title  = {FineEnvs: Open Source RL Environments for LLM Agents},
  year   = {2026},
  url    = {https://github.com/adithya-s-k/FineEnvs}
}

License

Apache 2.0

Built in the open · 🤗 FineEnvs · @AdithyaSK

Explorer des projets similaires

Chargement…