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")# Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("suno/bark") model = AutoModelForTextToWaveform.from_pretrained("suno/bark") - Notebooks
- Google Colab
- Kaggle
AttributeError: 'BarkConfig' object has no attribute 'is_torch_support_available'
#53
by SuchiSharma - opened
Hi,
I am trying to converting bark model into ONNX. But it is giving titled error.
My code for export is:
export(
model=model,
output=onnx_path,
preprocessor=processor, # Use the correct preprocessor
config=config, # Pass the model configuration
opset=11 # ONNX Opset version
)