Sayan01 commited on
Commit
9117122
1 Parent(s): 11bcfe0

Upload PhiForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +32 -0
  2. generation_config.json +8 -0
  3. 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:269acd4ee5807332d8b04075649c2f3c0b7ad35a952ecdc53d161bd608fe54ee
3
+ size 3619184072