atropos/environments/kernelbench_env
2025-05-17 04:37:09 +00:00
..
kernelbench_env.py move to its own folder, add readme, citation. 2025-05-17 04:34:49 +00:00
README.md readme updates 2025-05-17 04:37:09 +00:00

KernelBench Environment Setup Instructions

Prerequisites

Before running kernelbench_env.py, you need to install KernelBench:

  1. Install KernelBench from source:

    pip install git@github.com:ScalingIntelligence/KernelBench.git
    cd KernelBench
    pip install -r requirements.txt
    pip install -e .
    cd -
    
  2. Set variables at the top of the script:

    • KERNELBENCH_LEVEL: The difficulty level (1-3)
    • KERNELBENCH_PROBLEM_NUMBER: The specific problem number to solve
    • KERNELBENCH_DIR: The absolute path to your KernelBench install
  3. Run kernelbench_env.py as you would any other environment:

    python kernelbench_env.py serve --slurm False
    
    

These environment variables will be used to configure the evaluation environment.

Citations

Baronio,C., Marsella,P., Pan,B., & Alberti,S. (2025May6). Kevin32B:MultiTurnRLforWritingCUDAKernels. CognitionAI Blog. RetrievedMay16,2025, fromhttps://cognition.ai/blog/kevin-32b