File size: 4,687 Bytes
48efa4a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
{
  "pressure": {
    "default_center": 0.5,
    "default_radius": 0.25,
    "default_compression": 1.0,
    "envelopes": {
      "loss": {
        "center": 0.3,
        "radius": 0.2,
        "compression": 1.0
      },
      "fitness": {
        "center": 0.7,
        "radius": 0.2,
        "compression": 1.0
      },
      "learning_rate": {
        "center": 0.5,
        "radius": 0.3,
        "compression": 0.8
      }
    }
  },
  "vp_thresholds": {
    "VP0": 0.25,
    "VP1": 0.5,
    "VP2": 0.75,
    "VP3": 0.99,
    "modularity_collapse": 0.3,
    "organism_collapse": 500
  },
  "convergence": {
    "mutation_rate": 0.1,
    "noise_std": 0.05
  },
  "attractor": {
    "max_iterations": 1000,
    "tolerance": 1e-06,
    "learning_rate": 0.01
  },
  "pulse": {
    "rate": 1.0,
    "intensity": 1.0,
    "decay": 0.99
  },
  "population": {
    "size": 8,
    "dimensions": 10,
    "trait_keys": [
      "x0",
      "x1",
      "x2",
      "x3",
      "x4",
      "x5",
      "x6",
      "x7",
      "x8",
      "x9"
    ],
    "use_brains": true
  },
  "evolution": {
    "generations": 100,
    "mutation_rate": 0.1,
    "mutation_strength": 0.1,
    "crossover_rate": 0.7,
    "fitness_function": "communication",
    "target_species": 5,
    "log_interval": 10,
    "mode": "hybrid"
  },
  "speciation": {
    "genetic_distance_threshold": 0.35,
    "max_stagnation": 50,
    "elitism": 2,
    "survival_threshold": 0.2,
    "crossover_rate": 0.7,
    "min_species_size": 3
  },
  "dbscan": {
    "eps": null,
    "min_samples": 3,
    "eps_percentile": 0.7,
    "scale_features": true
  },
  "fitness": {
    "function": "communication",
    "bounds_low": -5.12,
    "bounds_high": 5.12,
    "normalize": true,
    "invert": true
  },
  "node": {
    "mutation_rate": 0.1,
    "mutation_strength": 0.2
  },
  "brain": {
    "enabled": false,
    "hidden_sizes": [
      16,
      16
    ],
    "activation": "tanh",
    "mutation_rate": 0.1,
    "mutation_strength": 0.3
  },
  "lora_brain": {
    "enabled": true,
    "base_model": "Qwen/Qwen2.5-VL-3B-Instruct",
    "quantization": "4bit",
    "lora_rank": 8,
    "lora_alpha": 16,
    "lora_dropout": 0.0,
    "target_modules": ["q_proj", "v_proj"],
    "hidden_dim": 2048,
    "use_flash_attention": false,
    "max_memory": null,
    "offload_folder": null
  },
  "vlm": {
    "min_pixels": 200704,
    "max_pixels": 1003520,
    "max_new_tokens": 150,
    "code_dir": ".",
    "tasks_per_eval": 3
  },
  "weight_evolution": {
    "algorithm": "CMA_ES",
    "sigma_init": 0.1,
    "weight_decay": 0.0,
    "fitness_shaping": true
  },
  "nlp_training": {
    "enabled": true,
    "vocab_size": 1500,
    "embed_dim": 64,
    "hidden_dim": 128,
    "max_seq_len": 32,
    "num_lstm_layers": 1,
    "num_classes": 2,
    "population_size": 16,
    "sigma_init": 0.3,
    "train_samples": 64,
    "eval_samples": 32
  },
  "explorer": {
    "log_dir": "data/logs",
    "shared_state_path": "data/.shared_simulation_state.json",
    "max_events": 10000,
    "causation_thresholds": {
      "temporal_window": 1.0,
      "correlation_min": 0.7,
      "direct_max_delay": 0.1
    }
  },
  "checkpointing": {
    "enabled": true,
    "checkpoint_every": 50,
    "keep_best": 5,
    "keep_recent": 3,
    "checkpoint_dir": "checkpoints"
  },
  "logging": {
    "wandb_project": "key-evolution",
    "wandb_entity": null,
    "tensorboard_enabled": true,
    "tensorboard_logdir": "runs/key",
    "log_interval": 1,
    "log_level": "INFO"
  },
  "performance": {
    "batch_size": 5,
    "tick_delay_ms": 20,
    "parallel_fitness": true,
    "num_workers": 4
  },
  "hf_sync": {
    "enabled": true,
    "dataset_name": null,
    "sync_checkpoints": true,
    "sync_logs": true,
    "retry_attempts": 3,
    "timeout_seconds": 30
  },
  "visualization": {
    "umap_enabled": true,
    "umap_n_neighbors": 15,
    "umap_min_dist": 0.1,
    "umap_n_jobs": 1,
    "plot_every": 10,
    "max_history_points": 500
  },
  "selection": {
    "method": "tournament",
    "tournament_size": 3,
    "truncation_threshold": 0.5
  },
  "experiment": {
    "name": "default",
    "tags": [
      "evolution",
      "bbob"
    ],
    "seed": 42,
    "deterministic": true
  },
  "camel": {
    "enabled": true,
    "task_type": "role_playing",
    "assistant_role": "assistant",
    "user_role": "instructor",
    "max_turns": 10,
    "tasks_per_eval": 3,
    "task_categories": ["problem_solving", "analysis"],
    "partner_selection": "random",
    "task_prompt": "Collaborate to solve the given problem step by step.",
    "with_task_specify": true,
    "model_backend": "local",
    "temperature": 0.7,
    "top_p": 0.9
  }
}