gurumurthy3 commited on
Commit
4666d47
·
verified ·
1 Parent(s): fb939b5

Upload V2: stackformer GPT-2 + sparse cross-attention vision model (128 visual tokens)

Browse files
config.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 50258,
3
+ "embed_dim": 768,
4
+ "num_layers": 12,
5
+ "num_heads": 12,
6
+ "hidden_dim": 3072,
7
+ "context_length": 128,
8
+ "dropout": 0.1,
9
+ "qkv_bias": true,
10
+ "cross_attention_pos": [
11
+ 3,
12
+ 6,
13
+ 9
14
+ ],
15
+ "num_visual_tokens": 128,
16
+ "vision_dim": 768,
17
+ "perceiver_depth": 2,
18
+ "perceiver_heads": 8,
19
+ "batch_size": 16,
20
+ "grad_accum_steps": 2,
21
+ "learning_rate": 0.0002,
22
+ "weight_decay": 0.01,
23
+ "time_budget_minutes": 270,
24
+ "amp_dtype": "bf16"
25
+ }
model_checkpoint.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b734ff8caff36c441a4ae58e20fdfafbde1b5b7ff4a2c5d47c2c9370db87bc9
3
+ size 1062433014
tokenizer/added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<|pad|>": 50257
3
+ }
tokenizer/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/special_tokens_map.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": {
5
+ "content": "<|pad|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false
10
+ },
11
+ "unk_token": "<|endoftext|>"
12
+ }
tokenizer/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer/tokenizer_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "50257": {
13
+ "content": "<|pad|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ }
20
+ },
21
+ "bos_token": "<|endoftext|>",
22
+ "clean_up_tokenization_spaces": true,
23
+ "eos_token": "<|endoftext|>",
24
+ "model_max_length": 1024,
25
+ "pad_token": "<|pad|>",
26
+ "tokenizer_class": "GPT2Tokenizer",
27
+ "unk_token": "<|endoftext|>"
28
+ }
tokenizer/vocab.json ADDED
The diff for this file is too large to render. See raw diff