asahi417 commited on
Commit
bf3c8b3
1 Parent(s): 43347e3

Upload OPTForCausalLM

Browse files
Files changed (3) hide show
  1. config.json +41 -0
  2. generation_config.json +7 -0
  3. pytorch_model.bin +3 -0
config.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "analogy_models/opt-350m-analogy-epoch15-p/model",
3
+ "_remove_final_layer_norm": false,
4
+ "activation_dropout": 0.0,
5
+ "activation_function": "relu",
6
+ "architectures": [
7
+ "OPTForCausalLM"
8
+ ],
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 2,
11
+ "do_layer_norm_before": false,
12
+ "dropout": 0.1,
13
+ "enable_bias": true,
14
+ "eos_token_id": 2,
15
+ "ffn_dim": 4096,
16
+ "finetuing_config": {
17
+ "batch_size": 32,
18
+ "data": "relbert/semeval2012_relational_similarity",
19
+ "epoch": 15,
20
+ "gradient_accumulation_steps": 1,
21
+ "learning_rate": 0.0001,
22
+ "model": "facebook/opt-350m",
23
+ "random_seed": 42,
24
+ "template": "<subj-a> is to <obj-a> what <subj-b> is to <obj-b>"
25
+ },
26
+ "hidden_size": 1024,
27
+ "init_std": 0.02,
28
+ "layer_norm_elementwise_affine": true,
29
+ "layerdrop": 0.0,
30
+ "max_position_embeddings": 2048,
31
+ "model_type": "opt",
32
+ "num_attention_heads": 16,
33
+ "num_hidden_layers": 24,
34
+ "pad_token_id": 1,
35
+ "prefix": "</s>",
36
+ "torch_dtype": "float32",
37
+ "transformers_version": "4.26.1",
38
+ "use_cache": true,
39
+ "vocab_size": 50272,
40
+ "word_embed_proj_dim": 512
41
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 2,
4
+ "eos_token_id": 2,
5
+ "pad_token_id": 1,
6
+ "transformers_version": "4.26.1"
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04965e01048c1616ff53537a3c630a8467a9abfc890b99f79077e0bc228f4388
3
+ size 1324911837