Run this model with HF Jobs
Run suno/bark on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/suno/bark. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/suno/bark on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use suno/bark with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use suno/bark with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="suno/bark")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("suno/bark") model = AutoModelForTextToWaveform.from_pretrained("suno/bark", device_map="auto") - Notebooks
- Google Colab
- Kaggle
update README with examples
Browse files37 unmodified lines38394041424327 unmodified lines7172737475767737 unmodified linesThe following is additional information about the models released here.## 🤗 Transformers Usage27 unmodified lines```pythonfrom IPython.display import Audiosampling_rate = model.config.sample_rateAudio(speech_values.cpu().numpy().squeeze(), rate=sampling_rate)```37 unmodified lines38394041424344454647484950515253545556575859606162636465666727 unmodified lines959697989910010137 unmodified linesThe following is additional information about the models released here.## ExampleTry out Bark yourself!* Bark Colab:<a target="_blank" href="https://colab.research.google.com/drive/1eJfA2XUa-mXwdMy7DoYKVYHI1iTd9Vkt?usp=sharing"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>* Hugging Face Colab:<a target="_blank" href="https://colab.research.google.com/drive/1dWWkZzvu7L9Bunq9zvD-W02RFUXoW-Pd?usp=sharing"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>* Hugging Face Demo:<a target="_blank" href="https://huggingface.co/spaces/suno/bark"><img src="https://huggingface.co/datasets/huggingface/badges/raw/main/open-in-hf-spaces-sm.svg" alt="Open in HuggingFace"/></a>## 🤗 Transformers Usage27 unmodified lines```pythonfrom IPython.display import Audiosampling_rate = model.generation_config.sample_rateAudio(speech_values.cpu().numpy().squeeze(), rate=sampling_rate)```
README.md+25-1