Skip to content

Support QAT for low precision RL #1750

Closed

Description

@sharonyu-115

Is your feature request related to a problem? Please describe.
Low-precision inference (e.g., W4A16, W4A4) significantly improves throughput and memory efficiency during the rollout phase of RL. However, directly applying low-precision weights during rollouts without accounting for quantization errors during training often leads to severe training-inference mismatch and instability.
To address this, we propose integrating Quantization-Aware Training (QAT). By simulating quantization effects during the training phase, the model can adapt to the precision loss, ensuring consistency between the training policy and the inference policy used for data collection.

Describe the solution you'd like
Overview of the flow (taking W4A16 as an example):

  • Policy Training: apply fake quantization to the weights of linear layers (quantize to NVFP4 first, then dequantize back to BF16). Use dequantized BF16 at forward pass and update original BF16 weights at backward pass.
  • Refit: perform real quantization on the weights and load them into the inference engine.
  • Rollout: run inference using W4A16.

@zpqiu Please add necessary information as needed. Thanks!
@snowmanwwg @guyueh1 For your awareness. Thanks!

Activity

  1. added
    enhancement
    on Jan 9, 2026
  2. self-assigned this
    on Jan 9, 2026
  3. JamesSand commented on Jun 24, 2026

    @JamesSand

    hi. I am also interested in this. Is there any update on this?

  4. sharonyu-115 commented on Jun 24, 2026

    @sharonyu-115
    ContributorAuthor

    hi. I am also interested in this. Is there any update on this?

    Hi @JamesSand, Thanks for your interests in this feature. I should had the issue updated with the latest information. The implementation is already in progress, with the following PRs already merged:
    #1756
    #2442
    And one in progress, to be merged soon:
    #2592

    @snowmanwwg fyi.

  5. removed their assignment
    on Jun 24, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions