File size: 3,286 Bytes
8af882e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
  "architectures": [
    "LongcatFlashNgramForCausalLM"
  ],
  "attention_bias": false,
  "attention_dropout": 0.0,
  "auto_map": {
    "AutoConfig": "configuration_longcat_ngram.LongcatFlashNgramConfig",
    "AutoModel": "modeling_longcat_ngram.LongcatFlashNgramModel",
    "AutoModelForCausalLM": "modeling_longcat_ngram.LongcatFlashNgramForCausalLM"
  },
  "bos_token_id": 1,
  "dtype": "bfloat16",
  "emb_neighbor_num": 4,
  "emb_split_num": 4,
  "eos_token_id": 2,
  "expert_ffn_hidden_size": 1024,
  "ffn_hidden_size": 6144,
  "head_dim": 64,
  "hidden_act": "silu",
  "hidden_size": 3072,
  "initializer_range": 0.02,
  "kv_lora_rank": 512,
  "max_position_embeddings": 327680,
  "mla_scale_kv_lora": true,
  "mla_scale_q_lora": true,
  "model_type": "longcat_flash_ngram",
  "moe_topk": 12,
  "n_routed_experts": 256,
  "ngram_vocab_size_ratio": 78,
  "num_attention_heads": 32,
  "num_hidden_layers": 28,
  "num_key_value_heads": 32,
  "num_layers": 14,
  "q_lora_rank": 1536,
  "qk_head_dim": 192,
  "qk_nope_head_dim": 128,
  "qk_rope_head_dim": 64,
  "quantization_config": {
    "autoround_version": "0.12.0",
    "bits": 4,
    "data_type": "int",
    "extra_config": {
      "model.layers.0.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.1.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.10.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.11.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.12.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.13.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.2.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.3.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.4.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.5.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.6.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.7.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.8.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      },
      "model.layers.9.mlp.router.classifier": {
        "bits": 16,
        "data_type": "float"
      }
    },
    "group_size": 128,
    "packing_format": "auto_round:auto_gptq",
    "quant_method": "auto-round",
    "sym": true
  },
  "rms_norm_eps": 1e-05,
  "rope_scaling": {
    "beta_fast": 32.0,
    "beta_slow": 1.0,
    "factor": 10.0,
    "mscale": 1,
    "mscale_all_dim": 1,
    "original_max_position_embeddings": 32768,
    "rope_type": "yarn"
  },
  "rope_theta": 5000000.0,
  "routed_scaling_factor": 6.0,
  "tie_word_embeddings": false,
  "transformers_version": "4.57.6",
  "use_cache": true,
  "v_head_dim": 128,
  "vocab_size": 131072,
  "zero_expert_num": 128,
  "zero_expert_type": "identity"
}