Views
No views yet
| Original | Quantized | |
|---|---|---|
| Size | 15.59 GB | 4.14 GB |
| Precision | bf16 | INT4 (NF4) |
| Compression | 1x | 3.8x |
| Tensors quantized | — | 398/475 |
| Tensors kept fp16 | — | 77 (norms, biases, embeddings) |
1from huggingface_hub import hf_hub_download
2
3# No HF token needed — this repo is public
4weight_path = hf_hub_download("cudabenchmarktest/personaplex-7b-nf4", "model-nf4.safetensors", token=False)
5
6# Dequantize to bf16 for standard loading
7from dequant_loader import dequant_nf4
8# Or use with personaplex-setup server:
9# python -m moshi.server --moshi-weight model-nf4.safetensors --device cuda1# Load NF4 (auto-dequants to bf16 at startup, ~16GB VRAM)
2python -m moshi.server --moshi-weight model-nf4.safetensors --device cuda
3
4# With CPU Mimi (saves ~840MB)
5python -m moshi.server --moshi-weight model-nf4.safetensors --cpu-mimi --device cudapython clone-voice.py --input my_voice.wav --name MyVoice --device cuda| File | Description |
|---|---|
model-nf4.safetensors | INT4 NF4 quantized weights (4.14 GB) |
linear2bit.py | Native 2-bit module (for turbo2bit, included for reference) |
dequant-loader.py | Programmatic dequantizer |
clone-voice.py | Voice cloning with LuxTTS preprocessing |
quantize-weights.py | Reproduce this quantization |
tokenizer-*.safetensors | Mimi audio codec |
tokenizer_spm_32k_3.model | Text tokenizer |