Run this model with HF Jobs
Run Xylolabs/AREX-2-MLX-8bit 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/Xylolabs/AREX-2-MLX-8bit. 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/Xylolabs/AREX-2-MLX-8bit 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/Xylolabs/AREX-2-MLX-8bit. 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 Xylolabs/AREX-2-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Xylolabs/AREX-2-MLX-8bit 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("Xylolabs/AREX-2-MLX-8bit") 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 Xylolabs/AREX-2-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Xylolabs/AREX-2-MLX-8bit"
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": "Xylolabs/AREX-2-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use Xylolabs/AREX-2-MLX-8bit with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "Xylolabs/AREX-2-MLX-8bit"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "Xylolabs/AREX-2-MLX-8bit" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8080/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Xylolabs/AREX-2-MLX-8bit", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use Xylolabs/AREX-2-MLX-8bit 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 "Xylolabs/AREX-2-MLX-8bit"
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 Xylolabs/AREX-2-MLX-8bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Xylolabs/AREX-2-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Xylolabs/AREX-2-MLX-8bit"
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 "Xylolabs/AREX-2-MLX-8bit" \ --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"
Update model files
Browse filesFiles changed (3)
- BENCHMARKS.md+1-1
- MANIFEST+2-2
- README.md+1
6 unmodified lines789106 unmodified lines| Provider | Quant | File | Size (GB) | WikiText-2 KL | WikiText-2 top-1 (%) | Held-out KL | Held-out top-1 (%) | Answer check || --- | --- | --- | --- | --- | --- | --- | --- | --- || Xylolabs | **Xylolabs MLX 8-bit** | `model-00001-of-00006.safetensors`, `model-00002-of-00006.safetensors`, `model-00003-of-00006.safetensors`, `model-00004-of-00006.safetensors`, `model-00005-of-00006.safetensors`, `model-00006-of-00006.safetensors` | 28.58 | 0.0016163609332457782 | 98.42156862745098 | 0.0016631237493679198 | 98.80392156862744 | || Xylolabs | `MLX 4-bit (OBS)` | | 15.49 | 0.023979231447044634 | 93.30882352941177 | 0.04757144044235062 | 92.84313725490196 | |6 unmodified lines789106 unmodified lines| Provider | Quant | File | Size (GB) | WikiText-2 KL | WikiText-2 top-1 (%) | Held-out KL | Held-out top-1 (%) | Answer check || --- | --- | --- | --- | --- | --- | --- | --- | --- || Xylolabs | **Xylolabs MLX 8-bit** | `model-00001-of-00006.safetensors`, `model-00002-of-00006.safetensors`, `model-00003-of-00006.safetensors`, `model-00004-of-00006.safetensors`, `model-00005-of-00006.safetensors`, `model-00006-of-00006.safetensors` | 28.58 | 0.0016163609332457782 | 98.42156862745098 | 0.0016631237493679198 | 98.80392156862744 | || Xylolabs | **Xylolabs MLX 4-bit (OBS)** | [Xylolabs/AREX-2-MLX-4bit](https://huggingface.co/Xylolabs/AREX-2-MLX-4bit) | 15.49 | 0.023979231447044634 | 93.30882352941177 | 0.04757144044235062 | 92.84313725490196 | |
1234560f50e5b3982335839c1de51048defcbda650a979335f32265a272cd47d448c9f BENCHMARKS.mddf0ea4fb478a5a4e47b04ed0d3f58884e5b9bb55439dc976446871712d4d4dcc LICENSE165a6ea0aa11f61f79494bcd1db2aa8700dd97e3ecc436f995a8a42fa8cd6f63 README.md572c4aa7a42a0a320c482aadc8d7e37cf813ba66d22c90fcb54e43a06d321a9e accuracy-by-size.csvb27dee7d6cf3961c5beb59e4bc24b744cc042055ed080947eb3dc36c0fc9417f accuracy-mean-kl-dark.png97bf5aa38a52a9c0ea8db2ef1924b8ebed3bfd8a3f72e8708ee98fb2f41d0c60 accuracy-top1-dark.png123456a74a0e4eddc10614e4b3b0672924a96a41fd9c8b1e3473dc462292a31534bdfc BENCHMARKS.mddf0ea4fb478a5a4e47b04ed0d3f58884e5b9bb55439dc976446871712d4d4dcc LICENSE638a6aff3b48f46b5b9d7018a86df76137bf187513c949bf0c2fae0f61aa92fe README.md572c4aa7a42a0a320c482aadc8d7e37cf813ba66d22c90fcb54e43a06d321a9e accuracy-by-size.csvb27dee7d6cf3961c5beb59e4bc24b744cc042055ed080947eb3dc36c0fc9417f accuracy-mean-kl-dark.png97bf5aa38a52a9c0ea8db2ef1924b8ebed3bfd8a3f72e8708ee98fb2f41d0c60 accuracy-top1-dark.png
33 unmodified lines34353637383933 unmodified lines| Quant | Size | WikiText-2 KL | WikiText-2 top-1 | Held-out KL | Held-out top-1 ||---|---:|---:|---:|---:|---:|| **Xylolabs MLX 8-bit** (8-bit affine g=64, BF16 norms/scales/biases) | 28.58 GB | 0.001616 | 98.42% | 0.001663 | 98.80% |All files and rivals: [BENCHMARKS.md](./BENCHMARKS.md)33 unmodified lines3435363738394033 unmodified lines| Quant | Size | WikiText-2 KL | WikiText-2 top-1 | Held-out KL | Held-out top-1 ||---|---:|---:|---:|---:|---:|| **Xylolabs MLX 8-bit** (8-bit affine g=64, BF16 norms/scales/biases) | 28.58 GB | 0.001616 | 98.42% | 0.001663 | 98.80% || [**Xylolabs MLX 4-bit (OBS)**](https://huggingface.co/Xylolabs/AREX-2-MLX-4bit) | 15.49 GB | 0.023979231447044634 | 93.30882352941177% | 0.04757144044235062 | 92.84313725490196% |All files and rivals: [BENCHMARKS.md](./BENCHMARKS.md)
BENCHMARKS.md+1-1
MANIFEST+2-2
README.md+1