How to use from
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/Mellum2-12B-A2.5B-Instruct-bf16"
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/Mellum2-12B-A2.5B-Instruct-bf16" \
  --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"
Quick Links

Mellum2 12B A2.5B Instruct - BF16 MLX

This is an MLX conversion of JetBrains/Mellum2-12B-A2.5B-Instruct, stored in bfloat16 without weight quantization.

Mellum2 Instruct is a Mixture-of-Experts assistant model with 64 experts and 8 active experts per token. It supports a 131,072-token context window and is optimized for direct instruction following.

Conversion details

  • Source: JetBrains/Mellum2-12B-A2.5B-Instruct
  • Format: MLX safetensors
  • Precision: bfloat16
  • Quantization: none
  • License: Apache-2.0
  • EOS token: <|im_end|> (token ID 28)

The upstream config.json and generation_config.json identify token ID 0 as the EOS token, while the tokenizer identifies <|im_end|> (ID 28) as EOS. This conversion uses token ID 28 so MLX generation stops at the end of the assistant turn.

Usage

pip install -U mlx-lm

mlx_lm.chat \
  --model mlx-community/Mellum2-12B-A2.5B-Instruct-bf16 \
  --max-tokens 8192 \
  --temp 0.6 \
  --top-p 0.95

Model provenance

For the original model card, training details, benchmark results, and usage guidance, see the upstream JetBrains checkpoint.

Downloads last month
316
Safetensors
Model size
12B params
Tensor type
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

Quantized

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/Mellum2-12B-A2.5B-Instruct-bf16

Quantized
(26)
this model