FastKernels evaluates AI-generated GPU kernels against state-of-the-art baselines via a two-stage pipeline: isolated kernel testing and end-to-end model evaluation.
Generate empty stubs with correct __init__/forward signatures, then have your agent fill them:
fastkernels create-stubs --architecture llama
# Agent implements: tasks/candidate/L<level>/<op_name>.pyNote: The candidate nn.Module must exactly match the baseline's class name and signature. Lower-level replacements automatically propagate up the hierarchy.
Test isolated correctness (error ratio
fastkernels bench # Benchmark all available candidates
fastkernels bench --level 1 # Benchmark all L1 candidates
fastkernels bench --target rms_norm # Benchmark a single operatorVerify that the candidates preserve greedy token matching and improve true model throughput when integrated into the full architecture:
fastkernels eval fastkernels/scenarios/llama3.1.yaml