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
      • Hardware
      • 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 / 4bit
6.63 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
Parker
Upload 5 files
2daa24e verified 12 months ago
  • QUANTIZATION_README.md
    2.92 kB
    Upload 5 files 12 months ago
  • README.md
    969 Bytes
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • config.json
    3.31 kB
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • generation_config.json
    69 Bytes
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • load_quantized_4bit.py
    1.83 kB
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • minimal_memory_output.wav
    314 kB
    xet
    Upload minimal_memory_output.wav 12 months ago
  • model-00001-of-00002.safetensors
    4.95 GB
    xet
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • model-00002-of-00002.safetensors
    1.68 GB
    xet
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • model.safetensors.index.json
    341 kB
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • preprocessor_config.json
    294 Bytes
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • quantization_config.json
    560 Bytes
    Add quantized VibeVoice 7B models (4-bit and 8-bit) 12 months ago
  • quantize_and_save_vibevoice.py
    11.1 kB
    Upload 5 files 12 months ago
  • test_accurate_vram.py
    6.91 kB
    Upload 5 files 12 months ago
  • use_quantized_model.py
    2.15 kB
    Upload 5 files 12 months ago
  • vibevoice_7gb_target.py
    6.31 kB
    Upload 5 files 12 months ago