Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

kyutai
/
moshika-pytorch-bf16

Moshi
Safetensors
English
Model card Files Files and versions
xet
Community
3

Instructions to use kyutai/moshika-pytorch-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Moshi

    How to use kyutai/moshika-pytorch-bf16 with Moshi:

    # pip install moshi
    # Run the interactive web server
    python -m moshi.server --hf-repo "kyutai/moshika-pytorch-bf16"
    # Then open https://localhost:8998 in your browser
    # pip install moshi
    import torch
    from moshi.models import loaders
    
    # Load checkpoint info from HuggingFace
    checkpoint = loaders.CheckpointInfo.from_hf_repo("kyutai/moshika-pytorch-bf16")
    
    # Load the Mimi audio codec
    mimi = checkpoint.get_mimi(device="cuda")
    mimi.set_num_codebooks(8)
    
    # Encode audio (24kHz, mono)
    wav = torch.randn(1, 1, 24000 * 10)  # [batch, channels, samples]
    with torch.no_grad():
        codes = mimi.encode(wav.cuda())
        decoded = mimi.decode(codes)
  • Notebooks
  • Google Colab
  • Kaggle
moshika-pytorch-bf16
15.8 GB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 10 commits
reach-vb's picture
reach-vb
Update README.md (#1)
a49141e verified over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    5.65 kB
    Update README.md (#1) over 1 year ago
  • model.safetensors
    15.4 GB
    xet
    Rename moshika_pt_3d736a96@120.safetensors to model.safetensors over 1 year ago
  • tokenizer-e351c8d8-checkpoint125.safetensors
    385 MB
    xet
    Upload tokenizer-e351c8d8-checkpoint125.safetensors with huggingface_hub over 1 year ago
  • tokenizer_spm_32k_3.model
    553 kB
    xet
    Upload tokenizer_spm_32k_3.model with huggingface_hub over 1 year ago