trohrbaugh commited on
Commit
7db55a9
·
verified ·
1 Parent(s): d3116bc

KNOWN_BASES: add ERNIE 4.5 text-MoE + Zamba2; extend ZAYA1 patterns

Browse files
Files changed (1) hide show
  1. scan.py +17 -1
scan.py CHANGED
@@ -165,6 +165,14 @@ KNOWN_BASES = {
165
  "model_type_patterns": ["kimi_linear", "kimi"],
166
  # Kimi-Linear adds linear_attn_config + MLA + MTP on Kimi MoE backbone
167
  },
 
 
 
 
 
 
 
 
168
  "ernie4_5_vl": {
169
  "name": "Baidu ERNIE 4.5 VL (MoE multimodal)",
170
  "vocab_size": 103424,
@@ -251,7 +259,7 @@ KNOWN_BASES = {
251
  "zaya": {
252
  "name": "Zyphra ZAYA1 (Global Attn + SWA + MoE)",
253
  "vocab_size": 262272,
254
- "model_type_patterns": ["zaya"],
255
  # Global attention alternating with Sliding Window Attention (4K window) + MoE
256
  # CCA (Cached Context Attention) is Zyphra's proprietary KV-efficient attn variant
257
  # 8B: hidden=2048, 80 layers, 16 experts, 4B active
@@ -260,6 +268,14 @@ KNOWN_BASES = {
260
  # vocab ≈ Gemma tokenizer + 128 extra tokens; trained on AMD MI300x
261
  # 74B-Preview is pre-RL reasoning base (no RLHF/instruct tuning)
262
  },
 
 
 
 
 
 
 
 
263
  "hunyuan_v3": {
264
  "name": "Tencent Hunyuan V3 / Hy-MT2 (MoE)",
265
  "vocab_size": 120832,
 
165
  "model_type_patterns": ["kimi_linear", "kimi"],
166
  # Kimi-Linear adds linear_attn_config + MLA + MTP on Kimi MoE backbone
167
  },
168
+ "ernie4_5_moe": {
169
+ "name": "Baidu ERNIE 4.5 (text MoE)",
170
+ "vocab_size": 103424,
171
+ "model_type_patterns": ["ernie4_5_moe"],
172
+ # Text MoE line: 21B-A3B (28L, hidden 2560), 300B-A47B. Shares the 103424 ERNIE
173
+ # tokenizer with the VL line. exact `ernie4_5_moe` scores above the VL base's
174
+ # startswith on `ernie4_5_moe_vl`, so VL models still resolve to ernie4_5_vl.
175
+ },
176
  "ernie4_5_vl": {
177
  "name": "Baidu ERNIE 4.5 VL (MoE multimodal)",
178
  "vocab_size": 103424,
 
259
  "zaya": {
260
  "name": "Zyphra ZAYA1 (Global Attn + SWA + MoE)",
261
  "vocab_size": 262272,
262
+ "model_type_patterns": ["zaya", "zaya1_vl"],
263
  # Global attention alternating with Sliding Window Attention (4K window) + MoE
264
  # CCA (Cached Context Attention) is Zyphra's proprietary KV-efficient attn variant
265
  # 8B: hidden=2048, 80 layers, 16 experts, 4B active
 
268
  # vocab ≈ Gemma tokenizer + 128 extra tokens; trained on AMD MI300x
269
  # 74B-Preview is pre-RL reasoning base (no RLHF/instruct tuning)
270
  },
271
+ "zamba2": {
272
+ "name": "Zyphra Zamba2 (Mamba2 + shared-attention hybrid)",
273
+ "vocab_size": [32000, 32064],
274
+ "model_type_patterns": ["zamba2"],
275
+ # SSM hybrid: majority Mamba2 blocks with a single shared full-attention block
276
+ # applied periodically via skip connections. 1.2B (38L, hidden 2048),
277
+ # 7B (81L, hidden 3584). vocab 32000 (Llama-2 tokenizer); VL variant 32064.
278
+ },
279
  "hunyuan_v3": {
280
  "name": "Tencent Hunyuan V3 / Hy-MT2 (MoE)",
281
  "vocab_size": 120832,