ashxhart commited on
Commit
dd375b3
·
verified ·
1 Parent(s): e4dbdd3

Clarify runtime status and checkpoint sizes

Browse files
Files changed (1) hide show
  1. README.md +17 -25
README.md CHANGED
@@ -19,39 +19,35 @@ tags:
19
  - 4-bit
20
  ---
21
 
22
- # Hy4-flash MLX 4-bit + DFly2
23
 
24
- > Draft model card. Checkpoint conversion is verified and TensorFold runtime support is pending.
25
 
26
- This is TensorFold's MLX conversion of [Tencent Hy4-flash](https://huggingface.co/tencent/Hy4-flash/tree/d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959), with the upstream DFly2 drafter packaged alongside the target weights.
27
 
28
  <p align="center">
29
  <img src="assets/logo-en.png" alt="Tencent Hy" width="280" />
30
  </p>
31
 
32
- ## About this conversion
33
 
34
- | Item | Configuration |
35
- | --- | --- |
36
- | Target weight format | MLX affine 4-bit Safetensors |
37
- | Group size | 64 for most weights, 32 for Engram embeddings |
38
- | Draft weights | Upstream DFly2 weights and configuration at source precision |
39
- | Vision tower and MoE router gates | Source precision |
40
- | Verified tensor payload | 129.86 GB |
41
-
42
- The [MLX 8-bit companion](https://huggingface.co/TensorFold/Hy4-flash-MLX-8bit-MTP) uses the same upstream revision and drafter.
43
-
44
- ## Download and use
45
-
46
- Download and quick-start instructions are pending runtime validation.
47
 
48
- ## Apple Silicon performance
49
 
50
- Decode speed and peak memory are pending measurement on Apple Silicon.
51
 
52
- ## Runtime compatibility
 
 
 
 
 
53
 
54
- TensorFold 1.2.9 rejects this checkpoint at startup because it has no `hy_v4_flash` backend. DFly2 additionally depends on the target's sparse-attention index and KV cache. The `MTP` suffix identifies the TensorFold variant that packages these draft weights.
55
 
56
  ## Architecture
57
 
@@ -61,10 +57,6 @@ Tencent describes Hy4-flash as a multimodal mixture-of-experts model with 220 bi
61
 
62
  The conversion uses Tencent's pinned BF16 checkpoint and retains the tokenizer, processor, chat template and DFly2 configuration. The 148 output shards match the tensor index, sampled packed weights match MLX affine quantization, and all 87 DFly2 tensors match the upstream bytes. Generation and drafted-versus-plain parity are pending runtime support.
63
 
64
- ## Limitations
65
-
66
- The file size estimates cover checkpoint weights. Runtime memory also depends on context length, cache settings and concurrent requests. No Apple Silicon memory tier has been measured for this conversion.
67
-
68
  ## Licence and attribution
69
 
70
  The original model, DFly2 drafter and evaluations are the work of Tencent and the upstream contributors. TensorFold prepares the MLX conversion. The [Tencent Hy License](https://huggingface.co/tencent/Hy4-flash/blob/d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959/LICENSE) applies.
 
19
  - 4-bit
20
  ---
21
 
22
+ # Hy4-flash MLX 4-bit with DFly2
23
 
24
+ > **Preview checkpoint.** Weight conversion checks passed. TensorFold 1.2.9 rejects this architecture at startup. Generation, DFly2 parity, and runtime memory requirements are pending validation.
25
 
26
+ This is TensorFold’s MLX conversion of [Tencent Hy4-flash](https://huggingface.co/tencent/Hy4-flash/tree/d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959), a multimodal model that takes text and images. Both variants include Tencent’s DFly2 drafter at source precision.
27
 
28
  <p align="center">
29
  <img src="assets/logo-en.png" alt="Tencent Hy" width="280" />
30
  </p>
31
 
32
+ ## Choose a checkpoint
33
 
34
+ | Checkpoint | Weight files |
35
+ | --- | ---: |
36
+ | **This repo · MLX 4-bit** | 129.86 GB |
37
+ | [MLX 8-bit](https://huggingface.co/TensorFold/Hy4-flash-MLX-8bit-MTP) | 239.30 GB |
 
 
 
 
 
 
 
 
 
38
 
39
+ These sizes are for stored weights. Runtime memory depends on the engine, context length, cache settings, and concurrent requests. Check the [TensorFold releases](https://github.com/ashhart/TensorFold/releases) for runtime support before downloading.
40
 
41
+ ## What’s included
42
 
43
+ | Component | Format |
44
+ | --- | --- |
45
+ | Target weights | MLX affine 4-bit safetensors |
46
+ | Quantization group size | 64 for most weights and 32 for Engram embeddings |
47
+ | DFly2 drafter | Upstream weights and configuration at source precision |
48
+ | Vision tower and MoE router gates | Source precision |
49
 
50
+ The repo’s MTP suffix identifies the variant that bundles the DFly2 drafter. DFly2 requires the model’s sparse-attention index and KV cache.
51
 
52
  ## Architecture
53
 
 
57
 
58
  The conversion uses Tencent's pinned BF16 checkpoint and retains the tokenizer, processor, chat template and DFly2 configuration. The 148 output shards match the tensor index, sampled packed weights match MLX affine quantization, and all 87 DFly2 tensors match the upstream bytes. Generation and drafted-versus-plain parity are pending runtime support.
59
 
 
 
 
 
60
  ## Licence and attribution
61
 
62
  The original model, DFly2 drafter and evaluations are the work of Tencent and the upstream contributors. TensorFold prepares the MLX conversion. The [Tencent Hy License](https://huggingface.co/tencent/Hy4-flash/blob/d88c9dfd96ba4f2e6b92adba0b8e8f1c8696f959/LICENSE) applies.