Skip to content

gpu-gates: NVFP4 host transcription overflows before expert scaling #702

Closed

Description

@github-actions

dot32_nv's F32 contract result loses the exceptional range that the production kernel preserves. For K=64, all decoded weight codes=2, all sub-block scales=0.5, activation codes=127, d_a=2^120 and expert scale=2^-120, it returns infinity instead of 8128 [derived]. These activations are valid: inputs 127*2^120 quantize exactly to those codes and scale. The first tuple member feeds check_dot's bit comparison in gate_gemm; using this boundary there would reject a correct finite kernel result. Transcribe the production rule's normal F32 rounding and exceptional F64 accumulation through expert scaling, and add this boundary to the existing gate.

Evidence (at the base of #700):

Filed by Shingler, the review bot, while reviewing #700; the defect is outside that pull request.

Activity

  1. added
    review-bot
    on Oct 23, 2026
  2. juliankang4 commented on Oct 23, 2026

    @juliankang4
    Collaborator

    I'll take this one and open a fix.

    (AI 코딩 에이전트가 작성한 코멘트이며, 내용은 제가 확인했습니다.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    review-bot

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions