ShaswatRobotics commited on
Commit
ecea315
·
verified ·
1 Parent(s): cf88ce4

Update iris/atari/alien/config.json

Browse files
Files changed (1) hide show
  1. iris/atari/alien/config.json +125 -0
iris/atari/alien/config.json CHANGED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "alien_iris_world_model",
3
+ "env": "AlienNoFrameskip-v4",
4
+ "model_type": "iris",
5
+ "metadata": {
6
+ "latent_dim": [1, 4, 1024],
7
+ "two_hot_rews": true,
8
+ "tokens_per_block": 6,
9
+ "num_tokens": 4,
10
+ "tokens_grid_res": 2,
11
+ "token_res": 16384
12
+ },
13
+ "util_folders":{
14
+ "models": "../../src/models"
15
+ },
16
+ "requirements":{
17
+ "-r": "requirements.txt"
18
+ },
19
+ "models": [
20
+ {
21
+ "name": "world_model",
22
+ "framework": null,
23
+ "format": "state_dict",
24
+ "source": {
25
+ "weights_path": "world_model.pt",
26
+ "class_path": "../../src/world_model.py",
27
+ "class_name": "WorldModel",
28
+ "class_args": [
29
+ {
30
+ "tokens_per_block": 17,
31
+ "max_blocks": 20,
32
+ "attention": "causal",
33
+ "num_layers": 10,
34
+ "num_heads": 4,
35
+ "embed_dim": 256,
36
+ "embed_pdrop": 0.1,
37
+ "resid_pdrop": 0.1,
38
+ "attn_pdrop": 0.1,
39
+
40
+ }]
41
+ },
42
+ "signature": {
43
+ "inputs": ["tokens", "past_keys_values"],
44
+ "call_mode": "positional"
45
+ },
46
+ "sub_models":
47
+ [
48
+ {
49
+ "name": "transformer",
50
+ "sub_model_name": "transformer",
51
+ "signature":
52
+ {
53
+ "inputs": ["sequences", "past_keys_values"],
54
+ "call_mode": "positional"
55
+ }
56
+ }
57
+ ],
58
+ "methods":
59
+ [
60
+ ]
61
+ },
62
+ {
63
+ "name": "tokenizer",
64
+ "framework": null,
65
+ "format": "state_dict",
66
+ "source": {
67
+ "weights_path": "tokenizer.pt",
68
+ "class_path": "../src/tokenizer.py",
69
+ "class_name": "Tokenizer",
70
+ "class_args": [{
71
+ "vocab_size": 512,
72
+ "embed_dim": 512,
73
+ "encoder": {
74
+ "resolution": 64,
75
+ "in_channels": 3,
76
+ "z_channels": 512,
77
+ "ch": 64,
78
+ "ch_mult": [1, 1, 1, 1, 1],
79
+ "num_res_blocks": 2,
80
+ "attn_resolutions": [8, 16],
81
+ "out_ch": 3,
82
+ "dropout": 0.0
83
+ },
84
+ "decoder": {
85
+ "resolution": 64,
86
+ "in_channels": 3,
87
+ "z_channels": 512,
88
+ "ch": 64,
89
+ "ch_mult": [1, 1, 1, 1, 1],
90
+ "num_res_blocks": 2,
91
+ "attn_resolutions": [8, 16],
92
+ "out_ch": 3,
93
+ "dropout": 0.0
94
+ }
95
+ }]
96
+ },
97
+ "signature": {
98
+ "inputs": ["x", "should_preprocess", "should_postprocess"],
99
+ "call_mode": "positional"
100
+ },
101
+ "sub_models":
102
+ [
103
+ {
104
+ "name": "embedding",
105
+ "sub_model_name": "embedding",
106
+ "signature":
107
+ {
108
+ "call_mode": "auto"
109
+ }
110
+ }
111
+ ],
112
+ "methods":
113
+ [
114
+ {
115
+ "name": "encode",
116
+ "method_name": "encode"
117
+ },
118
+ {
119
+ "name": "decode",
120
+ "method_name": "decode"
121
+ }
122
+ ]
123
+ }
124
+ ]
125
+ }