Instructions to use zeeburgers/DarijaTTS-v0.1-500M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use zeeburgers/DarijaTTS-v0.1-500M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="zeeburgers/DarijaTTS-v0.1-500M")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("zeeburgers/DarijaTTS-v0.1-500M") model = AutoModelForCausalLM.from_pretrained("zeeburgers/DarijaTTS-v0.1-500M") - llama-cpp-python
How to use zeeburgers/DarijaTTS-v0.1-500M with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="zeeburgers/DarijaTTS-v0.1-500M", filename="unsloth.Q8_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use zeeburgers/DarijaTTS-v0.1-500M with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf zeeburgers/DarijaTTS-v0.1-500M:Q8_0 # Run inference directly in the terminal: llama-cli -hf zeeburgers/DarijaTTS-v0.1-500M:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf zeeburgers/DarijaTTS-v0.1-500M:Q8_0 # Run inference directly in the terminal: llama-cli -hf zeeburgers/DarijaTTS-v0.1-500M:Q8_0
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 zeeburgers/DarijaTTS-v0.1-500M:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf zeeburgers/DarijaTTS-v0.1-500M:Q8_0
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 zeeburgers/DarijaTTS-v0.1-500M:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf zeeburgers/DarijaTTS-v0.1-500M:Q8_0
Use Docker
docker model run hf.co/zeeburgers/DarijaTTS-v0.1-500M:Q8_0
- LM Studio
- Jan
- Ollama
How to use zeeburgers/DarijaTTS-v0.1-500M with Ollama:
ollama run hf.co/zeeburgers/DarijaTTS-v0.1-500M:Q8_0
- Unsloth Studio new
How to use zeeburgers/DarijaTTS-v0.1-500M 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 zeeburgers/DarijaTTS-v0.1-500M 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 zeeburgers/DarijaTTS-v0.1-500M to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for zeeburgers/DarijaTTS-v0.1-500M to start chatting
- Docker Model Runner
How to use zeeburgers/DarijaTTS-v0.1-500M with Docker Model Runner:
docker model run hf.co/zeeburgers/DarijaTTS-v0.1-500M:Q8_0
- Lemonade
How to use zeeburgers/DarijaTTS-v0.1-500M with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull zeeburgers/DarijaTTS-v0.1-500M:Q8_0
Run and chat with the model
lemonade run user.DarijaTTS-v0.1-500M-Q8_0
List all available models
lemonade list
Moroccan Darija TTS
This is a text-to-speech (TTS) model for Moroccan Darija, fine-tuned from OuteAI/OuteTTS-0.2-500M on the KandirResearch/DarijaTTS-clean dataset.
Model Details
- Base Model: OuteAI/OuteTTS-0.2-500M
- Dataset: KandirResearch/DarijaTTS-clean
- Training Method: Fine-tuned using Unsloth's
SFTTrainer - Dataset Preparation: Preprocessed following OuteTTS training guide
- Demo: Try it here
Usage
Compatibility Note Recent updates to
outettshave introduced breaking changes. If you encounter the error:AttributeError: module 'outetts' has no attribute 'GGUFModelConfig_v2'Solution: Please install a compatible version (0.3.3 or 0.3.2) to resolve this:
pip install outetts==0.3.3
You can run the model using outetts as follows:
Install outetts and llama-cpp-python:
pip install outetts==0.3.3 llama-cpp-python huggingface_hub
import outetts
from outetts.models.config import GenerationConfig
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(
repo_id="KandirResearch/DarijaTTS-v0.1-500M",
filename="unsloth.Q8_0.gguf",
)
model_config = outetts.GGUFModelConfig_v2(
model_path=model_path,
tokenizer_path="KandirResearch/DarijaTTS-v0.1-500M",
)
interface = outetts.InterfaceGGUF(model_version="0.3", cfg=model_config)
def tts(text, temperature=0.3, repetition_penalty=1.1):
gen_cfg = GenerationConfig(
text=text,
temperature=temperature,
repetition_penalty=repetition_penalty,
max_length=4096,
)
output = interface.generate(config=gen_cfg)
output_path = "output.wav"
output.save(output_path)
return output_path
# Example usage
audio_path = tts("السلام كيداير لاباس عليك؟")
print(f"Generated audio saved at: {audio_path}")
Training
The model was fine-tuned using Unsloth's SFTTrainer. The dataset was preprocessed following the OuteTTS training guide. LoRA-based fine-tuning was applied to improve efficiency.
Support Me
For any issues or improvements, feel free to open a discussion or PR!
- Downloads last month
- 41
Model tree for zeeburgers/DarijaTTS-v0.1-500M
Base model
OuteAI/OuteTTS-0.2-500M