Skip to content

[FEAT][benchmarks]: add generation-engine paged-KV scoring baseline for stateless Reference/Reward executor #69

Closed

Description

@inaniloquentee

Description

Add a baseline implementation for paged-KV scoring in the generation engine.

The current generation-engine scoring path needs a reference baseline that works with the paged KV-cache layout. This baseline should provide a correctness-first implementation that can be used to compare against future optimized paged-KV scoring kernels or execution paths.

The goal is to ensure that scoring with paged KV produces results consistent with the existing non-paged or contiguous-KV scoring behavior, while establishing a clear performance and correctness baseline for later optimization.

Scope

  • Implement a baseline paged-KV scoring path in the generation engine.
  • Support scoring using paged KV-cache metadata, including block/page tables and sequence offsets.
  • Validate numerical correctness against the existing scoring implementation.
  • Add tests covering representative sequence lengths, batch sizes, and KV page layouts.
  • Add basic benchmark or logging support to compare baseline performance.

Expected Outcome

The generation engine should be able to run scoring with paged KV enabled, producing correct scores/logits/logprobs that match the existing baseline within acceptable tolerance.

Activity

  1. added
    priority: high
    on Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

priority: high

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions