How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "abenzerps/K2-Horizon-3.7B-MLX-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": "abenzerps/K2-Horizon-3.7B-MLX-4bit"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

K2-Horizon-3.7B MLX — 4-bit

MLX 4-bit conversion of IFM/K2-Horizon-3.7B, a 3.7B dense decoder-only model for reasoning, coding, long-context work, and tool use. The source checkpoint supports a native context length of 524,288 tokens (512K).

Benchmarks

IFM/K2-Horizon-3.7B benchmark results

Benchmark results reported by IFM for the original IFM/K2-Horizon-3.7B checkpoint.

Release

Format Quantization Size
MLX safetensors Affine 4-bit, group size 64 2.87 GB

The included k2_horizon_mlx.py adapter preserves K2 Horizon's grouped RMSNorm. Use it with MLX-LM and --trust-remote-code. The model is text-only; no vision projector or MTP files are included.

Usage

pip install -U mlx-lm
mlx_lm.generate \
  --model . \
  --trust-remote-code \
  --prompt "Explain why reproducible builds matter." \
  --max-tokens 512

Source

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

4-bit

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

Model tree for abenzerps/K2-Horizon-3.7B-MLX-4bit

Quantized
(9)
this model

Collection including abenzerps/K2-Horizon-3.7B-MLX-4bit