Run this model with HF Jobs
Run masterofaudio2077/zonos3-mini-egyptian on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/masterofaudio2077/zonos3-mini-egyptian. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/masterofaudio2077/zonos3-mini-egyptian on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use masterofaudio2077/zonos3-mini-egyptian with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use masterofaudio2077/zonos3-mini-egyptian with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-to-speech", model="masterofaudio2077/zonos3-mini-egyptian")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSeq2SeqLM model = AutoModelForSeq2SeqLM.from_pretrained("masterofaudio2077/zonos3-mini-egyptian", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ZONOS3-Mini Egyptian
An Egyptian Arabic fine-tune of ZONOS3-Mini. This release uses the latest saved checkpoint (step 3600) from the halted training run.
Also referred to as ZONOS3 Mini Egy, this text-to-speech (TTS) model generates Egyptian Arabic (Masri) speech. Listen to the base model, Egyptian fine-tune, and DPO pilot comparisons below.
DPO pilot
I ran a Direct Preference Optimization pilot on the Egyptian fine-tune using human listening preferences. Open the DPO checkpoint, results, and After DPO audio comparison. The After DPO column in every Listen table below uses this checkpoint with the same prompts, voices and seeds.
Listen
Every row uses the same plain Egyptian Arabic text, VoiceTut reference clip, random seed, decoding settings and generation budget. The After DPO column is the same prompt run through the preference-tuned checkpoint, so the only change is the model.
DPO checkpoint and preference results.
Morning with coffee (voice: Ahmed)
| Text | ZONOS3-Mini base | Egyptian fine-tune | After DPO |
|---|---|---|---|
| صباح الخير، انا لسه مش قادر افتح عيني. | |||
| اه، ريحة القهوة دي بتصحي الواحد. | |||
| اول رشفة كده والدنيا اتحسنت خالص. | |||
| استنى! هو الساعة بقت تسعة؟ | |||
| يا نهار ابيض، الاجتماع بعد نص ساعة، لازم اجري. |
Shopping with friends (voice: Mahmoud)
| Text | ZONOS3-Mini base | Egyptian fine-tune | After DPO |
|---|---|---|---|
| يلا يا جماعة، النهارده هنقلب المول كله! | |||
| دي الجاكيت اللي كنتي بتحلمي بيها، جربيها بسرعة. | |||
| ايه ده؟ سعرها تلات تلاف جنيه؟ | |||
| لا طبعا، ده انا ممكن اشتري بيه عربية. | |||
| مبسوطة اوي اننا خرجنا سوا، وحشتوني. |
Joking with friends (voice: Tareq)
| Text | ZONOS3-Mini base | Egyptian fine-tune | After DPO |
|---|---|---|---|
| يا عم انت كل مرة تقول هعمل دايت وتخلص طبق الكشري لوحدك. | |||
| اه طبعا، انت اللي هتكسب الماتش، ده انت بتنهج من السلم. | |||
| استنوا استنوا، لسه الحتة الحلوة في الحكاية جاية! | |||
| خلاص والله ضحكتوني، بطني وجعتني من الضحك. | |||
| يا جماعة ركزوا بقى، الاكل هيبرد! |
Remembering someone who passed (voice: Mariam)
| Text | ZONOS3-Mini base | Egyptian fine-tune | After DPO |
|---|---|---|---|
| الله يرحمها، كانت اطيب واحدة في العيلة كلها. | |||
| فاكرين لما كانت بتستنانا على الباب كل جمعة؟ | |||
| مكنتش متخيل ان البيت هيبقى فاضي كده من غيرها. | |||
| ادعولها كتير، هي محتاجة دعانا دلوقتي. | |||
| ربنا يصبرنا ويجمعنا بيها في الجنة. |
Results
The halted run logged 8.2% WER and 3.9% CER on 48 dev clips for this checkpoint. These ASR edit rates can exceed 100% when the output contains many insertions.
Sample settings and source revisions.
Usage
Install the Transformers revision used to generate the samples.
pip install git+https://github.com/Zyphra/transformers@e23014926ec2a1c62b2001d8733eee0a67a263e6
import soundfile as sf
import torch
from transformers import AutoModelForTextToWaveform, AutoProcessor
model_id = "masterofaudio2077/zonos3-mini-egyptian"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForTextToWaveform.from_pretrained(
model_id, torch_dtype=torch.float16,
).to("cuda").eval()
inputs = processor(text=["صباح الخير، عاملين إيه النهارده؟"], language="ar").to("cuda")
with torch.inference_mode():
rows = model.generate(**inputs, max_new_tokens=200)
processor.audio_tokenizer.to("cuda")
audio = processor.decode(rows)[0].cpu().numpy()
sf.write("sample.wav", audio, processor.feature_extractor.sampling_rate)
Training
The fine-tune used Egyptian Arabic podcast and narration data from Masri Podcast 300h (Egyptian subset), Masri 100h Enhanced and Egyptian Horror TTS Prep. The demos use separately supplied VoiceTut reference voices.
Acknowledgements
Zyphra for ZONOS3-Mini, VoiceTut-TTS for the reference voices, and VoiceTut Egyptian Tashkeel for the listening prompts.
- Downloads last month
- 97
