File size: 1,554 Bytes
b913eda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
base_model: IFM/K2-Horizon-3.7B
base_model_relation: quantized
license: apache-2.0
language:
  - en
pipeline_tag: text-generation
library_name: mlx
tags:
  - mlx
  - mlx-lm
  - 8-bit
  - k2-horizon
  - long-context
  - 512k-context
  - dense
---

# K2-Horizon-3.7B MLX — 8-bit

MLX 8-bit conversion of [IFM/K2-Horizon-3.7B](https://huggingface.co/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](assets/k2-horizon-3.7b-benchmarks.png)

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

## Release

| Format | Quantization | Size |
| --- | --- | ---: |
| MLX safetensors | Affine 8-bit, group size 64 | 5.40 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

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

## Source

- Model: [IFM/K2-Horizon-3.7B](https://huggingface.co/IFM/K2-Horizon-3.7B)
- Source revision: [`633f52a`](https://huggingface.co/IFM/K2-Horizon-3.7B/tree/633f52ad28b17edeabd82afc61d2d13b4c59a561)
- License: [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
- Checksums: [SHA256SUMS.txt](SHA256SUMS.txt)