LibraxisAI/Huihui4-48B-A4B-vmlx-mxfp4
Huihui4-48B-A4B vMLX MXFP4
MLX MXFP4 (microscaling 4-bit) build of `huihui-ai/Huihui4-48B-A4B-abliterated` for Apple Silicon — Gemma 4 architecture, abliterated, 48B-parameter MoE with ~4B active per token, full multimodal (image + text).
Smallest variant — ideal for serving on 32 GB / 64 GB Macs, with the fastest cold-load time in the family.
Built end-to-end with our mlx-vlm editable fork (LibraxisAI delta on top of upstream Blaizzy/mlx-vlm) — Fix 1 (progress visibility during lazy weight materialization), Fix 3 (per-shard eval + cache release during save), parity-aligned converter for Gemma 4 multi-bank audio + dual-image processor.
TL;DR
Why this build
MXFP4 is the mainstream serving target for this model family on Apple Silicon. At ~4.4 bits per weight you get:
- The smallest disk and RAM footprint of the family (25 GB on disk, fits comfortably in 32 GB unified memory with overhead room for KV cache and image features).
- The fastest cold load (~29 s) — practical for environments where models cycle in and out of cache.
- Strong throughput — for short prompts, this build emitted the highest output character count in our matrix (60516 chars on the canonical Polish probe in 0.3 s TTFT, vs. 8342 chars for the fp16 baseline at 0.5 s TTFT).
The tradeoff vs. mxfp8 is mild quality compression — well-suited for chat and multimodal Q&A, marginally less crisp on long structured generations. For evaluation, see the `fp16` parity baseline.
Model details
Runtime compatibility
This quantized MLX build includes the Gemma 4 vision projection compatibility tensor embed_vision.embedding_projection.biases, so current MLX loaders that require the quantized projection bias can load the checkpoint cleanly. The MXFP8 variant was smoke-tested in LM Studio, and MXFP4/MXFP8/NVFP4 were patched with the same compatibility pattern.
The default generation_config.json is tuned conservatively for chat stability (temperature=0.7, top_p=0.9, top_k=40, min_p=0.05, repetition_penalty=1.18) to reduce phrase-looping in GUI runtimes such as LM Studio.
Other variants
Usage
mlx-vlm CLI
pip install mlx-vlm
python -m mlx_vlm.generate \
--model LibraxisAI/Huihui4-48B-A4B-vmlx-mxfp4 \
--image path/to/image.jpg \
--prompt "Describe what you see in detail." \
--max-tokens 1024mlx-vlm Python
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("LibraxisAI/Huihui4-48B-A4B-vmlx-mxfp4")
config = model.config
messages = [{"role": "user", "content": "Hello! Tell me about yourself."}]
prompt = apply_chat_template(processor, config, messages)
output = generate(model, processor, prompt, max_tokens=512)
print(output)`mlx-batch-server` (Responses API, streaming)
curl -X POST http://127.0.0.1:10240/v1/models/load \
-H "Content-Type: application/json" \
-d '{"model": "LibraxisAI/Huihui4-48B-A4B-vmlx-mxfp4", "task": "llm"}'
curl -N -X POST http://127.0.0.1:10240/v1/responses \
-H "Content-Type: application/json" \
-d '{
"model": "LibraxisAI/Huihui4-48B-A4B-vmlx-mxfp4",
"stream": true,
"input": [{"role": "user", "content": [{"type": "input_text", "text": "Hello!"}]}]
}'`LibraxisAI/mlx-batch-server` is our tested serving path: Apple Silicon MLX inference with batch processing, OpenAI-compatible /v1/responses, dynamic model load/unload, streaming, and VLM support.
Validation
End-to-end pipeline test 2026-04-22 (load → text simple → text canonical → vision JPEG → unload):
Channel parsing: has_reasoning=False on every probe — Huihui4 family emits content exclusively on output channel, matching OpenAI Responses API expectations cleanly.
Limitations and safety
Abliteration disclosure. This model derives from huihui-ai/Huihui4-48B-A4B-abliterated, which has had its safety alignment layers (refusal mechanisms and attention routing) removed. The underlying knowledge from pretraining is intact, but the model will not refuse queries it would normally decline. Do not deploy without an external safety layer if your context requires content moderation. The base model card's disclosures apply here.- Multimodal: tested on still images (JPEG/PNG). Video is supported by the upstream Gemma 4 processor (
Gemma4VideoProcessor, 32-frame uniform sampling) but not yet covered in our published validation matrix. - Audio: tokenizer-side audio markers are present, but no audio-input validation has been published yet.
- Like all 4-bit quantized MoE models on Apple Silicon, expect occasional cosmetic artifacts (trailing special tokens) on very long generations.
License
Apache 2.0 — inherited via huihui-ai/Huihui-gemma-4-26B-A4B-it-abliterated. See LICENSE link and the underlying Google Gemma terms.
Acknowledgements
- huihui-ai — abliteration of the Gemma-4-26B-A4B-it base, MoE expansion to 48B-A4B, original distillation.
- TeichAI —
gemma-4-26B-A4B-it-Claude-Opus-Distillco-base. - Google DeepMind — Gemma 4 architecture and pretraining.
- Apple MLX team — MLX framework, quantization primitives.
- `Blaizzy/mlx-vlm` — upstream multimodal MLX runtime; this build uses our editable LibraxisAI delta which we are upstreaming as separate PRs.
𝚅𝚒𝚋𝚎𝚌𝚛𝚊𝚏𝚝𝚎𝚍. with AI Agents by VetCoders (c)2024-2026 The LibraxisAI Team
