Files
audiocraft-ui/main.py
Sebastian Krüger 4c602a6c07 Add PyTorch 2.5+ compatibility patch for _pytree API
The torch.utils._pytree module changed its API in PyTorch 2.5:
- register_pytree_node became _register_pytree_node (or vice versa)
- This breaks audiocraft which uses the old API

Add monkey-patch to alias the function for backwards compatibility.

See: https://stackoverflow.com/questions/78501569

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 13:38:09 +01:00

5.7 KiB