Run this model with HF Jobs
Run mlx-community/Qwen4-35B-A3B-4bit-text 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-4bit-text. 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-4bit-text 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-4bit-text. 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-4bit-text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/Qwen4-35B-A3B-4bit-text with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("mlx-community/Qwen4-35B-A3B-4bit-text") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use mlx-community/Qwen4-35B-A3B-4bit-text 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-4bit-text"
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-4bit-text" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use mlx-community/Qwen4-35B-A3B-4bit-text with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "mlx-community/Qwen4-35B-A3B-4bit-text"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "mlx-community/Qwen4-35B-A3B-4bit-text" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mlx-community/Qwen4-35B-A3B-4bit-text", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use mlx-community/Qwen4-35B-A3B-4bit-text 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-4bit-text"
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-4bit-text
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mlx-community/Qwen4-35B-A3B-4bit-text 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-4bit-text"
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-4bit-text" \ --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-4bit-text
This model mlx-community/Qwen4-35B-A3B-4bit-text was converted to MLX format from Qwen/Qwen4-35B-A3B using mlx-lm with ml-explore/mlx-lm#2140. Refer to the original model card for more details on the model.
This is a text-only conversion. The vision encoder and the MTP head are not included.
The bf16 weights were quantized to 4-bit affine with group size 64 (4.5 bits per weight). The router stays in bf16. Peak memory was about 32 GB in a short generation 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/2140/head
mlx_lm.generate --model mlx-community/Qwen4-35B-A3B-4bit-text --prompt "hello"
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
- -
4-bit
Model tree for mlx-community/Qwen4-35B-A3B-4bit-text
Base model
Qwen/Qwen4-35B-A3B