How to use hf-internal-testing/tiny-random-BarkModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-audio", model="hf-internal-testing/tiny-random-BarkModel")
# Load model directly from transformers import AutoProcessor, AutoModelForTextToWaveform processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-BarkModel") model = AutoModelForTextToWaveform.from_pretrained("hf-internal-testing/tiny-random-BarkModel")
Upload tiny models for BarkModel
Β· Sign up or log in to comment