Spaces:
Running

pedroapfilho commited on
Commit
bf4c82d
·
unverified ·
1 Parent(s): b0a0560

Fix meta tensor: monkey-patch ResidualFSQ to force CPU tensor creation

Browse files

ZeroGPU's __torch_function__ hooks redirect ALL tensor creation to
meta device, even with torch.device('cpu') context. The fix patches
torch.tensor within ResidualFSQ.__init__ to explicitly pass device='cpu',
so the levels assertion runs on real CPU tensors instead of meta tensors.

1 file changed +40 -12
acestep/handler.py+40-12