Product Updates Hugging Face Blog

Welcome RL Environments to the hub

Hugging FaceRL environmentsagentic AIdatasets

Reinforcement Learning environments give agentic AI systems new capabilities and are a way to measure and improve agent performance. An environment gives an agent a task, responds to its actions with observations, and scores the outcome; the resulting rewards can measure performance during evaluation or act as a learning signal during training. Hugging Face Hub has therefore added a special place for RL Environments.

Within an environment, an agent performs a set of tasks represented as datasets, so environments can be split broadly into two parts: tasksets and runtimes. This release focuses on tasksets. An RL environment on the Hub is a dataset repo that appears under the new RL Environments filter, and the 'Use this dataset' button provides the command to run it in that framework. There is no new repo type, no registry, and no sign-up. Environments from Harbor, Verifiers, and NVIDIA NeMo Gym are already available.

The motivation is to stop building separate 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—which leaves many published environments siloed. An environment published for one framework cannot be loaded by users of the others, and training on an environment from another framework or a new paper requires porting it by hand.

Hugging Face argues this is the wrong shape: an environment is tasks, tests, containers, and a reward rule—data with a runtime on top. The Hub already stores, versions, gates, previews, and serves data to millions, so it does not need a second system to hold environments. It only needs a way to say 'this data is an environment, and here is how you run it.'

In practice, the Hub stores task data while frameworks store runtime and verifier code; a framework loads the data and supplies runtime or verifier implementations when they are not included in the repository. At runtime, an agent exchanges actions and observations with the environment, and a verifier scores the outcome and produces rewards for evaluation or training. The dataset repository hosts tasks and data—and runtime and verifier files when included—while execution happens on your machine or a supported cloud backend. Task data lives on the Hub, and runtime configuration and verifier code can live in the repo or the framework. Frameworks keep doing what they are good at, while the Hub handles hosting, discovery, and versioning, so nobody has to own the catalogue and catalogues can run on other platforms powered by the Hub.

Read original →

← Back to home