---
id: pr-quack-53
repo: Dao-AILab/quack
pr: 53
title: Fix gradient computation in RMS PreNorm backward pass
author: xuy1234
date: '2025-10-30'
url: https://github.com/Dao-AILab/quack/pull/53
source_category: upstream-code
architectures:
- sm100
tags:
- norm
techniques: []
hardware_features: []
kernel_types:
- norm
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 3e0fa64595f9734cea705386f26846a98da08cdd
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- quack/rmsnorm.py
- tests/test_rmsnorm.py
artifact_dir: evidence/pull-bundles/quack/gh-53
head_ref_oid: 85532b242e8da79147393ad3ad7a7819abe77561
---
# Fix gradient computation in RMS PreNorm backward pass

- Repository: `Dao-AILab/quack`
- PR: [53](https://github.com/Dao-AILab/quack/pull/53)
- Decision: `Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.`
- Reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.

## Changed Paths

- `quack/rmsnorm.py`
- `tests/test_rmsnorm.py`

## Evidence Bundle

`evidence/pull-bundles/quack/gh-53`
