How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "DreamFoundries/K2-Horizon-3.7B-MLX-6bit"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "DreamFoundries/K2-Horizon-3.7B-MLX-6bit"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "DreamFoundries/K2-Horizon-3.7B-MLX-6bit",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

Open in MLXHub

K2 Horizon 3.7B MLX 6-bit

MLX conversion of IFM/K2-Horizon-3.7B, created specifically for MLXHub with the DreamFoundries mlx-lm fork at 0f74c0e. Affine 6-bit quantization uses group size 64. The K2 routers (mlp.gate and, where present, self_attn.v_router) remain unquantized by the model implementation.

The original model is by Institute of Foundation Models (IFM) and is released under Apache-2.0. Comparative quality and performance benchmarks are not available for this conversion.

Use with MLX

from mlx_lm import load, generate
model, tokenizer = load("DreamFoundries/K2-Horizon-3.7B-MLX-6bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)

Download MLXHub

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

6-bit

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

Model tree for DreamFoundries/K2-Horizon-3.7B-MLX-6bit

Quantized
(9)
this model

Collection including DreamFoundries/K2-Horizon-3.7B-MLX-6bit