mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #40] [MERGED] Implement stochastic rounding (CORE-200) #97
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#97
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/40
Author: @rattus128
Created: 5/19/2026
Status: ✅ Merged
Merged: 5/21/2026
Merged by: @comfyanonymous
Base:
main← Head:prs/stochastic-rounding📝 Commits (2)
5baff55add stochastic rnd1e58587stochastic-rounding: implement eager and registryify📊 Changes
6 files changed (+251 additions, -0 deletions)
View changed files
📝
comfy_kitchen/__init__.py(+21 -0)📝
comfy_kitchen/backends/cuda/__init__.py(+37 -0)📝
comfy_kitchen/backends/cuda/dlpack_bindings.cpp(+48 -0)📝
comfy_kitchen/backends/cuda/ops/per_tensor_quantize.cu(+81 -0)📝
comfy_kitchen/backends/eager/__init__.py(+12 -0)📝
comfy_kitchen/backends/eager/quantization.py(+52 -0)📄 Description
Add cuda kernels for stochastic rounding as implemented in ComfyUI. Significant speedups for async offload + fp8 + lora users.
See: https://github.com/Comfy-Org/ComfyUI/pull/13971
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.