license: apache-2.0
library_name: mlx
pipeline_tag: image-text-to-text
base_model: Guilherme34/S5-nano-uncensored
base_model_relation: quantized
language:
- pt
- en
tags: - mlx
- mlx-vlm
- mxfp4
- quantized
- vision
- multimodal
- image-text-to-text
- qwen3_5
- uncensored
- apple-silicon
S5-nano-uncensored — MLX MXFP4
MLX conversion of Guilherme34/S5-nano-uncensored with MXFP4 (4-bit microscaling float) quantization, made to run on Apple Silicon with mlx-vlm. The model keeps its vision capability (image + text input, text output).
🇧🇷 Resumo em português: versão MLX do S5-nano-uncensored (~5B parâmetros, multimodal imagem+texto), quantizada em MXFP4 para rodar localmente em Macs com Apple Silicon. Veja a seção Resumo em PT-BR no final.
Model summary
| Model | S5-nano-uncensored (MLX, MXFP4) |
| Parameters | ~5B |
| Architecture | qwen3_5 (vision-language) |
| Task | image-text-to-text |
| Quantization | MXFP4 (E2M1 values + E8M0 shared scale), 4-bit, group size 32 |
| Average bits per weight | 5.116 |
| Framework | MLX / mlx-vlm |
| License | Apache-2.0 |
| Languages | Portuguese (pt-BR), English |
The average of 5.116 bits per weight is above 4 because not every tensor is quantized to 4 bits (for example, components of the vision part and other sensitive layers stay at higher precision).
Lineage
maritaca-ai/S5-nano
└── Guilherme34/S5-nano-abliterated
└── Guilherme34/S5-nano-uncensored (fine-tuned with Unsloth + TRL)
└── this repo: MLX MXFP4 conversion
- Original base model:
maritaca-ai/S5-nano - Source of this conversion:
Guilherme34/S5-nano-uncensored(BF16 safetensors) - This repository contains no new training. It is only a format conversion + quantization of the weights above.
How it was made
Converted directly from the original BF16 safetensors (not from GGUF), in a single step:
mlx_vlm.convert \
--hf-path Guilherme34/S5-nano-uncensored \
--mlx-path ./S5-nano-uncensored-mxfp4 \
-q --q-bits 4 --q-mode mxfp4 --q-group-size 32
Quantizing from the original 16-bit weights avoids the quality loss of re-quantizing an already-quantized GGUF.
Usage
Requirements
- Mac with Apple Silicon (M1 or newer)
- Python 3.10+
- Recent
mlx-vlm(Qwen3.5-family support required)
# with uv (recommended on macOS, avoids "externally-managed-environment")
brew install uv
uv tool install -U mlx-vlm
Command line
mlx_vlm.generate \
--model necropopeost/S5-nano-mxfp4-Uncensored \
--image photo.jpg \
--prompt "Describe this image in detail." \
--max-tokens 300
Python
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config
model_path = "necropopeost/S5-nano-mxfp4-Uncensored"
model, processor = load(model_path)
config = load_config(model_path)
images = ["photo.jpg"]
prompt = "Describe this image in detail."
formatted = apply_chat_template(processor, config, prompt, num_images=len(images))
output = generate(model, processor, formatted, images, max_tokens=300, verbose=False)
print(output)
Text-only
The model also works without images:
mlx_vlm.generate --model necropopeost/S5-nano-mxfp4-Uncensored --prompt "Explique o que é um buraco negro." --max-tokens 300
Local OpenAI-compatible server
mlx_vlm.server --model necropopeost/S5-nano-mxfp4-Uncensored
Intended use
- Local, private multimodal chat and image description on Apple Silicon
- Experimentation, research and tooling with small VLMs
- Portuguese (pt-BR) and English assistants running fully on-device
Limitations
- Quantization loss: MXFP4 is aggressive for a ~5B model. Expect some degradation versus the BF16 original, especially in math, long reasoning, precise OCR and fine visual detail. If quality matters more than size, use the original BF16 weights or an 8-bit MLX quantization (
--q-mode mxfp8oraffine --q-bits 8). - Small model: like any ~5B model it can hallucinate, make factual mistakes and misread images.
- Not benchmarked here: no formal evaluation was run on this conversion. Only a basic functional check (text and image input) was done.
- Apple Silicon only: MLX weights are intended for Macs with Apple Silicon.
Responsible use / disclaimer
This model derives from a fine-tune that is described as uncensored (built on an abliterated checkpoint), meaning its refusal behavior has been reduced or removed. It can produce inaccurate, offensive or otherwise harmful content, and it will not reliably decline unsafe requests.
- You are responsible for how you use the model and its outputs.
- Do not use it to harm, harass, deceive or exploit anyone, or to break the law.
- Add your own safeguards and moderation before exposing it to other users or to any public-facing product.
- Outputs are not professional advice (medical, legal, financial or otherwise).
Credits
- Maritaca AI — original
S5-nanobase model - Guilherme34 — abliterated and uncensored fine-tunes (Unsloth + TRL)
- Apple MLX team and Prince Canuma / mlx-vlm contributors — MLX and the VLM tooling used for conversion
- This repository — MLX MXFP4 conversion only
Please also check the license and terms of the original base model and of the upstream repositories linked above.
Resumo em PT-BR
O que é: versão do S5-nano-uncensored convertida para o formato MLX e quantizada em MXFP4 (4 bits, grupo 32), para rodar localmente em Macs com Apple Silicon usando mlx-vlm. Aceita imagem + texto e responde em texto.
Como foi feita: conversão direta dos pesos originais em BF16 (sem passar por GGUF), com mlx_vlm.convert -q --q-mode mxfp4. Média de 5,116 bits por peso.
Como usar:
brew install uv
uv tool install -U mlx-vlm
mlx_vlm.generate --model necropopeost/S5-nano-mxfp4-Uncensored --image foto.jpg --prompt "Descreva a imagem" --max-tokens 300
Limitações: a quantização em 4 bits perde qualidade em um modelo de ~5B, principalmente em raciocínio, matemática e OCR. O modelo pode errar e inventar informações.
Aviso: o modelo vem de um fine-tune uncensored, ou seja, com recusas reduzidas ou removidas. Ele pode gerar conteúdo impreciso ou prejudicial. O uso e as consequências são de responsabilidade de quem o utiliza. Adicione suas próprias proteções antes de disponibilizá-lo a terceiros.