feat: add arty script to fix DiffRhythm transformers version
All checks were successful
Build and Push RunPod Docker Image / build-and-push (push) Successful in 14s

Adds 'fix/diffrhythm-transformers' command to quickly downgrade
transformers library to 4.49.0 for DiffRhythm compatibility.

Usage: arty fix/diffrhythm-transformers

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-11-24 18:15:30 +01:00
parent 8c4eb8c3f1
commit 60ca8b08d0

View File

@@ -396,6 +396,38 @@ scripts:
echo "" echo ""
echo "Category: 🌸Pivoine/Audio" echo "Category: 🌸Pivoine/Audio"
fix/diffrhythm-transformers: |
echo "========================================="
echo " Fix DiffRhythm Transformers Version"
echo "========================================="
echo ""
echo "Issue: Tensor dimension mismatch (32 vs 64) in rotary embeddings"
echo "Solution: Downgrade transformers to 4.49.0"
echo ""
echo "References:"
echo " - https://github.com/billwuhao/ComfyUI_DiffRhythm/issues/44"
echo " - https://github.com/billwuhao/ComfyUI_DiffRhythm/issues/48"
echo ""
cd /workspace/ComfyUI
source venv/bin/activate
echo "Current transformers version:"
pip show transformers | grep Version
echo ""
echo "Installing transformers==4.49.0..."
pip install transformers==4.49.0
echo ""
echo "✓ Transformers downgraded to 4.49.0"
echo ""
echo "Next steps:"
echo " 1. Restart ComfyUI: arty services/comfyui/restart"
echo " 2. Test DiffRhythm workflows"
deactivate
setup/comfyui-extensions-deps: | setup/comfyui-extensions-deps: |
echo "=========================================" echo "========================================="
echo " Installing ComfyUI Extensions Dependencies" echo " Installing ComfyUI Extensions Dependencies"