mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #231] Tune SM120 V quantization for large D128 inputs #240
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/comfy-kitchen#240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Comfy-Org/comfy-kitchen/pull/231
Author: @Tokha233
Created: 10/1/2026
Status: 🔄 Open
Base:
main← Head:perf/sm120-v-quant-long📝 Commits (3)
6dd6f95Tune SM120 V quantization for large D128 inputs14c13e0Clarify V quantization benchmark reproduction98f7fb9Pin complete shared-object build provenance📊 Changes
5 files changed (+2389 additions, -0 deletions)
View changed files
➕
benchmarks/bench_v_quant.py(+82 -0)📝
comfy_kitchen/backends/cuda/sage_attention/quant_v_int8.cu(+38 -0)➕
docs/benchmarks/sm120-v-quant.json(+2089 -0)➕
docs/benchmarks/sm120-v-quant.md(+80 -0)➕
tests/test_int8_v_quant_schedule.py(+100 -0)📄 Description
Large D128 V inputs spend unnecessary time in the fixed 512-thread quantization block on SM120. Use 1024 threads for a bounded FP16/BF16, shape and layout range; retain the existing kernel math, output permutation, padding and all other schedules. This is independent of the D128 attention main-loop (#218) and D64 tile (#227) changes.
RTX 5090 D v2, Torch 2.12.0+cu130, CUDA 13.0.88:
Protocol and raw measurements. Main Python and attention/V sources are pinned to
12389a3; other native objects were reused identically from the existing combined test build, with only the V object replaced. Sampler timing excludes condition/VAE/export. This is not extra acceleration over the fully fused R85 QKV preparation path.Prepared with AI assistance; tests and measurements ran on the stated hardware. DCO signed off.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.