How to use from the
Use from the
Moshi library
# pip install moshi
# Run the interactive web server
python -m moshi.server --hf-repo "spidyun/kmoshi"
# 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("spidyun/kmoshi")

# 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)

KMoshi (init)

An assembled checkpoint that couples the Qwen3-8B temporal backbone (Korean-capable text LLM) with the PersonaPlex audio stack (Mimi codec, depth decoder with dep_q=16, and 16 audio input embeddings), toward a Korean full-duplex spoken dialogue model.

Status: before coupling training. The backbone was swapped from Helium to Qwen3-8B, so the audio stack is not yet aligned with it — audio output is expected to be noise. The text stream is already fluent (evidence that the backbone transplant is numerically correct). Background and assembly code: https://github.com/un1876/k-moshi

Usage

# pip install "git+https://github.com/un1876/k-moshi.git@main"  (not in upstream transformers)
from transformers.models.kmoshi.modeling_kmoshi import KmoshiForConditionalGeneration
model = KmoshiForConditionalGeneration.from_pretrained("spidyun/kmoshi")

Attribution / Licenses

  • Backbone weights: Qwen/Qwen3-8B — Apache-2.0
  • Audio stack (Mimi codec, depth decoder, audio input embeddings): nvidia/personaplex-7b-v1 — NVIDIA Open Model License (+ CC-BY-4.0). See LICENSE / Notice in this repository.
  • The Mimi codec is byte-identical to stock Moshi (kyutai, CC-BY-4.0).
  • depth_decoder.text_embed_tokens is re-initialized for the new tokenizer vocab (151936) and belongs to the coupling-training stage.
Downloads last month
239
Safetensors
Model size
10B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for spidyun/kmoshi

Merge model
this model