Instructions to use mlx-community/Qwen3-VL-8B-Instruct-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Qwen3-VL-8B-Instruct-4bit with MLX:
# 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("mlx-community/Qwen3-VL-8B-Instruct-4bit") config = load_config("mlx-community/Qwen3-VL-8B-Instruct-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) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use mlx-community/Qwen3-VL-8B-Instruct-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Qwen3-VL-8B-Instruct-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "mlx-community/Qwen3-VL-8B-Instruct-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use mlx-community/Qwen3-VL-8B-Instruct-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Qwen3-VL-8B-Instruct-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default mlx-community/Qwen3-VL-8B-Instruct-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mlx-community/Qwen3-VL-8B-Instruct-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "mlx-community/Qwen3-VL-8B-Instruct-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "mlx-community/Qwen3-VL-8B-Instruct-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
model.safetensors.index.json describes a 4-shard, 17.5 GB checkpoint that is not in this repo
Hi, and thanks for the quantized build.
model.safetensors.index.json in this repository does not match the weight
files that ship with it.
What the index declares:
- 4 shard files:
model-00001-of-00004.safetensors…model-00004-of-00004.safetensors - 750 tensor entries in
weight_map, all prefixedmodel.language_model.… metadata.total_size: 17534247392 bytes (~17.5 GB)
What the repository actually contains:
- 2 shard files:
model-00001-of-00002.safetensors(5353972197 bytes) andmodel-00002-of-00002.safetensors(406693049 bytes), 5760665246 bytes total - 1258 tensors, prefixed
language_model.…, with.scalesand.biases
entries for each quantized layer
The intersection between the tensor names in the index and the tensor names in
the shards is empty, and none of the four files the index names exists in the
repository. The declared total size is about three times the size of the files
that are actually published.
The same mismatch is present in mlx-community/Qwen3-VL-8B-Instruct-8bit.
Neither repository has been modified since 2025-10-14.
Why this matters in practice: loaders that glob model*.safetensors (mlx-lm
among them) ignore the index and work fine. Loaders that read the index to
verify the checkpoint before loading conclude that the weights are missing. On
our side that produced has its config cached but its model weights are missing, and with HF_HUB_OFFLINE=1 set it turned into a hard refusal to
start, because the "missing" shards could not be fetched. Downloading the
repository again does not help — the published index is the same.
Regenerating model.safetensors.index.json from the shards that are actually
published would fix this. Happy to provide any further detail you need.
Thanks!
Is model performance maintained when using a quantized build?
In my experience, model's performance will drop a bit.