PersonaLive icon indicating copy to clipboard operation
PersonaLive copied to clipboard

ValueError with PyTorch 2.6.0.dev - transformers doesn't recognize nightly builds

Open fxayuan opened this issue 11 months ago • 1 comments

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

  1. ✅ Installed PyTorch 2.6.0.dev+cu121 (confirmed working: torch.__version__ returns 2.6.0.dev20241112+cu121)
  2. ❌ Transformers 4.57.3 - too strict, rejects dev builds
  3. ❌ Transformers 4.44.0 - too old, PersonaLive nodes error out completely

Questions

  1. Can PersonaLive work with PyTorch 2.6.0.dev nightly builds?
  2. Should I wait for stable PyTorch 2.6.0+cu121 pip release?
  3. What's the recommended transformers version that works with PyTorch 2.6.0.dev?
  4. 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!

fxayuan avatar Dec 29 '25 07:12 fxayuan

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.

huai-chang avatar Dec 29 '25 13:12 huai-chang