File size: 609 Bytes
e5341b9
8604551
159859d
8604551
 
 
 
 
 
 
 
 
159859d
8604551
 
 
 
 
4faae03
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -e

echo "▶ reinstall CPU‑only PyTorch stack"
pip uninstall -y torch torchaudio torchvision xformers || true

pip install --no-cache-dir \
  torch==2.1.0+cpu torchaudio==2.1.0+cpu \
  --extra-index-url https://download.pytorch.org/whl/cpu

echo "▶ install audiocraft without xformers"
pip install --no-cache-dir --use-pep517 --no-deps \
  git+https://github.com/facebookresearch/audiocraft@main

echo "▶ install audiocraft runtime deps"
pip install --no-cache-dir encodec spacy huggingface_hub soundfile tqdm

echo "✓ postInstall complete"
pip install --no-cache-dir librosa