You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Kolors fails to import on PyTorch nightly: torch.jit.script was removed #15315
PyTorch removed the deprecated public TorchScript APIs (torch.jit.script, trace, load, ...) in pytorch/pytorch#203621 (on main since 2026-11-09). src/diffusers/pipelines/kolors/text_encoder.py decorates apply_rotary_pos_emb with @torch.jit.script at module level, so importing the Kolors pipelines fails on nightlies built after that. It is the only use of a removed torch.jit API under src/.
Reproduction
fromdiffusersimportKolorsPipeline
Logs
RuntimeError: Failed to import diffusers.pipelines.kolors.pipeline_kolors because of the following error (look up to see its traceback):
module 'torch.jit' has no attribute 'script'
System Info
diffusers main (865e421), torch 2.16.0a0 nightly (2026-11-14), transformers 5.21.0, Python 3.12, Linux
Activity