Upload config.json
Browse files- config.json +19 -0
config.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "llama",
|
| 3 |
+
"hidden_size": 5120, // Dimensionality of hidden layers
|
| 4 |
+
"num_attention_heads": 40, // Number of attention heads
|
| 5 |
+
"num_hidden_layers": 40, // Number of transformer layers
|
| 6 |
+
"intermediate_size": 13824, // Feedforward layer size (often ~2.7x hidden_size)
|
| 7 |
+
"hidden_act": "silu", // Activation function
|
| 8 |
+
"rotary_emb_base": 10000, // Base for rotary embeddings
|
| 9 |
+
"max_position_embeddings": 2048, // Maximum sequence length
|
| 10 |
+
"initializer_range": 0.02, // Weight initialization range
|
| 11 |
+
"rms_norm_eps": 1e-6, // Epsilon for RMSNorm
|
| 12 |
+
"use_parallel_residual": true, // Optimized residual connections
|
| 13 |
+
"vocab_size": 32000, // Vocabulary size for the tokenizer
|
| 14 |
+
"pad_token_id": 0, // Padding token ID
|
| 15 |
+
"eos_token_id": 2, // End-of-sequence token ID
|
| 16 |
+
"bos_token_id": 1, // Beginning-of-sequence token ID
|
| 17 |
+
"torch_dtype": "float16", // Floating point precision for weights (fp16)
|
| 18 |
+
"use_cache": true // Enable caching during inference
|
| 19 |
+
}
|