Skip to main content

Requirements

Verifiers requires Python 3.10 or later (up to Python 3.13).

Installation Methods

Optional Features

Verifiers includes several optional feature sets that can be installed as extras:

rl

Reinforcement LearningIncludes PyTorch, transformers, vLLM, and training utilities.

rg

Reasoning GymIntegration with reasoning-gym environments.

ta

TextArenaText-based game environments.

browser

Browser AutomationWeb browsing environments with Browserbase.

openenv

OpenEnvOpenEnv environment integration.

Prime CLI Installation

The Prime CLI provides tools for environment management, evaluation, and training:
The Prime CLI is required for:
  • Environment initialization and publishing
  • Running evaluations
  • Managing training jobs
  • Accessing the Environments Hub

Verifying Installation

Verify your Verifiers installation:

Setting Up a Workspace

After installing Verifiers, set up a development workspace:
1

Navigate to Your Project Directory

2

Run Workspace Setup

This creates:
  • Python project structure (if needed)
  • Configuration directory (configs/)
  • Environment directory (environments/)
  • Example configuration files
3

Verify Setup

Configuration

API Endpoints

Configure API endpoints for model inference in configs/endpoints.toml:

Environment Variables

Set up required environment variables:
Store environment variables in a .env file and load them with:

Updating Verifiers

Dependencies

Core Dependencies

Verifiers includes these core dependencies:
  • anthropic - Anthropic API client
  • datasets - Hugging Face datasets
  • openai - OpenAI API client
  • pydantic - Data validation
  • rich - Terminal formatting
  • textual - Terminal UI
  • prime-sandboxes - Sandboxed code execution
  • mcp - Model Context Protocol support

RL Dependencies (Optional)

With verifiers[rl]:
  • torch - PyTorch deep learning framework
  • transformers - Hugging Face transformers
  • vllm - Fast LLM inference
  • accelerate - Distributed training
  • peft - Parameter-efficient fine-tuning
  • wandb - Experiment tracking
  • deepspeed - Training optimization
  • flash-attn - Optimized attention

GPU Support

For GPU-accelerated training:
1

Install CUDA Toolkit

Install CUDA 12.1 or later from NVIDIA.
2

Install Verifiers with RL

3

Install Flash Attention (Optional)

For optimized attention:
4

Verify GPU Access

Troubleshooting

Ensure you’re in the correct virtual environment:
Check your CUDA installation:
Reinstall PyTorch with CUDA support if needed.
Create a fresh virtual environment:
Ensure uv tools are in your PATH:

Next Steps

Quick Start Guide

Create your first environment in minutes

Environment Guide

Learn about datasets, rubrics, and tools

Examples

Browse example environments

API Reference

Explore the complete API