mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #83] [MERGED] Support int8 convrot embedding lookup #132
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#132
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/83
Author: @kijai
Created: 7/22/2026
Status: ✅ Merged
Merged: 7/25/2026
Merged by: @comfyanonymous
Base:
main← Head:int8_embed📝 Commits (2)
acdeb6dSupport int8 convrot embeddings3fd6629linting📊 Changes
4 files changed (+80 additions, -1 deletions)
View changed files
📝
comfy_kitchen/backends/eager/__init__.py(+12 -0)📝
comfy_kitchen/backends/eager/quantization.py(+53 -0)📝
comfy_kitchen/backends/triton/__init__.py(+1 -1)📝
comfy_kitchen/tensor/int8.py(+14 -0)📄 Description
Adds support for int8 embedding lookup, useful for text generation models with lm_head or embed_tokens layers such as used in Gemma4.
Compared to the fp8 scaled (the only previously supported quant format for embed lookup), int8 with convrot reaches much lower relative error at ~0.8% vs ~2.6% of fp8_scaled.
Since the embedding lookup is only ~0.10% of the token time, speed is not an issue and I only included the eager backend.
Paired core PR: https://github.com/Comfy-Org/ComfyUI/pull/15035
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.