hletrd commited on
Commit
0b28a6e
·
verified ·
1 Parent(s): b3e1794

Short card: Mac hardware table, plain rows, shorter Updates, one size per file

Browse files
Files changed (1) hide show
  1. README.md +16 -15
README.md CHANGED
@@ -93,8 +93,8 @@ Mean KL divergence from BF16 (lower is better) and top-1 agreement with BF16.
93
 
94
  | Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 |
95
  |---|---:|---:|---:|---:|---:|---:|---:|
96
- | **MLX 4-bit** | **447.58 GB** | **0.142528** | **88.549%** | **0.193011** | **90.126%** | **0.066185** | **92.363%** |
97
- | **MLX 8-bit** | **819.63 GB** | **0.038634** | **94.118%** | **0.119845** | **93.565%** | **0.016506** | **96.088%** |
98
 
99
  <picture>
100
  <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/Xylolabs/Hy4-MLX-4bit/resolve/main/accuracy-kl-dark.png">
@@ -108,17 +108,19 @@ Mean KL divergence from BF16 (lower is better) and top-1 agreement with BF16.
108
 
109
  ## Which file for your hardware
110
 
111
- Macs only (MLX runs on Apple silicon; memory options as Apple lists them for the Mac Studio, M5 Max 36, 48, 64 and 128 GB, M5 Ultra 96, 256 and 512 GB, and the 14-inch MacBook Pro M5 Max, checked 2026-11-22). The GPU may use about 75% of unified memory by default. Fit rule: file + KV cache at the stated context + about 2 GB must fit in the GPU limit; sizes in GB (10^9 bytes); context is the longest that fits at the default limit, at least 32K. KV cache at most 110 KB per token (78 layers x (512 latent + 64 rope + 128 indexer key values) x 2 bytes). The optional vision tower (2.5 GB) and drafter (6.6 GB) add to the weights.
112
 
113
- | Hardware | Memory | Recommended file | Context that fits | Notes |
114
- |---|---:|---|---|---|
115
- | Mac Studio M5 Max (also MacBook Pro 14-inch M5 Max, 32-core GPU) | 36 GB unified | none: does not fit | | Even with the GPU limit raised to 90% of memory the smallest file (447.6 GB) leaves no room for 32K of context. |
116
- | Mac Studio M5 Max (also MacBook Pro 14-inch M5 Max, 40-core GPU) | 48 GB unified | none: does not fit | | Even with the GPU limit raised to 90% of memory the smallest file (447.6 GB) leaves no room for 32K of context. |
117
- | Mac Studio M5 Max (also MacBook Pro 14-inch M5 Max, 40-core GPU) | 64 GB unified | none: does not fit | | Even with the GPU limit raised to 90% of memory the smallest file (447.6 GB) leaves no room for 32K of context. |
118
- | Mac Studio M5 Ultra | 96 GB unified | none: does not fit | | Even with the GPU limit raised to 90% of memory the smallest file (447.6 GB) leaves no room for 32K of context. |
119
- | Mac Studio M5 Max, 40-core GPU (also MacBook Pro 14-inch) | 128 GB unified | none: does not fit | | Even with the GPU limit raised to 90% of memory the smallest file (447.6 GB) leaves no room for 32K of context. |
120
- | Mac Studio M5 Ultra | 256 GB unified | none: does not fit | | Even with the GPU limit raised to 90% of memory the smallest file (447.6 GB) leaves no room for 32K of context. |
121
- | Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | `Xylolabs/Hy4-MLX-4bit` (4-bit, 447.58 GB) | 99K after raising the GPU limit | Does not fit at the default GPU limit (75% of memory = 384 GB); needs the macOS GPU memory limit raised. |
 
 
122
 
123
  ## License and notices
124
 
@@ -126,9 +128,8 @@ These files are under the Tencent Hy License, Version 1.0, copied in `LICENSE`,
126
 
127
  ## Updates
128
 
129
- - 2026-11-22: Added a hardware recommendation table.
130
- - 2026-11-22: Added the vision tower (`vision/`) and the DFly2 drafter (`dfly/`) with their Python modules, for image input and speculative decoding.
131
- - 2026-11-21: The Accuracy table now covers WikiText-2, chat and held-out text against the corrected BF16 reference, replacing the earlier figure (WikiText-2 KL 0.128577 became 0.142528). Added the KL and top-1 charts.
132
  - 2026-11-20: First release.
133
 
134
  ## Tencent's original model description
 
93
 
94
  | Quant | Size | WikiText-2 KL | top-1 | Chat KL | top-1 | Held-out KL | top-1 |
95
  |---|---:|---:|---:|---:|---:|---:|---:|
96
+ | MLX 4-bit | 456.63 GB | 0.142528 | 88.549% | 0.193011 | 90.126% | 0.066185 | 92.363% |
97
+ | MLX 8-bit | 828.681 GB | 0.038634 | 94.118% | 0.119845 | 93.565% | 0.016506 | 96.088% |
98
 
99
  <picture>
100
  <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/Xylolabs/Hy4-MLX-4bit/resolve/main/accuracy-kl-dark.png">
 
108
 
109
  ## Which file for your hardware
110
 
111
+ A file fits when its size plus the KV cache at that context (f16) plus 2 GB for the runtime is under 75% of the memory, the default macOS GPU limit.
112
 
113
+ | Hardware | Memory | File | Context |
114
+ |---|---|---|---:|
115
+ | Mac Studio M5 Max, 32-core GPU | 36 GB unified | none | |
116
+ | Mac Studio M5 Max, 40-core GPU | 48 GB unified | none | |
117
+ | Mac Studio M5 Max, 40-core GPU | 64 GB unified | none | |
118
+ | Mac Studio M5 Ultra | 96 GB unified | none | |
119
+ | Mac Studio M5 Max, 40-core GPU | 128 GB unified | none | |
120
+ | Mac Studio M5 Ultra | 256 GB unified | none | |
121
+ | Mac Studio M5 Ultra, 80-core GPU | 512 GB unified | `Xylolabs/Hy4-MLX-4bit`* (4-bit, 456.6 GB) | 16K |
122
+
123
+ \* Fits only with the macOS GPU memory limit raised (up to 90% of the memory).
124
 
125
  ## License and notices
126
 
 
128
 
129
  ## Updates
130
 
131
+ - 2026-11-22: Added the vision tower and the DFly2 drafter with their Python modules.
132
+ - 2026-11-21: Accuracy table redone on WikiText-2, chat and held-out text against the corrected BF16 reference; charts added.
 
133
  - 2026-11-20: First release.
134
 
135
  ## Tencent's original model description