PersonaLive
PersonaLive copied to clipboard
ValueError with PyTorch 2.6.0.dev - transformers doesn't recognize nightly builds
Hi, I got PersonaLive nodes fail to load with this error:
ValueError: Due to a serious vulnerability issue in `torch.load`, even with `weights_only=True`, we now require users to upgrade torch to at least v2.6 in order to use the function. This version restriction does not apply when loading files with safetensors.
See the vulnerability report here https://nvd.nist.gov/vuln/detail/CVE-2025-32434
Error location:
File "transformers/utils/import_utils.py", line 1647, in check_torch_load_is_safe
File "nodes.py", line 185, in load_checkpoint
image_enc = CLIPVisionModelWithProjection.from_pretrained(image_encoder_path)
Environment
- OS: Windows 11
- GPU: RTX 4090 (24GB VRAM)
- Python: 3.10.11
- PyTorch: 2.6.0.dev20241112+cu121 (nightly build from pip)
- Transformers: 4.57.3 (latest), also tried 4.44.0
- ComfyUI: 0.6.0
Root Cause
- PersonaLive requires PyTorch 2.6+
- PyTorch 2.6.0 stable was just released (Jan 29, 2025)
- PyTorch 2.6.0 not yet available for CUDA 12.1 on PyPI
- Installed PyTorch 2.6.0.dev (nightly) instead
- Transformers library doesn't recognize dev builds (e.g.,
2.6.0.dev20241112) as valid v2.6 - Version check rejects it even though PyTorch version is technically ≥2.6
What I Tried
- ✅ Installed PyTorch 2.6.0.dev+cu121 (confirmed working:
torch.__version__returns2.6.0.dev20241112+cu121) - ❌ Transformers 4.57.3 - too strict, rejects dev builds
- ❌ Transformers 4.44.0 - too old, PersonaLive nodes error out completely
Questions
- Can PersonaLive work with PyTorch 2.6.0.dev nightly builds?
- Should I wait for stable PyTorch 2.6.0+cu121 pip release?
- What's the recommended transformers version that works with PyTorch 2.6.0.dev?
- Could the code be updated to accept dev builds or use a different version check?
Temporary Workaround Needed
Which transformers version range works with both:
- PyTorch 2.6.0.dev
- PersonaLive requirements
Thanks!
PersonaLive requires PyTorch 2.6+
Hi, actually PersonaLive does not require PyTorch 2.6+. PyTorch 2.1 is sufficient.
I recommend using Conda to create a new environment to avoid these dependency issues.