PyTorch
Safetensors
Moshi
moshi_conv1d_bridge
speech
audio
conv1d
depformer
temporal-transformer
causal-convolution
Instructions to use Muhasajislam34/full-moshi-conv1d-bridge with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Moshi
How to use Muhasajislam34/full-moshi-conv1d-bridge with Moshi:
# pip install moshi # Run the interactive web server python -m moshi.server --hf-repo "Muhasajislam34/full-moshi-conv1d-bridge" # 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("Muhasajislam34/full-moshi-conv1d-bridge") # 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
Full Moshi Conv1d Bridge Model
This repository contains a modified Moshi model with a trained causal Conv1d bridge inserted between the temporal Transformer output and the Depformer audio prediction path.
What is included?
This repository includes:
- Full Moshi LM weights
- Temporal Transformer / Helium backbone weights
- Depformer / depth Transformer weights
- Embedding and output head weights
- Trained
mid_conv.*Conv1d bridge weights - Mimi audio codec weights
- SentencePiece text tokenizer
- Implementation script for the Conv1d bridge modification
Architecture change
Original path:
Embeddings -> Temporal Transformer -> Depformer -> Audio logits
Modified path:
Embeddings -> Temporal Transformer -> Conv1d Bridge -> Depformer -> Audio logits
Text path remains unchanged:
Temporal Transformer -> Text head
Important loading note
The original Moshi model class does not contain mid_conv by default.
Therefore, users must first apply the Conv1d bridge implementation from:
moshi_conv1d_bridge.py
Then they can load the saved full model weights.
Base model
This model is based on:
kyutai/moshiko-pytorch-bf16
License note
The base Moshi model is from Kyutai. Please follow the license and attribution requirements of the original model.
- Downloads last month
- 4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for Muhasajislam34/full-moshi-conv1d-bridge
Base model
kyutai/moshiko-pytorch-bf16