timlawrenz commited on
Commit
101222b
·
verified ·
1 Parent(s): 41f7984

Upload experiments/gnn_decoder_topology.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. experiments/gnn_decoder_topology.yaml +120 -0
experiments/gnn_decoder_topology.yaml ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fleet Spec: Decoder Topology Fix (Track 4)
2
+ #
3
+ # Tests tree-aware decoding vs chain baseline across architectures and loss functions.
4
+ # The critical insight: decoder uses chain edges (0→1→2→...) instead of tree edges.
5
+ #
6
+ # Launch:
7
+ # ratiocinator fleet run experiments/gnn_decoder_topology.yaml
8
+
9
+ name: gnn-decoder-topology
10
+ description: "Tree-aware decoder topology vs chain baseline"
11
+
12
+ hardware:
13
+ gpu: "RTX 4090"
14
+ num_gpus: 1
15
+ min_cpu_ram_gb: 32
16
+ min_inet_down: 1000.0
17
+ min_cuda_version: 12.0
18
+ max_dph: 0.40
19
+ disk_gb: 50.0
20
+ image: pytorch/pytorch:2.7.0-cuda12.8-cudnn9-runtime
21
+
22
+ repo:
23
+ url: https://github.com/timlawrenz/jubilant-palm-tree.git
24
+ branch: experiment/ratiocinator-gnn-study
25
+ clone_depth: 1
26
+
27
+ data:
28
+ source: none
29
+
30
+ deps:
31
+ pre_install:
32
+ - "apt-get update -qq && apt-get install -y -qq git-lfs > /dev/null 2>&1 || true"
33
+ - "cd /workspace/experiment && git lfs install && git lfs pull"
34
+ - "pip install torch-geometric torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.7.0+cu128.html"
35
+ - "pip install pandas tqdm sentence-transformers nltk scikit-learn numpy"
36
+ requirements: requirements.txt
37
+ exclude_from_requirements:
38
+ - torch
39
+ - torchvision
40
+ - torch_geometric
41
+ verify: "python -c \"import torch_geometric; print(f'PyG {torch_geometric.__version__}')\""
42
+
43
+ arms:
44
+ # ── Edge mode comparison (GAT decoder, improved loss) ──
45
+ - name: chain-gat
46
+ description: "Chain edges (legacy baseline), GAT decoder"
47
+ command: "bash scripts/run_topology_arm.sh"
48
+ env:
49
+ DECODER_EDGE_MODE: "chain"
50
+ DECODER_CONV_TYPE: "GAT"
51
+ LOSS_FN: "improved"
52
+ HIDDEN_DIM: "256"
53
+ NUM_LAYERS: "5"
54
+ EPOCHS: "30"
55
+
56
+ - name: teacher-forced-gat
57
+ description: "Teacher-forced tree edges, GAT decoder"
58
+ command: "bash scripts/run_topology_arm.sh"
59
+ env:
60
+ DECODER_EDGE_MODE: "teacher_forced"
61
+ DECODER_CONV_TYPE: "GAT"
62
+ LOSS_FN: "improved"
63
+ HIDDEN_DIM: "256"
64
+ NUM_LAYERS: "5"
65
+ EPOCHS: "30"
66
+
67
+ - name: iterative-gat
68
+ description: "Iterative predict→refine, GAT decoder"
69
+ command: "bash scripts/run_topology_arm.sh"
70
+ env:
71
+ DECODER_EDGE_MODE: "iterative"
72
+ DECODER_CONV_TYPE: "GAT"
73
+ LOSS_FN: "improved"
74
+ HIDDEN_DIM: "256"
75
+ NUM_LAYERS: "5"
76
+ EPOCHS: "30"
77
+
78
+ # ── Best edge mode × different architectures ──
79
+ - name: teacher-forced-sage
80
+ description: "Teacher-forced tree edges, SAGE decoder"
81
+ command: "bash scripts/run_topology_arm.sh"
82
+ env:
83
+ DECODER_EDGE_MODE: "teacher_forced"
84
+ DECODER_CONV_TYPE: "SAGE"
85
+ LOSS_FN: "improved"
86
+ HIDDEN_DIM: "256"
87
+ NUM_LAYERS: "5"
88
+ EPOCHS: "30"
89
+
90
+ - name: teacher-forced-gin
91
+ description: "Teacher-forced tree edges, GIN decoder"
92
+ command: "bash scripts/run_topology_arm.sh"
93
+ env:
94
+ DECODER_EDGE_MODE: "teacher_forced"
95
+ DECODER_CONV_TYPE: "GIN"
96
+ LOSS_FN: "improved"
97
+ HIDDEN_DIM: "256"
98
+ NUM_LAYERS: "5"
99
+ EPOCHS: "30"
100
+
101
+ # ── Loss function × topology interaction ──
102
+ - name: teacher-forced-gat-comprehensive
103
+ description: "Teacher-forced, GAT, comprehensive loss"
104
+ command: "bash scripts/run_topology_arm.sh"
105
+ env:
106
+ DECODER_EDGE_MODE: "teacher_forced"
107
+ DECODER_CONV_TYPE: "GAT"
108
+ LOSS_FN: "comprehensive"
109
+ HIDDEN_DIM: "256"
110
+ NUM_LAYERS: "5"
111
+ EPOCHS: "30"
112
+
113
+ metrics:
114
+ protocol: json_line
115
+ json_prefix: "METRICS:"
116
+
117
+ budget:
118
+ max_dollars: 10.00
119
+ train_timeout_s: 3600
120
+ download_timeout_s: 600