Instructions to use gafiatulin/vibevoice-7b-coreai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- VibeVoice
How to use gafiatulin/vibevoice-7b-coreai 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("gafiatulin/vibevoice-7b-coreai") model = VibeVoiceForConditionalGenerationInference.from_pretrained( "gafiatulin/vibevoice-7b-coreai", 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
Upload folder using huggingface_hub
Browse files
.gitattributes
CHANGED
|
@@ -43,3 +43,4 @@ diffusion/fused-sampler.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
|
| 43 |
embed_tokens.f16 filter=lfs diff=lfs merge=lfs -text
|
| 44 |
lm/lm-embeds-int4.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 45 |
lm/lm-embeds.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 43 |
embed_tokens.f16 filter=lfs diff=lfs merge=lfs -text
|
| 44 |
lm/lm-embeds-int4.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 45 |
lm/lm-embeds.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
codec/acoustic-decoder-chunk.aimodel/main.mlirb filter=lfs diff=lfs merge=lfs -text
|
codec/acoustic-decoder-chunk.aimodel/main.hash
ADDED
|
Binary file (32 Bytes). View file
|
|
|
codec/acoustic-decoder-chunk.aimodel/main.mlirb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:104f44d596ddb62e15b500a4bdd865d8b47b87c0f1432ff7351a46187a3eac9b
|
| 3 |
+
size 687520986
|
codec/acoustic-decoder-chunk.aimodel/metadata.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"assetVersion" : "2.0"
|
| 3 |
+
}
|
codec/acoustic-decoder.aimodel/main.hash
CHANGED
|
Binary files a/codec/acoustic-decoder.aimodel/main.hash and b/codec/acoustic-decoder.aimodel/main.hash differ
|
|
|
codec/acoustic-decoder.aimodel/main.mlirb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:48ab4cd2e11a8d2ea8e2a6d8b80ca7a932e024f3dc037638fc109c324d009ed2
|
| 3 |
+
size 687521396
|
manifest.json
CHANGED
|
@@ -17,7 +17,8 @@
|
|
| 17 |
"default": "codec/acoustic-encoder.aimodel"
|
| 18 |
},
|
| 19 |
"acoustic_decoder": {
|
| 20 |
-
"default": "codec/acoustic-decoder.aimodel"
|
|
|
|
| 21 |
},
|
| 22 |
"semantic_encoder": {
|
| 23 |
"default": "codec/semantic-encoder.aimodel"
|
|
|
|
| 17 |
"default": "codec/acoustic-encoder.aimodel"
|
| 18 |
},
|
| 19 |
"acoustic_decoder": {
|
| 20 |
+
"default": "codec/acoustic-decoder.aimodel",
|
| 21 |
+
"chunk": "codec/acoustic-decoder-chunk.aimodel"
|
| 22 |
},
|
| 23 |
"semantic_encoder": {
|
| 24 |
"default": "codec/semantic-encoder.aimodel"
|