if001 commited on
Commit
c520681
1 Parent(s): 1e04af2

Upload PhiForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +29 -0
  2. generation_config.json +6 -0
  3. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "PhiForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 1,
7
+ "embd_pdrop": 0.0,
8
+ "eos_token_id": 2,
9
+ "hidden_act": "gelu_new",
10
+ "hidden_size": 8,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 10,
13
+ "layer_norm_eps": 1e-05,
14
+ "max_position_embeddings": 2048,
15
+ "model_type": "phi",
16
+ "num_attention_heads": 4,
17
+ "num_hidden_layers": 6,
18
+ "num_key_value_heads": 2,
19
+ "partial_rotary_factor": 0.5,
20
+ "qk_layernorm": false,
21
+ "resid_pdrop": 0.0,
22
+ "rope_scaling": null,
23
+ "rope_theta": 10000.0,
24
+ "tie_word_embeddings": false,
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.38.2",
27
+ "use_cache": true,
28
+ "vocab_size": 20
29
+ }
generation_config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 1,
4
+ "eos_token_id": 2,
5
+ "transformers_version": "4.38.2"
6
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b6efbf9818855f09a7848a3224c70efa470ae43ed6f6096f841a88233c55249
3
+ size 19552