Run this model with HF Jobs
Run mlx-community/Qwen4-35B-A3B-3bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/mlx-community/Qwen4-35B-A3B-3bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/mlx-community/Qwen4-35B-A3B-3bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/mlx-community/Qwen4-35B-A3B-3bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use mlx-community/Qwen4-35B-A3B-3bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Qwen4-35B-A3B-3bit 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/Qwen4-35B-A3B-3bit") config = load_config("mlx-community/Qwen4-35B-A3B-3bit") # 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/Qwen4-35B-A3B-3bit 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/Qwen4-35B-A3B-3bit"
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/Qwen4-35B-A3B-3bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use mlx-community/Qwen4-35B-A3B-3bit 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/Qwen4-35B-A3B-3bit"
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/Qwen4-35B-A3B-3bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mlx-community/Qwen4-35B-A3B-3bit 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/Qwen4-35B-A3B-3bit"
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/Qwen4-35B-A3B-3bit" \ --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"
mlx-community/Qwen4-35B-A3B-3bit
This model mlx-community/Qwen4-35B-A3B-3bit was converted to MLX format from Qwen/Qwen4-35B-A3B using mlx-lm with ml-explore/mlx-lm#2141. Refer to the original model card for more details on the model.
This conversion takes text and image input. The MTP head is not included, and video input is not supported. For text only, use mlx-community/Qwen4-35B-A3B-3bit-text.
The bf16 weights were quantized to 3-bit affine with group size 64 (3.6 bits per weight). The router and the vision encoder stay in bf16. Peak memory was about 26 GB in a short image test on an M3 Ultra.
The tokenizer is the standard Hugging Face tokenizer with the Jinja chat template from tokenizer-compat in the original repository, so it does not need trust_remote_code.
Tested with the branch of that pull request and MLX 0.32.5.
Use with mlx
pip install -U git+https://github.com/ml-explore/mlx-lm.git@refs/pull/2141/head
mlx_lm.generate --model mlx-community/Qwen4-35B-A3B-3bit --prompt "hello"
For image input, put <|vision_start|><|image_pad|><|vision_end|> in the prompt for each image:
mlx_lm.generate --model mlx-community/Qwen4-35B-A3B-3bit --image photo.jpg \
--prompt "<|vision_start|><|image_pad|><|vision_end|>Describe this image."
mlx_lm.server takes images as image_url parts of the chat messages.
Reasoning effort defaults to high. Pass --chat-template-config '{"reasoning_effort": "low"}' to change it, or --chat-template-config '{"enable_thinking": false}' to turn reasoning off.
- Downloads last month
- -
3-bit
Model tree for mlx-community/Qwen4-35B-A3B-3bit
Base model
Qwen/Qwen4-35B-A3B