Vivek commited on
Commit
fd148ff
1 Parent(s): f11fe10

Cosmos:Saving weights of epoch 3 at step 124

Browse files
config.json ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_function": "gelu_new",
3
+ "architectures": [
4
+ "GPTNeoForMultipleChoice"
5
+ ],
6
+ "attention_dropout": 0,
7
+ "attention_layers": [
8
+ "global",
9
+ "local",
10
+ "global",
11
+ "local",
12
+ "global",
13
+ "local",
14
+ "global",
15
+ "local",
16
+ "global",
17
+ "local",
18
+ "global",
19
+ "local",
20
+ "global",
21
+ "local",
22
+ "global",
23
+ "local",
24
+ "global",
25
+ "local",
26
+ "global",
27
+ "local",
28
+ "global",
29
+ "local",
30
+ "global",
31
+ "local"
32
+ ],
33
+ "attention_types": [
34
+ [
35
+ [
36
+ "global",
37
+ "local"
38
+ ],
39
+ 12
40
+ ]
41
+ ],
42
+ "bos_token_id": 50256,
43
+ "embed_dropout": 0,
44
+ "eos_token_id": 50256,
45
+ "gradient_checkpointing": false,
46
+ "hidden_size": 2048,
47
+ "initializer_range": 0.02,
48
+ "intermediate_size": null,
49
+ "layer_norm_epsilon": 1e-05,
50
+ "max_position_embeddings": 2048,
51
+ "model_type": "gpt_neo",
52
+ "num_heads": 16,
53
+ "num_layers": 24,
54
+ "resid_dropout": 0,
55
+ "summary_activation": null,
56
+ "summary_first_dropout": 0.1,
57
+ "summary_proj_to_labels": true,
58
+ "summary_type": "cls_index",
59
+ "summary_use_proj": true,
60
+ "task_specific_params": {
61
+ "text-generation": {
62
+ "do_sample": true,
63
+ "max_length": 50,
64
+ "temperature": 0.9
65
+ }
66
+ },
67
+ "tokenizer_class": "GPT2Tokenizer",
68
+ "transformers_version": "4.10.0.dev0",
69
+ "use_cache": true,
70
+ "vocab_size": 50257,
71
+ "window_size": 256
72
+ }
flax_model.msgpack ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:769ae65b2033abc0aebc10d1b96703b471fedc4e8bfec2d3caa81d298b1b7298
3
+ size 5262445743
results_tensorboard/events.out.tfevents.1627655729.t1v-n-cb40e504-w-0.12095.3.v2 ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:256da9bdf9f433c422d82270d87dccc6e91a37a8aea5820bc6cae45ccb3d4e39
3
+ size 138460
src/gptneo_cosmos.py CHANGED
@@ -46,9 +46,9 @@ train_dataset=dataset['train'].map(preprocess)
46
  validation_dataset=dataset['validation'].map(preprocess)
47
  test_dataset=dataset['test'].map(preprocess)
48
 
49
- len_train_dataset=100
50
- len_validation_dataset=100
51
- len_test_dataset=100
52
 
53
  train_dataset=train_dataset.select(range(len_train_dataset))
54
  test_dataset=test_dataset.select(range(len_test_dataset))
46
  validation_dataset=dataset['validation'].map(preprocess)
47
  test_dataset=dataset['test'].map(preprocess)
48
 
49
+ len_train_dataset=24000
50
+ len_validation_dataset=2000
51
+ len_test_dataset=6000
52
 
53
  train_dataset=train_dataset.select(range(len_train_dataset))
54
  test_dataset=test_dataset.select(range(len_test_dataset))