Skip to content
Hugging Face Blog·· 2023-08-09AI score22

How to optimize the Bark text-to-speech model with 🤗 Transformers

Optimizing Bark using 🤗 Transformers

AI briefing

Based on 🤗 Transformers, Optimum, and Accelerate, three optimizations can reduce the VRAM usage of the Bark text-to-speech model and speed up inference. Bark was proposed by Suno AI, has been supported since Transformers v4.31.0, consists of four models—semantic, coarse acoustics, fine acoustics, and EnCodec decoding—and offers small and large checkpoints.

Open original huggingface.co