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name": "boxing_delta_iris_world_model",
|
| 3 |
+
"env": "BoxingNoFrameSkip-v4",
|
| 4 |
+
"model_type": "delta_iris",
|
| 5 |
+
"metadata": {
|
| 6 |
+
"latent_dim": [1, 4, 1024],
|
| 7 |
+
"two_hot_rews": false,
|
| 8 |
+
"tokens_per_block": 6,
|
| 9 |
+
"num_tokens": 4,
|
| 10 |
+
"tokens_grid_res": 2,
|
| 11 |
+
"token_res": 16384
|
| 12 |
+
},
|
| 13 |
+
"util_folders":{
|
| 14 |
+
"data": "../src/data",
|
| 15 |
+
"models": "../src/models"
|
| 16 |
+
},
|
| 17 |
+
"requirements":{
|
| 18 |
+
"-r": "requirements.txt"
|
| 19 |
+
},
|
| 20 |
+
"models": [
|
| 21 |
+
{
|
| 22 |
+
"name": "world_model",
|
| 23 |
+
"framework": null,
|
| 24 |
+
"format": "state_dict",
|
| 25 |
+
"source": {
|
| 26 |
+
"weights_path": "world_model.pt",
|
| 27 |
+
"class_path": "../src/world_model.py",
|
| 28 |
+
"class_name": "WorldModel",
|
| 29 |
+
"class_args": [
|
| 30 |
+
{
|
| 31 |
+
"latent_vocab_size": 1024,
|
| 32 |
+
"num_actions": 18,
|
| 33 |
+
"image_channels": 3,
|
| 34 |
+
"image_size": 64,
|
| 35 |
+
"latents_weight": 1.0,
|
| 36 |
+
"rewards_weight": 1.0,
|
| 37 |
+
"ends_weight": 1.0,
|
| 38 |
+
"two_hot_rews": false,
|
| 39 |
+
"transformer_config": {
|
| 40 |
+
"tokens_per_block": 6,
|
| 41 |
+
"max_blocks": 26,
|
| 42 |
+
"num_layers": 3,
|
| 43 |
+
"num_heads": 4,
|
| 44 |
+
"embed_dim": 256,
|
| 45 |
+
"attention": "causal",
|
| 46 |
+
"embed_pdrop": 0.0,
|
| 47 |
+
"resid_pdrop": 0.0,
|
| 48 |
+
"attn_pdrop": 0.0
|
| 49 |
+
},
|
| 50 |
+
"frame_cnn_config": {
|
| 51 |
+
"image_channels": 3,
|
| 52 |
+
"latent_dim": 4,
|
| 53 |
+
"num_channels": 32,
|
| 54 |
+
"mult": [1, 1, 2, 2, 4],
|
| 55 |
+
"down": [1, 0, 1, 1, 0]
|
| 56 |
+
}
|
| 57 |
+
}]
|
| 58 |
+
},
|
| 59 |
+
"signature": {
|
| 60 |
+
"inputs": ["wm_input_sequence", "use_kv_cache"],
|
| 61 |
+
"call_mode": "positional"
|
| 62 |
+
},
|
| 63 |
+
"sub_models":
|
| 64 |
+
[
|
| 65 |
+
{
|
| 66 |
+
"name": "act_emb",
|
| 67 |
+
"signature":
|
| 68 |
+
{
|
| 69 |
+
"inputs": ["act"],
|
| 70 |
+
"call_mode": "positional"
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"name": "latents_emb",
|
| 75 |
+
"signature":
|
| 76 |
+
{
|
| 77 |
+
"inputs": ["latent_tokens"],
|
| 78 |
+
"call_mode": "positional"
|
| 79 |
+
}
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"name": "transformer",
|
| 83 |
+
"signature":
|
| 84 |
+
{
|
| 85 |
+
"call_mode": "auto"
|
| 86 |
+
}
|
| 87 |
+
},
|
| 88 |
+
{
|
| 89 |
+
"name": "frame_cnn",
|
| 90 |
+
"signature":
|
| 91 |
+
{
|
| 92 |
+
"inputs": ["obs"],
|
| 93 |
+
"call_mode": "auto"
|
| 94 |
+
}
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"name": "tokenizer",
|
| 100 |
+
"framework": null,
|
| 101 |
+
"format": "state_dict",
|
| 102 |
+
"source": {
|
| 103 |
+
"weights_path": "tokenizer.pt",
|
| 104 |
+
"class_path": "../src/tokenizer.py",
|
| 105 |
+
"class_name": "Tokenizer",
|
| 106 |
+
"class_args": [{
|
| 107 |
+
"image_channels": 3,
|
| 108 |
+
"image_size": 64,
|
| 109 |
+
"num_actions": 17,
|
| 110 |
+
"num_tokens": 4,
|
| 111 |
+
"decoder_act_channels": 4,
|
| 112 |
+
"codebook_size": 1024,
|
| 113 |
+
"codebook_dim": 64,
|
| 114 |
+
"max_codebook_updates_with_revival": 0,
|
| 115 |
+
"encoder_config": {
|
| 116 |
+
"image_channels": 7,
|
| 117 |
+
"latent_dim": 64,
|
| 118 |
+
"num_channels": 64,
|
| 119 |
+
"mult": [1, 1, 2, 2, 4],
|
| 120 |
+
"down": [1, 0, 1, 1, 0]
|
| 121 |
+
},
|
| 122 |
+
"decoder_config": {
|
| 123 |
+
"image_channels": 3,
|
| 124 |
+
"latent_dim": 84,
|
| 125 |
+
"num_channels": 64,
|
| 126 |
+
"mult": [1, 1, 2, 2, 4],
|
| 127 |
+
"down": [1, 0, 1, 1, 0]
|
| 128 |
+
},
|
| 129 |
+
"frame_cnn_config": {
|
| 130 |
+
"image_channels": 3,
|
| 131 |
+
"latent_dim": 16,
|
| 132 |
+
"num_channels": 32,
|
| 133 |
+
"mult": [1, 1, 2, 2, 4],
|
| 134 |
+
"down": [1, 0, 1, 1, 0]
|
| 135 |
+
}
|
| 136 |
+
}]
|
| 137 |
+
},
|
| 138 |
+
"signature": {
|
| 139 |
+
"inputs": ["o1", "a", "o2"],
|
| 140 |
+
"call_mode": "positional"
|
| 141 |
+
},
|
| 142 |
+
"sub_models":
|
| 143 |
+
[
|
| 144 |
+
{
|
| 145 |
+
"name": "decode",
|
| 146 |
+
"signature":
|
| 147 |
+
{
|
| 148 |
+
"inputs": ["obs", "act", "q", "should_clamp"],
|
| 149 |
+
"call_mode": "positional"
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
]
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
}
|