mirror of
https://github.com/Comfy-Org/comfy-kitchen.git
synced 2026-11-04 23:37:42 +00:00
[PR #43] [docs] Fix QuantizedTensor.from_float examples to use layout name strings #100
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#100
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/43
Author: @BhagyeshKothalkar
Created: 5/24/2026
Status: 🔄 Open
Base:
main← Head:fix-readme-keyerror📝 Commits (1)
9fd8981Fix quantized tensor examples to use layout name strings📊 Changes
2 files changed (+3 additions, -3 deletions)
View changed files
📝
README.md(+2 -2)📝
comfy_kitchen/tensor/fp8.py(+1 -1)📄 Description
Summary
This PR updates the
QuantizedTensor.from_float(...)examples to match the current API.What changed
TensorCoreFP8Layoutdocstring example to do the sameWhy
QuantizedTensor.from_float(...)currently expectslayout_clsto be the registered layout name string, not the layout class object itself. Internally, the implementation resolves that string through theLAYOUTSregistry incomfy_kitchen.tensor.base. While the codebase and test suite correctly pass this string, the README examples and docstrings pass the layout class object.As a result, passing
TensorCoreFP8Layoutdirectly raises a lookup error, while passing"TensorCoreFP8Layout"works as intended. This PR updates the examples to reflect the behavior implemented by the current API.Scope
Documentation only; no implementation changes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.