Instructions to use Cseti/VibeVoice_7B_hun_v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VibeVoice
How to use Cseti/VibeVoice_7B_hun_v2 with VibeVoice:
import torch, soundfile as sf, librosa, numpy as np from vibevoice.processor.vibevoice_processor import VibeVoiceProcessor from vibevoice.modular.modeling_vibevoice_inference import VibeVoiceForConditionalGenerationInference # Load voice sample (should be 24kHz mono) voice, sr = sf.read("path/to/voice_sample.wav") if voice.ndim > 1: voice = voice.mean(axis=1) if sr != 24000: voice = librosa.resample(voice, sr, 24000) processor = VibeVoiceProcessor.from_pretrained("Cseti/VibeVoice_7B_hun_v2") model = VibeVoiceForConditionalGenerationInference.from_pretrained( "Cseti/VibeVoice_7B_hun_v2", torch_dtype=torch.bfloat16 ).to("cuda").eval() model.set_ddpm_inference_steps(5) inputs = processor(text=["Speaker 0: Hello!\nSpeaker 1: Hi there!"], voice_samples=[[voice]], return_tensors="pt") audio = model.generate(**inputs, cfg_scale=1.3, tokenizer=processor.tokenizer).speech_outputs[0] sf.write("output.wav", audio.cpu().numpy().squeeze(), 24000) - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -1 +1,45 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- aoi-ot/VibeVoice-Large
|
| 4 |
+
tags:
|
| 5 |
+
- text-to-speech
|
| 6 |
+
- tts
|
| 7 |
+
- lora
|
| 8 |
+
- sft
|
| 9 |
+
- full-finetune
|
| 10 |
+
- vibevice
|
| 11 |
+
language:
|
| 12 |
+
- hu
|
| 13 |
+
---
|
| 14 |
+
# VibeVoice_7B_Hun_v2
|
| 15 |
+
This is my newest finetuned VibeVoice 7B (Large) model tailored to Hungarian language.
|
| 16 |
+
I made this by training LoRA for the LLM module, did a full-finetune on the Diffusion head modules, then merged each of them to the base model.
|
| 17 |
+
|
| 18 |
+
To finetune the model I used the [following code](https://github.com/voicepowered-ai/VibeVoice-finetuning).
|
| 19 |
+
|
| 20 |
+
Thank you for [JPGallegoar](https://github.com/jpgallegoar-vpai) for that amazing VibeVoice trainer!
|
| 21 |
+
|
| 22 |
+
## Inference
|
| 23 |
+
To use the LoRA model you can use [my modified fork](https://github.com/cseti007/VibeVoice)
|
| 24 |
+
until the [following PR](https://github.com/vibevoice-community/VibeVoice/pull/6)
|
| 25 |
+
will be merged into the main branch of [VibeVoice Community's repository](https://github.com/vibevoice-community/VibeVoice).
|
| 26 |
+
|
| 27 |
+
## Examples
|
| 28 |
+
|
| 29 |
+
**Voice without LoRA**
|
| 30 |
+
<div style="display: flex; gap: 20px;">
|
| 31 |
+
<audio controls src="https://huggingface.co/Cseti/VibeVoice_7B_Diffusion-head-LoRA_Hungarian-CV17/resolve/main/assets/synth_s42_nolora-1.wav"></audio>
|
| 32 |
+
<audio controls src="https://huggingface.co/Cseti/VibeVoice_7B_Diffusion-head-LoRA_Hungarian-CV17/resolve/main/assets/synth_s98765_nolora-1.wav"></audio>
|
| 33 |
+
</div>
|
| 34 |
+
|
| 35 |
+
|
| 36 |
+
**Voice WITH LoRA**
|
| 37 |
+
<div style="display: flex; gap: 20px;">
|
| 38 |
+
<audio controls src="https://huggingface.co/Cseti/VibeVoice_7B_Diffusion-head-LoRA_Hungarian-CV17/resolve/main/assets/synth_hu-lora_srand3.wav"></audio>
|
| 39 |
+
<audio controls src="https://huggingface.co/Cseti/VibeVoice_7B_Diffusion-head-LoRA_Hungarian-CV17/resolve/main/assets/synth_s42_hu-lora-1.wav"></audio>
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
Important Notes: This model is created as part of a fan project for research purposes only and is not intended for commercial use.
|
| 43 |
+
The dataset I used might contain material, which are protected by copyright. Users utilize the model at their own risk.
|
| 44 |
+
Users are obligated to comply with copyright laws and applicable regulations.
|
| 45 |
+
The model has been developed for research purposes, and it is not my intention to infringe on any copyright.
|