uploaded model
Browse files- config.json +63 -0
config.json
ADDED
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mega-ar-126m-4k",
|
3 |
+
"activation": "silu",
|
4 |
+
"add_lm_hidden_dense_layer": false,
|
5 |
+
"add_token_type_embeddings": false,
|
6 |
+
"architectures": [
|
7 |
+
"MegaForCausalLM"
|
8 |
+
],
|
9 |
+
"attention_activation": "softmax",
|
10 |
+
"attention_probs_dropout_prob": 0,
|
11 |
+
"bidirectional": false,
|
12 |
+
"bos_token_id": 0,
|
13 |
+
"chunk_size": -1,
|
14 |
+
"classifier_dropout": null,
|
15 |
+
"dropout_prob": 0,
|
16 |
+
"ema_beta_range": 0.02,
|
17 |
+
"ema_delta_alpha_range": 0.2,
|
18 |
+
"ema_gamma_omega_range": 1.0,
|
19 |
+
"ema_projection_size": 16,
|
20 |
+
"eos_token_id": 0,
|
21 |
+
"hidden_dropout_prob": 0,
|
22 |
+
"hidden_size": 768,
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 1536,
|
25 |
+
"is_decoder": true,
|
26 |
+
"max_positions": 4096,
|
27 |
+
"model_type": "mega",
|
28 |
+
"nffn_activation_dropout_prob": 0,
|
29 |
+
"nffn_hidden_size": 1536,
|
30 |
+
"norm_affine": true,
|
31 |
+
"normalization_type": "layernorm",
|
32 |
+
"normalize_before_ffn": true,
|
33 |
+
"normalize_before_mega": true,
|
34 |
+
"num_attention_heads": 1,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"pad_token_id": null,
|
37 |
+
"quantization_config": {
|
38 |
+
"_load_in_4bit": true,
|
39 |
+
"_load_in_8bit": false,
|
40 |
+
"bnb_4bit_compute_dtype": "float32",
|
41 |
+
"bnb_4bit_quant_storage": "uint8",
|
42 |
+
"bnb_4bit_quant_type": "fp4",
|
43 |
+
"bnb_4bit_use_double_quant": false,
|
44 |
+
"llm_int8_enable_fp32_cpu_offload": false,
|
45 |
+
"llm_int8_has_fp16_weight": false,
|
46 |
+
"llm_int8_skip_modules": null,
|
47 |
+
"llm_int8_threshold": 6.0,
|
48 |
+
"load_in_4bit": true,
|
49 |
+
"load_in_8bit": false,
|
50 |
+
"quant_method": "bitsandbytes"
|
51 |
+
},
|
52 |
+
"relative_positional_bias": "rotary",
|
53 |
+
"shared_representation_size": 192,
|
54 |
+
"torch_dtype": "float16",
|
55 |
+
"transformers_version": "4.42.4",
|
56 |
+
"truncation": null,
|
57 |
+
"type_vocab_size": 2,
|
58 |
+
"use_cache": true,
|
59 |
+
"use_chunking": false,
|
60 |
+
"use_feature_dropout": false,
|
61 |
+
"use_normalized_ffn": true,
|
62 |
+
"vocab_size": 50304
|
63 |
+
}
|