Instructions to use Shadow0482/personaplex-7b-v1-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Moshi
How to use Shadow0482/personaplex-7b-v1-q4 with Moshi:
# pip install moshi # Run the interactive web server python -m moshi.server --hf-repo "Shadow0482/personaplex-7b-v1-q4" # 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("Shadow0482/personaplex-7b-v1-q4") # 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
PersonaPlex-7B-v1 β Q4
Weight-only int4 (group size 64) quantization of nvidia/personaplex-7b-v1
(a Moshi-architecture full-duplex speech-to-speech model). The original LM weights are BF16.
This repo contains the complete set of files (quantized LM + Mimi codec, tokenizer, voice
prompts and web UI copied unchanged from the base repo).
| Original LM | BF16, ~16.74 GB |
| Quantized LM | model-q4.safetensors, ~5.17 GB |
| Quantized tensors | 348 linear weight matrices |
| Kept in FP16 | embeddings, norms, output heads, small tensors (127 tensors) |
| Mean relative error (quantized tensors) | 1.23e-02 |
| Max relative error | 2.06e-02 |
| FP16 overflow tensors in source | 0 |
Files
bias.mdconfig.jsondist.tgzexplainability.mdfiguresmodel-q4.safetensorspersonaplex_quant.pyprivacy.mdquant_config.jsonsafety.mdtokenizer-e351c8d8-checkpoint125.safetensorstokenizer_spm_32k_3.modelvoices.tgzREADME.md
Format
- Quantized weights keep their original key; a matching
<key>.qscale(FP16) holds the scales. - Q8: int8, symmetric, one scale per output row.
- Q4: unsigned nibbles (value + 8), two per byte (low nibble = even column), symmetric, one scale per group of 64 input columns.
- All remaining tensors are FP16. File metadata contains
bitsandgroup_size.
Usage
Expand the quantized weights back to an FP16 checkpoint (keeps the quantization error, but works with the stock PersonaPlex code):
pip install torch safetensors
git clone https://github.com/NVIDIA/personaplex && pip install personaplex/moshi/.
python personaplex_quant.py model-q4.safetensors model_fp16.safetensors
python -m moshi.server --moshi-weight model_fp16.safetensors --hf-repo nvidia/personaplex-7b-v1
Note: these files reduce download and storage size. Keeping the weights in 8/4-bit in GPU
memory needs a runtime that swaps nn.Linear for a quantized linear layer.
Caveats
- Not evaluated on speech benchmarks; listen to outputs before relying on it.
- Q4 is expected to lose noticeably more quality than Q8.
- Derived from NVIDIA PersonaPlex; the NVIDIA Open Model License applies.
- Downloads last month
- 22