Instructions to use michsethowusu/VieNeu-TTS-Twi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use michsethowusu/VieNeu-TTS-Twi with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="michsethowusu/VieNeu-TTS-Twi", filename="VieNeu-TTS-Twi-Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use michsethowusu/VieNeu-TTS-Twi with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M # Run inference directly in the terminal: llama-cli -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M # Run inference directly in the terminal: llama-cli -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf michsethowusu/VieNeu-TTS-Twi:Q4_K_M
Use Docker
docker model run hf.co/michsethowusu/VieNeu-TTS-Twi:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use michsethowusu/VieNeu-TTS-Twi with Ollama:
ollama run hf.co/michsethowusu/VieNeu-TTS-Twi:Q4_K_M
- Unsloth Studio
How to use michsethowusu/VieNeu-TTS-Twi with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for michsethowusu/VieNeu-TTS-Twi to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for michsethowusu/VieNeu-TTS-Twi to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for michsethowusu/VieNeu-TTS-Twi to start chatting
- Docker Model Runner
How to use michsethowusu/VieNeu-TTS-Twi with Docker Model Runner:
docker model run hf.co/michsethowusu/VieNeu-TTS-Twi:Q4_K_M
- Lemonade
How to use michsethowusu/VieNeu-TTS-Twi with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull michsethowusu/VieNeu-TTS-Twi:Q4_K_M
Run and chat with the model
lemonade run user.VieNeu-TTS-Twi-Q4_K_M
List all available models
lemonade list
VieNeu-TTS — Asante Twi
A fine-tuned Twi text-to-speech model based on VieNeu-TTS-0.3B, trained on the Asante Twi Bible Speech dataset using LoRA.
Demo
Try it live on the HF Space.
Model files
| File | Description |
|---|---|
model.safetensors |
Merged model weights (PyTorch, GPU/CPU) |
VieNeu-TTS-Twi-Q4_K_M.gguf |
Quantized GGUF for fast CPU inference |
voices.json |
Pre-encoded Twi voice presets |
Usage
With the VieNeu SDK
Install from the fork that includes Twi language support:
pip install git+https://github.com/michsethowusu/VieNeu-TTS.git
pip install phonemizer
# system dep for phonemizer
sudo apt-get install espeak-ng
GPU inference:
from vieneu import Vieneu
import json, soundfile as sf
from huggingface_hub import hf_hub_download
# Load voice presets
voices_path = hf_hub_download("michsethowusu/VieNeu-TTS-Twi", "voices.json")
with open(voices_path) as f:
voices = json.load(f)
tts = Vieneu(
mode="standard",
backbone_repo="michsethowusu/VieNeu-TTS-Twi",
backbone_device="cuda",
codec_repo="neuphonic/neucodec-onnx-decoder-int8",
lang="twi",
emotion=None,
)
audio = tts.infer(
"Nanso Petro san hyɛɛ Kristofo nkuran sɛ monni nnipa nyinaa ni.",
voice=voices["presets"]["twi_voice_0"],
)
sf.write("output.wav", audio, 24000)
CPU inference (GGUF — fast):
pip install llama-cpp-python
tts = Vieneu(
mode="standard",
backbone_repo="michsethowusu/VieNeu-TTS-Twi",
backbone_device="cpu",
gguf_filename="VieNeu-TTS-Twi-Q4_K_M.gguf",
codec_repo="neuphonic/neucodec-onnx-decoder-int8",
lang="twi",
emotion=None,
)
Production API server (GPU):
pip install vieneu[gpu]
vieneu-serve \
--model michsethowusu/VieNeu-TTS-Twi \
--model-name michsethowusu/VieNeu-TTS-Twi \
--port 23333
# Then connect from your app:
tts = Vieneu(
mode="remote",
api_base="http://your-server:23333/v1",
model_name="michsethowusu/VieNeu-TTS-Twi",
lang="twi",
emotion=None,
)
Voice presets
The model ships with 5 voice presets (twi_voice_0 through twi_voice_4), all sampled from the training speaker. Load them from voices.json as shown above.
Training details
| Setting | Value |
|---|---|
| Base model | pnnbao-ump/VieNeu-TTS-0.3B |
| Method | LoRA (r=16, α=32) |
| Dataset | ghananlpcommunity/asante-twi-bible-speech-text |
| Samples | 7,000 |
| Steps | 5,000 |
| Hardware | A100 40GB |
| Phonemizer | espeak-ng lfn backend |
| Format | In-context voice cloning |
Limitations
- Optimised for Asante Twi (Akan). Other dialects may work but are untested.
- Voice cloning works best with the included
voices.jsonpresets (same speaker as training data). External reference audio may produce lower quality. - Not intended for commercial use (CC BY-NC 4.0).
License
CC BY-NC 4.0 — non-commercial use only.
Mention michsethowusu / GhanaNLP when using.
- Downloads last month
- 259
Model tree for michsethowusu/VieNeu-TTS-Twi
Base model
pnnbao-ump/VieNeu-TTS-0.3B