Repository navigation
Conversation
|
Checked the diff against #11638: the readability gate in diffusion_te_prequant.py still requires torchao even for plain-tensor safetensors, which is what sends Windows ROCm to the missing .pt and the dense encoder. Will get this reviewed. |
|
the hosted read from the file's header over a range request and traced through the branch; not run on hardware. |
The hosted Qwen-Image-2.1 fp8 text encoder keeps tensor_names with every
entry {"_type": "Tensor"}, so the no-tensor_names branch never ran for it
and Windows ROCm still downloaded it, raised, then fetched the dense encoder.
Treat an all-Tensor header as plain, keep the leftover-tensor check and the
root-tensor restore, and pin it against torchao's own unflatten.
|
Thank you for the PR and for tracking down #11638! This is now fixed on main by #12333 (fa595c6), which takes the same approach at a narrower scope, so I'm closing this one as superseded. For the record, what I checked here before #12333 landed:
Thanks again for the report and the fix. |
Fixes #11638
Motivation
A published text-encoder checkpoint can be a plain safetensors file with no torchao subclass metadata. On Windows ROCm, torch may have no
torch.distributed, so torchao can be unavailable; the current gate then rejects a readable file and the later.ptfallback can appear as a missing artifact.Changes
Tests
Focused tests pass locally.