How to use aufklarer/PersonaPlex-7B-MLX-4bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir PersonaPlex-7B-MLX-4bit aufklarer/PersonaPlex-7B-MLX-4bit
How to use aufklarer/PersonaPlex-7B-MLX-4bit with Moshi:
# pip install moshi # Run the interactive web server python -m moshi.server --hf-repo "aufklarer/PersonaPlex-7B-MLX-4bit" # 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("aufklarer/PersonaPlex-7B-MLX-4bit") # 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)