Upload config.json with huggingface_hub
Browse files- config.json +42 -0
config.json
ADDED
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "/mnt/bn/ridger1/flame/configs/HGRN2/hgrn2_1.3B_hybrid_24.json",
|
3 |
+
"architectures": [
|
4 |
+
"HGRN2ForCausalLM"
|
5 |
+
],
|
6 |
+
"attn": {
|
7 |
+
"layers": [
|
8 |
+
23
|
9 |
+
],
|
10 |
+
"num_heads": 16,
|
11 |
+
"num_kv_heads": 8,
|
12 |
+
"qkv_bias": false,
|
13 |
+
"rope_theta": 10000.0,
|
14 |
+
"window_size": null
|
15 |
+
},
|
16 |
+
"attn_mode": "chunk",
|
17 |
+
"bos_token_id": 1,
|
18 |
+
"conv_size": 4,
|
19 |
+
"elementwise_affine": true,
|
20 |
+
"eos_token_id": 2,
|
21 |
+
"expand_ratio": 256,
|
22 |
+
"fuse_cross_entropy": true,
|
23 |
+
"fuse_norm": true,
|
24 |
+
"fuse_swiglu": true,
|
25 |
+
"hidden_act": "swish",
|
26 |
+
"hidden_ratio": 4,
|
27 |
+
"hidden_size": 2048,
|
28 |
+
"initializer_range": 0.02,
|
29 |
+
"intermediate_size": null,
|
30 |
+
"max_position_embeddings": 4096,
|
31 |
+
"model_type": "hgrn2",
|
32 |
+
"norm_eps": 1e-06,
|
33 |
+
"num_heads": 8,
|
34 |
+
"num_hidden_layers": 24,
|
35 |
+
"tie_word_embeddings": true,
|
36 |
+
"torch_dtype": "float32",
|
37 |
+
"transformers_version": "4.49.0",
|
38 |
+
"use_cache": true,
|
39 |
+
"use_lower_bound": true,
|
40 |
+
"use_short_conv": false,
|
41 |
+
"vocab_size": 32000
|
42 |
+
}
|