Skip to content

Instantly share code, notes, and snippets.

@fancellu
Last active July 4, 2025 14:56
Show Gist options
  • Select an option

  • Save fancellu/c81f2e65e04297c5c7939a3202f95df5 to your computer and use it in GitHub Desktop.

Select an option

Save fancellu/c81f2e65e04297c5c7939a3202f95df5 to your computer and use it in GitHub Desktop.

Revisions

  1. fancellu revised this gist Jul 4, 2025. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -2,4 +2,10 @@ 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
    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
  2. fancellu created this gist Jul 4, 2025.
    5 changes: 5 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    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