Verifiers RL - Tinker Documentation

RL Training with Tinker + Environments Hub (Verifiers)

Verifiers is a library for creating RL environments for LLMs, including many community implementations featured on Prime Intellect's Environments Hub. This recipe allows all text-based environments from the Environments Hub to be used with Tinker for RL training.

To use this recipe, you need to have your chosen environment module (a self-contained Python package) installed in your project. You can install environments from the Environments Hub using the prime CLI:

uv tool install prime # or pipx install prime
prime env install user/env-id # ex. prime env install primeintellect/reverse-text

Examples:

You can then run the recipe with the following command, where vf_env_id is the ID (just env-id) of the environment, and vf_env_args is an optional JSON string of arguments to pass when loading the environment.

python -m tinker_cookbook.recipes.verifiers_rl.train vf_env_id=env-id vf_env_args='{}' ...

The reverse-text example as configured should climb from ~0.4 to ~0.6 in 32 steps.

You can also evaluate offline:

python -m tinker_cookbook.recipes.verifiers_rl.evaluate vf_env_id=env-id vf_env_args='{}' ...

This recipe also includes a standalone AsyncOpenAI-compatible client implemented with Tinker, which can be adapted for other applications.

Potential footgun: