How to use from the
Use from the
MLX library
# Make sure mlx-vlm is installed
# pip install --upgrade mlx-vlm

from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
from mlx_vlm.utils import load_config

# Load the model
model, processor = load("wonone/Nex-N2-mini-MLX-VLM-4bit")
config = load_config("wonone/Nex-N2-mini-MLX-VLM-4bit")

# Prepare input
image = ["http://images.cocodataset.org/val2017/000000039769.jpg"]
prompt = "Describe this image."

# Apply chat template
formatted_prompt = apply_chat_template(
    processor, config, prompt, num_images=1
)

# Generate output
output = generate(model, processor, formatted_prompt, image)
print(output)

Nex-N2-mini-MLX-VLM-4bit

Native MLX-VLM 4-bit quantized version of nex-agi/Nex-N2-mini.

Summary

  • Base model: nex-agi/Nex-N2-mini
  • Format: native MLX / MLX-VLM
  • Quantization: 4-bit MLX-VLM quantization
  • Vision: supported
  • MTP: not included
  • Target runtime: MLX-VLM / oMLX / Apple Silicon

This version is intended as the general stable release. It is compatible with direct mlx-vlm.generate loading.

Quick test

python3 -m mlx_vlm.generate \
  --model joowon-jang/Nex-N2-mini-MLX-VLM-4bit \
  --image /path/to/image.jpg \
  --prompt "Describe this image in one sentence." \
  --max-tokens 128 \
  --temp 0.0

Notes

For oMLX Native MTP speculative decoding, use:

joowon-jang/Nex-N2-mini-MLX-VLM-4bit-MTP

License

Apache-2.0, following the base model license.

Downloads last month
8
Safetensors
Model size
35B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for wonone/Nex-N2-mini-MLX-VLM-4bit

Quantized
(50)
this model

Collection including wonone/Nex-N2-mini-MLX-VLM-4bit