---
id: pr-quack-20
repo: Dao-AILab/quack
pr: 20
title: add reduction options to Quack Cross Entropy for PyTorch drop-in usage
author: lessw2020
date: '2025-07-17'
url: https://github.com/Dao-AILab/quack/pull/20
source_category: upstream-code
architectures:
- sm100
tags:
- cross-entropy
techniques: []
hardware_features: []
kernel_types:
- reduction
languages: []
captured_at: '2026-05-16'
status: merged
merge_sha: 5b0db1018081247175a1854f4c5734fc9f0418ff
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- quack/cross_entropy.py
artifact_dir: evidence/pull-bundles/quack/gh-20
head_ref_oid: 475b054d512a232ea9852d803fc8a73ef5d8f5b0
---
# add reduction options to Quack Cross Entropy for PyTorch drop-in usage

- Repository: `Dao-AILab/quack`
- PR: [20](https://github.com/Dao-AILab/quack/pull/20)
- 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/cross_entropy.py`

## Evidence Bundle

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