ubergarm commited on
Commit
b2d45d8
·
1 Parent(s): cb8c36c

add IQ2_KL and IQ4_KSS

Browse files
Files changed (2) hide show
  1. README.md +108 -0
  2. images/perplexity.png +2 -2
README.md CHANGED
@@ -35,6 +35,60 @@ These two are just test quants for baseline perplexity comparison and not availa
35
 
36
  *NOTE*: The first split file is much smaller on purpose to only contain metadata, its fine!
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  ## Q3_K 179.97 GiB (3.90 BPW)
39
  PPL over 580 chunks for n_ctx=512 = 3.5409 +/- 0.01924
40
 
@@ -62,6 +116,60 @@ This is a *custom* mainline llama.cpp compatible MoE optimized mix similar to Ae
62
 
63
  </details>
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  ## smol-IQ2_XS 113.41 GiB (2.46 BPW)
66
  PPL over 580 chunks for n_ctx=512 = 3.8717 +/- 0.02131
67
 
 
35
 
36
  *NOTE*: The first split file is much smaller on purpose to only contain metadata, its fine!
37
 
38
+ ## IQ4_KSS 194.058 GiB (4.206 BPW)
39
+ PPL over 580 chunks for n_ctx=512 = 3.5102 +/- 0.01896
40
+
41
+ <details>
42
+
43
+ <summary>👈 Secret Recipe</summary>
44
+
45
+ ```bash
46
+ #!/usr/bin/env bash
47
+
48
+ custom="
49
+ # 60 Repeating Layers [0-59]
50
+
51
+ ## Gated Attention/Delta Net [Blended 0-59]
52
+ blk\..*\.attn_gate\.weight=q8_0
53
+ blk\..*\.attn_qkv\.weight=q8_0
54
+ blk\..*\.attn_output\.weight=q8_0
55
+ blk\..*\.attn_q\.weight=q8_0
56
+ blk\..*\.attn_k\.weight=q8_0
57
+ blk\..*\.attn_v\.weight=q8_0
58
+ blk\..*\.ssm_alpha\.weight=q8_0
59
+ blk\..*\.ssm_beta\.weight=q8_0
60
+ blk\..*\.ssm_out\.weight=q8_0
61
+
62
+ # Shared Expert Layers [0-59]
63
+ blk\..*\.ffn_down_shexp\.weight=q8_0
64
+ blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
65
+
66
+ # Routed Experts Layers [0-59]
67
+ blk\..*\.ffn_down_exps\.weight=iq4_ks
68
+ blk\..*\.ffn_(gate|up)_exps\.weight=iq4_kss
69
+
70
+ # Non-Repeating Layers
71
+ token_embd\.weight=iq6_k
72
+ output\.weight=iq6_k
73
+ "
74
+
75
+ custom=$(
76
+ echo "$custom" | grep -v '^#' | \
77
+ sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
78
+ )
79
+
80
+ numactl -N ${SOCKET} -m ${SOCKET} \
81
+ ./build/bin/llama-quantize \
82
+ --custom-q "$custom" \
83
+ --imatrix /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/imatrix-Qwen3.5-397B-A17B-BF16.dat \
84
+ /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-BF16-00001-of-00017.gguf \
85
+ /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-IQ4_KSS.gguf \
86
+ IQ4_KSS \
87
+ 128
88
+ ```
89
+
90
+ </details>
91
+
92
  ## Q3_K 179.97 GiB (3.90 BPW)
93
  PPL over 580 chunks for n_ctx=512 = 3.5409 +/- 0.01924
94
 
 
116
 
117
  </details>
118
 
119
+ ## IQ2_KL 138.142 GiB (2.994 BPW)
120
+ PPL over 580 chunks for n_ctx=512 = 3.6536 +/- 0.02000
121
+
122
+ <details>
123
+
124
+ <summary>👈 Secret Recipe</summary>
125
+
126
+ ```bash
127
+ #!/usr/bin/env bash
128
+
129
+ custom="
130
+ # 60 Repeating Layers [0-59]
131
+
132
+ ## Gated Attention/Delta Net [Blended 0-59]
133
+ blk\..*\.attn_gate\.weight=q8_0
134
+ blk\..*\.attn_qkv\.weight=q8_0
135
+ blk\..*\.attn_output\.weight=q8_0
136
+ blk\..*\.attn_q\.weight=q8_0
137
+ blk\..*\.attn_k\.weight=q8_0
138
+ blk\..*\.attn_v\.weight=q8_0
139
+ blk\..*\.ssm_alpha\.weight=q8_0
140
+ blk\..*\.ssm_beta\.weight=q8_0
141
+ blk\..*\.ssm_out\.weight=q8_0
142
+
143
+ # Shared Expert Layers [0-59]
144
+ blk\..*\.ffn_down_shexp\.weight=q8_0
145
+ blk\..*\.ffn_(gate|up)_shexp\.weight=q8_0
146
+
147
+ # Routed Experts Layers [0-59]
148
+ blk\..*\.ffn_down_exps\.weight=iq3_ks
149
+ blk\..*\.ffn_(gate|up)_exps\.weight=iq2_kl
150
+
151
+ # Non-Repeating Layers
152
+ token_embd\.weight=iq4_k
153
+ output\.weight=iq6_k
154
+ "
155
+
156
+ custom=$(
157
+ echo "$custom" | grep -v '^#' | \
158
+ sed -Ez 's:\n+:,:g;s:,$::;s:^,::'
159
+ )
160
+
161
+ numactl -N ${SOCKET} -m ${SOCKET} \
162
+ ./build/bin/llama-quantize \
163
+ --custom-q "$custom" \
164
+ --imatrix /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/imatrix-Qwen3.5-397B-A17B-BF16.dat \
165
+ /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-BF16-00001-of-00017.gguf \
166
+ /mnt/data/models/ubergarm/Qwen3.5-397B-A17B-GGUF/Qwen3.5-397B-A17B-IQ2_KL.gguf \
167
+ IQ2_KL \
168
+ 128
169
+ ```
170
+
171
+ </details>
172
+
173
  ## smol-IQ2_XS 113.41 GiB (2.46 BPW)
174
  PPL over 580 chunks for n_ctx=512 = 3.8717 +/- 0.02131
175
 
images/perplexity.png CHANGED

Git LFS Details

  • SHA256: eb6a75f9b4474093bb1769d1429d6b003c04c627809bfea4458c904b232cc71a
  • Pointer size: 131 Bytes
  • Size of remote file: 155 kB

Git LFS Details

  • SHA256: 6809b0770878b36ceb8aa15a98785ffdbd299c027009b0f9b13716a0933f8f96
  • Pointer size: 131 Bytes
  • Size of remote file: 175 kB