Image-Text-to-Text
MLX
Safetensors
English
qwen3_5
apple-silicon
mac
quantized
4-bit precision
arex-2
qwen3.8
vision
agent
reasoning
tool-use
deep-research
long-context
conversational
Instructions to use mlx-community/AREX-2-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/AREX-2-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/AREX-2-4bit") config = load_config("mlx-community/AREX-2-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/AREX-2-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/AREX-2-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/AREX-2-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use mlx-community/AREX-2-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/AREX-2-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/AREX-2-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use mlx-community/AREX-2-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/AREX-2-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/AREX-2-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 card: final test results
Browse files
README.md
CHANGED
|
@@ -112,7 +112,8 @@ use `http://localhost:1234/v1` with this model, including tool calls and images.
|
|
| 112 |
| mlx-vlm 0.7.4 (command line and Python) | Tested: text, images and tool calls |
|
| 113 |
| mlx-lm 0.32 | Tested: text only |
|
| 114 |
| mlx-dspark 0.20.1 | Tested: text, with a speed helper |
|
| 115 |
-
|
|
|
|
|
| 116 |
| Jan, Msty and other apps with an MLX engine | Not tested. They load MLX models, so they may work. Image input depends on the app. |
|
| 117 |
| Ollama, llama.cpp and other GGUF apps | These need a different format. Use a GGUF build such as [bartowski/BAAI_AREX-2-GGUF](https://huggingface.co/bartowski/BAAI_AREX-2-GGUF). |
|
| 118 |
|
|
@@ -144,6 +145,7 @@ The numbers are below. The scripts and raw results are in the [`tests`](https://
|
|
| 144 |
- **Same conditions for both:** 8-bit MLX, the same prompts, settings and 4,000-token limit, two runs of each test.
|
| 145 |
- **The gap is mostly length.** Every failed attempt by plain Qwen3.8-27B ran into the 4,000-token limit (31 of 31), against 9 of 13 for AREX-2. With a higher limit it might solve as many, more slowly.
|
| 146 |
- **Both ran with thinking on,** the default for both models.
|
|
|
|
| 147 |
- **This is a small test on one Mac, not a benchmark.** It does not measure the long multi-round tasks AREX-2 was trained for.
|
| 148 |
|
| 149 |
</details>
|
|
|
|
| 112 |
| mlx-vlm 0.7.4 (command line and Python) | Tested: text, images and tool calls |
|
| 113 |
| mlx-lm 0.32 | Tested: text only |
|
| 114 |
| mlx-dspark 0.20.1 | Tested: text, with a speed helper |
|
| 115 |
+
| MiniMax Code 0.5.9 (agent harness) | Tested on the 8-bit: it fixed three small failing projects using its own file and shell tools, in 6 of 6 trials. Served through mlx-dspark with thinking off. |
|
| 116 |
+
| Other agent harnesses and coding tools | Should work. Tool calling works, and LM Studio's local server returns standard tool calls, which is what most harnesses use. Not tested. |
|
| 117 |
| Jan, Msty and other apps with an MLX engine | Not tested. They load MLX models, so they may work. Image input depends on the app. |
|
| 118 |
| Ollama, llama.cpp and other GGUF apps | These need a different format. Use a GGUF build such as [bartowski/BAAI_AREX-2-GGUF](https://huggingface.co/bartowski/BAAI_AREX-2-GGUF). |
|
| 119 |
|
|
|
|
| 145 |
- **Same conditions for both:** 8-bit MLX, the same prompts, settings and 4,000-token limit, two runs of each test.
|
| 146 |
- **The gap is mostly length.** Every failed attempt by plain Qwen3.8-27B ran into the 4,000-token limit (31 of 31), against 9 of 13 for AREX-2. With a higher limit it might solve as many, more slowly.
|
| 147 |
- **Both ran with thinking on,** the default for both models.
|
| 148 |
+
- **With thinking off, in a real harness, they were level.** In MiniMax Code both passed 6 of 6 fix-the-tests trials, in 17 and 18 minutes. The efficiency gap above comes from thinking.
|
| 149 |
- **This is a small test on one Mac, not a benchmark.** It does not measure the long multi-round tasks AREX-2 was trained for.
|
| 150 |
|
| 151 |
</details>
|