Views
No views yet
aoi-ot/VibeVoice-Large.1git clone https://github.com/vibevoice-community/VibeVoice.git
2cd VibeVoice/
3pip install -e .1python demo/gradio_demo.py \
2 --model_path aoi-ot/VibeVoice-Large \
3 --checkpoint_path ABDALLALSWAITI/vibevoice-arabic-Z \
4 #--share1python demo/inference_from_file.py \
2 --model_path aoi-ot/VibeVoice-Large \
3 --txt_path your_arabic_text.txt \
4 --speaker_names Frank \
5 --checkpoint_path ABDALLALSWAITI/vibevoice-arabic-Z1from vibevoice import VibeVoiceModel
2
3# Load model with Arabic LoRA
4model = VibeVoiceModel.from_pretrained(
5 "aoi-ot/VibeVoice-Large",
6 lora_path="ABDALLALSWAITI/vibevoice-arabic-Z"
7)
8
9# Generate speech
10text = "Speaker 0: مرحبا، كيف حالك؟"
11audio = model.generate(text, speaker_names=["Frank"])1git clone https://github.com/voicepowered-ai/VibeVoice-finetuning
2cd VibeVoice-finetuning
3pip install -e .
4pip uninstall -y transformers && pip install transformers==4.51.3
5wandb login # Optional1from datasets import Dataset, Audio
2
3data = {
4 "text": [
5 "Speaker 0: مرحبا بك.",
6 "Speaker 0: كيف يمكنني مساعدتك؟"
7 ],
8 "audio": [
9 "audio1.wav",
10 "audio2.wav"
11 ]
12}
13
14dataset = Dataset.from_dict(data)
15dataset = dataset.cast_column("audio", Audio(sampling_rate=24000))
16dataset.push_to_hub("your-username/arabic-tts-dataset")1python -m vibevoice.finetune.train_vibevoice \
2 --model_name_or_path vibevoice/VibeVoice-1.5B \ #or aoi-ot/VibeVoice-Large
3 --dataset_name your-username/arabic-tts-dataset \
4 --text_column_name text \
5 --audio_column_name audio \
6 --voice_prompts_column_name audio \
7 --output_dir finetune_vibevoice_zac \
8 --per_device_train_batch_size 8 \
9 --gradient_accumulation_steps 16 \
10 --learning_rate 2.5e-5 \
11 --num_train_epochs 1 \
12 --logging_steps 10 \
13 --save_steps 100 \
14 --eval_steps 100 \
15 --report_to wandb \
16 --remove_unused_columns False \
17 --bf16 True \
18 --do_train \
19 --gradient_clipping \
20 --gradient_checkpointing False \
21 --ddpm_batch_mul 4 \
22 --diffusion_loss_weight 1.4 \
23 --train_diffusion_head True \
24 --ce_loss_weight 0.04 \
25 --voice_prompt_drop_rate 0.2 \
26 --lora_target_modules q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj \
27 --lr_scheduler_type cosine \
28 --warmup_ratio 0.03 \
29 --max_grad_norm 0.8```
30prompts.jsonl file:1{"text": "Speaker 0: مرحبا، هذا اختبار.", "audio": "audio1.wav"}
2{"text": "Speaker 0: هذا مثال آخر.", "audio": "audio2.wav"}text: Transcription with speaker labelsaudio: 24kHz audio filesvoice_prompts: (Optional) Reference voice clips1python -m src.finetune_vibevoice_lora \
2 --model_name_or_path aoi-ot/VibeVoice-Large \
3 --processor_name_or_path src/vibevoice/processor \
4 --train_jsonl prompts.jsonl \
5 --text_column_name text \
6 --audio_column_name audio \
7 --output_dir output_arabic_lora \
8 --per_device_train_batch_size 8 \
9 --gradient_accumulation_steps 16 \
10 --learning_rate 2.5e-5 \
11 --num_train_epochs 5 \
12 --logging_steps 10 \
13 --save_steps 100 \
14 --report_to wandb \
15 --remove_unused_columns False \
16 --bf16 True \
17 --do_train \
18 --gradient_clipping \
19 --gradient_checkpointing False \
20 --ddpm_batch_mul 4 \
21 --diffusion_loss_weight 1.4 \
22 --train_diffusion_head True \
23 --ce_loss_weight 0.04 \
24 --voice_prompt_drop_rate 0.2 \
25 --lora_target_modules q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj \
26 --lr_scheduler_type cosine \
27 --warmup_ratio 0.03 \
28 --max_grad_norm 0.81python demo/gradio_demo.py \
2 --model_path aoi-ot/VibeVoice-Large \
3 --checkpoint_path output_arabic_lora/lora/checkpoint-500 \
4 --share{"text": "Speaker 0: النص العربي هنا.", "audio": "/path/to/audio.wav"}{"text": "Speaker 0: النص العربي هنا.", "audio": "/path/to/audio.wav", "voice_prompts": "/path/to/reference.wav"}{"text": "Speaker 0: كيف حالك؟\nSpeaker 1: أنا بخير، شكراً.", "audio": "/path/to/conversation.wav", "voice_prompts": ["/path/to/speaker0_ref.wav", "/path/to/speaker1_ref.wav"]}| Parameter | Description | Recommended |
|---|---|---|
--model_name_or_path | Base model | aoi-ot/VibeVoice-Large |
--per_device_train_batch_size | Batch size per GPU | 8 |
--gradient_accumulation_steps | Gradient accumulation | 16 |
--learning_rate | Learning rate | 2.5e-5 |
--num_train_epochs | Training epochs | 5-10 |
--diffusion_loss_weight | Diffusion loss weight | 1.4 |
--ce_loss_weight | Cross-entropy loss | 0.04 |
--voice_prompt_drop_rate | Voice prompt dropout | 0.2 |
--lora_r | LoRA rank | 8 |
--lora_alpha | LoRA alpha | 32 |
1--per_device_train_batch_size 4 \
2--gradient_accumulation_steps 32 \
3--gradient_checkpointing True1# Replace --train_diffusion_head True with:
2--lora_wrap_diffusion_head True1@misc{vibevoice-arabic-lora,
2 author = {ABDALLALSWAITI},
3 title = {VibeVoice Arabic LoRA},
4 year = {2025},
5 publisher = {HuggingFace},
6 howpublished = {\url{https://huggingface.co/ABDALLALSWAITI/vibevoice-arabic-Z}}
7}