Instructions to use Localsong/LocalSong with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Localsong/LocalSong with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Localsong/LocalSong", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -19,7 +19,7 @@ LocalSong is a 700M parameter audio generation model focused on melodic instrume
|
|
| 19 |
git clone https://huggingface.co/Localsong/LocalSong
|
| 20 |
cd LocalSong
|
| 21 |
git lfs pull
|
| 22 |
-
python3
|
| 23 |
source venv/bin/activate
|
| 24 |
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --extra-index-url https://download.pytorch.org/whl/cu128
|
| 25 |
pip install -r requirements.txt
|
|
|
|
| 19 |
git clone https://huggingface.co/Localsong/LocalSong
|
| 20 |
cd LocalSong
|
| 21 |
git lfs pull
|
| 22 |
+
python3 -m venv venv
|
| 23 |
source venv/bin/activate
|
| 24 |
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --extra-index-url https://download.pytorch.org/whl/cu128
|
| 25 |
pip install -r requirements.txt
|