Skip to content

Instantly share code, notes, and snippets.

@fancellu
Last active July 4, 2025 14:56
Show Gist options
  • Save fancellu/c81f2e65e04297c5c7939a3202f95df5 to your computer and use it in GitHub Desktop.
Save fancellu/c81f2e65e04297c5c7939a3202f95df5 to your computer and use it in GitHub Desktop.
bark-pytorch2.6-compatible

https://huggingface.co/spaces/Fancellu/bark-pytorch2.6-compatible

This solves the PyTorch 2.6 breaking change where weights_only=True became the default, causing issues with older model files that contain non-tensor objects, with monkey patch patched_load()

Updated to Python 3.11, latest Gradio, and requirements.txt

If you have a GPU, you can run from Docker Desktop directly

docker run -it -p 7860:7860 --gpus=all --platform=linux/amd64 registry.hf.space/fancellu-bark-pytorch2-6-compatible:latest python app.py

Make sure you have containerd turned on

@fancellu
Copy link
Author

fancellu commented Jul 4, 2025

fcfada8f0eeb2c38baa1698f36a6fe97adc61fb878a1ff4b8c4f309b1c0b5492

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment