Instructions to use maya-research/Veena with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use maya-research/Veena with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="maya-research/Veena")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("maya-research/Veena") model = AutoModelForCausalLM.from_pretrained("maya-research/Veena", device_map="auto") - Notebooks
- Google Colab
- Kaggle
How to run it locally in vscode?
Hello, I want to use this TTS model, running locally via VScode. GGUF file is also available in hugging face.
How to use it guide me step by step, I am new in coding.
1.Install Python & CUDA Environment:
Prerequisites
Download and install Python 3.10 or 3.11 (ensure "Add Python to PATH" is checked during installation).
Open VS code and then open a terminal
run below commands
mkdir veena_tts
cd veena_tts
python -m venv venv
venv\Scripts\activate
To use Veena, you need to install the transformers, torch, torchaudio, snac, and bitsandbytes libraries.
pip install transformers torch torchaudio
pip install snac bitsandbytes # For audio decoding and quantization
After completion create a file app.py at same path copy the python code given at - https://huggingface.co/Mungert/Veena-GGUF#installation
then run
python app.py