Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

DevParker
/
VibeVoice7b-low-vram

Text-to-Speech
VibeVoice
Safetensors
English
speech-synthesis
quantized
low-vram
Model card Files Files and versions
xet
Community
6

Instructions to use DevParker/VibeVoice7b-low-vram with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • VibeVoice

    How to use DevParker/VibeVoice7b-low-vram 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("DevParker/VibeVoice7b-low-vram")
    model = VibeVoiceForConditionalGenerationInference.from_pretrained(
        "DevParker/VibeVoice7b-low-vram", 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
VibeVoice7b-low-vram
6.63 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 12 commits
DevParker's picture
DevParker
Update README.md
5842b77 verified 8 months ago
  • 4bit
    Upload 5 files 9 months ago
  • .gitattributes
    218 Bytes
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 9 months ago
  • README.md
    1.06 kB
    Update README.md 8 months ago
  • finetune_elise_7b_optimal.sh
    2.47 kB
    Upload finetune_elise_7b_optimal.sh 9 months ago