Upload PhiForCausalLM
Browse files- config.json +32 -0
- generation_config.json +8 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/phi-2",
|
3 |
+
"architectures": [
|
4 |
+
"PhiForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 50256,
|
8 |
+
"early_stopping": null,
|
9 |
+
"embd_pdrop": 0.0,
|
10 |
+
"eos_token_id": 50256,
|
11 |
+
"hidden_act": "gelu_new",
|
12 |
+
"hidden_size": 1920,
|
13 |
+
"initializer_range": 0.02,
|
14 |
+
"intermediate_size": 7680,
|
15 |
+
"layer_norm_eps": 1e-05,
|
16 |
+
"max_position_embeddings": 2048,
|
17 |
+
"model_type": "phi",
|
18 |
+
"num_attention_heads": 32,
|
19 |
+
"num_beams": null,
|
20 |
+
"num_hidden_layers": 16,
|
21 |
+
"num_key_value_heads": 32,
|
22 |
+
"partial_rotary_factor": 0.4,
|
23 |
+
"qk_layernorm": false,
|
24 |
+
"resid_pdrop": 0.1,
|
25 |
+
"rope_scaling": null,
|
26 |
+
"rope_theta": 10000.0,
|
27 |
+
"tie_word_embeddings": false,
|
28 |
+
"torch_dtype": "float32",
|
29 |
+
"transformers_version": "4.45.2",
|
30 |
+
"use_cache": true,
|
31 |
+
"vocab_size": 51200
|
32 |
+
}
|
generation_config.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"early_stopping": true,
|
5 |
+
"eos_token_id": 50256,
|
6 |
+
"num_beams": 4,
|
7 |
+
"transformers_version": "4.45.2"
|
8 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6078983c74ea3a0a5f8a33c08980a6307856857282cf223d7c89c1bc98274b3d
|
3 |
+
size 3619184072
|