---
id: pr-quack-126
repo: Dao-AILab/quack
pr: 126
title: 'feat: add `weight` to cross entropy'
author: rafacelente
date: '2026-05-01'
url: https://github.com/Dao-AILab/quack/pull/126
source_category: upstream-code
architectures:
- sm100
tags:
- benchmark kernel
- cross-entropy
- cute
- quack
- softmax
techniques:
- async-copy
hardware_features:
- tma
kernel_types:
- softmax
languages:
- cuda-cpp
- cute-dsl
captured_at: '2026-05-16'
status: merged
merge_sha: c7cbcb3aea37dbf40ec03c98b65a2d4ca93dad65
inclusion_reason: Search-matched CUDA kernel optimization PR; materialize diff/source before synthesis.
changed_paths:
- quack/cross_entropy.py
- quack/linear_cross_entropy.py
- tests/test_cross_entropy.py
artifact_dir: evidence/pull-bundles/quack/gh-126
head_ref_oid: eff32121153c437f6995b02a815c61357600ffb9
---
# feat: add `weight` to cross entropy

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

## Evidence Bundle

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