Hugging Face 在 Hub 上线 RL Environments 功能
Welcome RL Environments to the hub
Hugging Face 在 Hub 上线 RL Environments,用 rl-environment 标签把环境作为数据集托管,并注册 Harbor、Verifiers、OpenEnv、NeMo Gym 四个框架标签,数据集页面会显示框架图标并生成加载命令。用户可在 datasets?other=rl-environment 筛选查看,文中给出了各框架运行任务并检查 verifier 奖励的示例命令。官方已为 BeyondSWE、Terminal-Lego、Multi-SWE-RL-Verified、Workplace Assistant 等已有环境提交打标签的 PR,后续计划支持按配置生成片段和自动打标签。
推荐理由
AI 评分 58
Hugging Face 把 RL 环境作为数据集标签统一托管,读者可了解跨框架环境复用与奖励校验的具体做法。
主题
正文
当前显示原文,中文全文译文尚未就绪。
Stop building environment registries
Every RL paper or framework uses its own way to find environments. Custom hubs, runtime registries, independent task datasets, or a GitHub list of tasks with a custom loader. This means that many of the published environments are siloed: if you publish an environment for one framework, users of the other three can’t load it. If you want to train on an environment from another framework or a new paper, you’ll need to port it by hand.
We think this is the wrong shape. An environment is tasks, tests, containers, and a reward rule, which are data with a runtime on top. The Hub already stores data, versions it, gates it, previews it, and serves it to millions of people. It does not need a second system to hold environments. It needs a way to say "this data is an environment, and here is how you run it."
The frameworks keep doing what they are good at. The Hub does what it is good at, which is hosting, discovery, and versioning. Nobody has to own the catalogue. In fact, catalogues can run on other platforms too, powered by the hub.
The dataset repository hosts your environment files. The framework runs them locally or on a supported cloud backend. Hugging Face Jobs can run cloud workloads, and Hugging Face Sandboxes , built on Jobs, provide interactive command execution. The tags describe compatibility and generate loading commands; adding a tag does not start a job or sandbox.
What shipped
The RL Environments filter. Go to huggingface.co/datasets?other=rl-environment . Every dataset with the rl-environment tag appears there, whatever framework it works with.
Framework tags. Four environment frameworks are registered as dataset libraries:
Each framework tag puts the framework's icon on the dataset page and adds a generated snippet to Use this dataset .
A dataset can carry more than one framework tag. That is the point. Tags describe compatibility, and compatibility is not exclusive. Each listed framework must support the files in the repository; adding a tag does not convert them.
Run an environment and inspect its reward
Choose the example for your framework and run it in a separate Python environment with the prerequisites listed below.
Harbor: run a reference solution
Harbor can load task directories from a Hub repository. The oracle agent runs the task's reference solution, then the verifier scores the result. It does not call a model.
The viewer shows the task's reward, verifier output, and logs. This checks the task and its reference solution before you try a model agent.
Verifiers: run a model on the same task
The Harbor integration of verifiers v1 can run the same task directories in different runtimes, such as Docker. It also supports different harnesses, including a minimal bash harness.
Here repo is the full Hugging Face Git URL, while dataset is the name and version in that repo's registry.json. This loader uses Harbor's registry conventions, so a bare Hub repo ID cannot replace both values.
OpenEnv: run an agent and inspect its reward
OpenEnv's Harbor integration can run the same task directories with an agent such as OpenCode and return the verifier's reward alongside the agent's trace.
The command downloads the dataset's tasks/ directories, runs one task in Docker, and writes the result. The default connection uses a temporary Gradio tunnel so the sandboxed agent can reach OpenEnv's model proxy. Read the verifier result and the number of model calls:
A reward of None means no verifier reward was produced; inspect error before interpreting the run as a model failure. This path expects Harbor task directories.
NeMo Gym: generate responses and inspect rewards
NeMo Gym supports evaluation and RL training: its environments collect trajectories and compute rewards, while a training framework updates model weights. For example, the Structured Outputs dataset pairs prompts with JSON schemas. Its verifier rewards schema adherence; it does not check whether the generated content is factually correct.
The best part is that this gives one repo and one discussion tab where people report broken tasks from all major frameworks. So when an author fixes a bad test, every framework gets the fix on the next pull.
Tag your environment
Open your dataset card and add this to the YAML header:
That is the whole integration. Keep rl-environment , then list every framework that can load your files. If your environment works with a framework we have not registered yet, open a PR to the list of supported libraries .
The docs have the full reference.
Already on the Hub
We opened PRs to tag some of the environments people already train on. If you maintain one of these, merge the PR and your environment shows up in the filter.
Harbor
BeyondSWE : the BeyondSWE benchmark as Harbor task directories, one folder per instance.
Terminal-Lego : Terminal-Bench-style tasks built from real StackOverflow issues, kept only after Docker round-trip verification.
Harbor-Mix : 100 hard agentic tasks picked from the Harbor adapters pool, cheaper to run than a full multi-benchmark sweep.
NatureBench : the 90 NatureBench tasks prebuilt for Harbor.
Verifiers
Reverse-Text-RL : the small reversal task prime-rl uses in CI to debug RL training.
Multi-SWE-RL-Verified : 2,232 of 4,703 Multi-SWE-RL rows that pass gold-patch validation across C, Go, Java, JavaScript, Rust, and TypeScript.
R2E-Gym-Subset-Verified : a verified R2E-Gym subset.
Scale-SWE-Verified : 17,202 of 20,181 Python issue-resolving tasks that give a clean reward signal end to end.
NeMo Gym
Workplace Assistant : a multi-step tool-use sandbox with five databases, 26 tools, and 690 business tasks.
Structured Outputs : instruction following with structured outputs.
CFBench : multilingual constraint following.
SysBench : multi-turn system message following.
What comes next
The first version generates one default snippet per framework. Per-config snippets are next, so a repo with several task sets can show the right command for each. After that we will look at structural detection for frameworks with strict layouts. It would also be really cool build custom task UIs, we’ve been experimenting with this here:
The bigger goal is for framework tagging to be automatic everywhere. OpenEnv already does it on upload. If you maintain Harbor, Verifiers, Nemo Gym, or any other environment framework, add the tags in your push path. It is a few lines, and every environment your users publish becomes visible to everyone else.
If you train agents, go browse the filter . If you build environments, publish and tag them, whether they cover coding, tool use, games, robotics, or another task. Include the files, a working run command, and the rule that produces the reward so others can use them. If your framework is missing, contribute it to the list of supported libraries .
Datasets mentioned in this article 10
AweAI-Team/BeyondSWE-harbor
FrontisAI/NatureBench-Harbor
Lego-X/Terminal-Lego-15k
PrimeIntellect/Multi-SWE-RL-Verified
PrimeIntellect/R2E-Gym-Subset-Verified
PrimeIntellect/Reverse-Text-RL
PrimeIntellect/Scale-SWE-Verified
harborframework/harbor-mix
harborframework/terminal-bench-2.1
nvidia/Nemotron-RL-instruction_following-structured_outputs
Spaces mentioned in this article 1
The ultimate guide to RL environments: building and scaling them in the LLM era
Building and scaling RL environments for LLM training
More Articles from our Blog
Async GRPO with LoRA across HF Jobs: a bucket, a proxy, and no NCCL
Datasets mentioned in this article 10
AweAI-Team/BeyondSWE-harbor
FrontisAI/NatureBench-Harbor
Lego-X/Terminal-Lego-15k
PrimeIntellect/Multi-SWE-RL-Verified
PrimeIntellect/R2E-Gym-Subset-Verified
PrimeIntellect/Reverse-Text-RL
PrimeIntellect/Scale-SWE-Verified
harborframework/harbor-mix
harborframework/terminal-bench-2.1
nvidia/Nemotron-RL-instruction_following-structured_outputs
Spaces mentioned in this article 1
The ultimate guide to RL environments: building and scaling them in the LLM era
Building and scaling RL environments for LLM training