Task datasheet · tasks/attention-kernel-invariance/task.tomlRev 0.1 · Nov 2026
PB-K01

attention-kernel-invariance

Make SGLang's deterministic serving of Qwen3-1.7B (thinking mode) faster on one H100 by replacing its attention kernel (declaratively: GPU kernels plus a manifest a trusted loader executes), while every request's output stays bit-identical across batching, chunking, cache reuse and shared-prefix grouping and its next-token distributions stay as close to stock as legitimate kernel variants are.

Area
Kernels
Status
Live

1Overview

Make SGLang's deterministic serving of Qwen3-1.7B (thinking mode) faster on one H100 by replacing its attention kernel (declaratively: GPU kernels plus a manifest a trusted loader executes), while every request's output stays bit-identical across batching, chunking, cache reuse and shared-prefix grouping and its next-token distributions stay as close to stock as legitimate kernel variants are.

Keywords
  • sglang
  • attention
  • kernels
  • numerics
  • deterministic-inference
  • batch-invariance
  • triton
  • cuda
Category in task.toml

Infra & Systems

2Functional block diagram

AGENT IMAGE · 1× H100 · ≤ 12 h · network: allow-listed hostsFROZEN STACKengine and modelworking baselineprofiling toolsTASK BRIEFinstructionsreward and gatestime budgetAGENTread · profileedit · buildany harnessVALIDATIONpublic splitsame metricSUBMISSION/workspace/submissionHIDDEN VERIFIERseparate imageheld-out data · gatesREWARDbaseline → theoretical best
Figure 1. One trial of attention-kernel-invariance.

3Absolute maximum ratings

ParameterAgentVerifier
Wall time12 h4 h
Accelerator1× H1001× H100
CPU cores1616
Memory128 GB128 GB
NetworkAllow-listed hostsNone
Submission/workspace/submission

Each trial runs in its own image. The verifier runs separately and the agent never sees its data.

4Scoring characteristics

ParameterDirectionMinTypMax
RewardHigher is better0.0051 ± 0.0077pending0.627

Min: shipped baseline, mean of 3 hidden-split runs. Typ: best agent result, filled in from the formal runs. Max: theoretical best.

HEADROOM 0.6220.000.250.500.751.00baseline 0.0051best 0.627agent results pending
Figure 2. Reward headroom for attention-kernel-invariance.

The full reward definition and metric list will be published with the benchmark release.

5References

SourceType
Qwen3-1.7Bmodel
SGLangcode
FlashAttention-3code
LongBench v2dataset
CUTLASScode
Withheldpaper
Cascade Inferencepaper
PerfBench · PB-K01 attention-kernel-invarianceRev 0.1