timlawrenz commited on
Commit
731072c
·
verified ·
1 Parent(s): 05ea8a4

Upload specs/gnn_generation.yaml with huggingface_hub

Browse files
Files changed (1) hide show
  1. specs/gnn_generation.yaml +60 -0
specs/gnn_generation.yaml ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Research Spec: GNN Code Generation Failure Analysis
2
+ #
3
+ # Systematic investigation of why GNNs fail at code generation.
4
+ # Tests loss functions, decoder architectures, embedding dimensions.
5
+ #
6
+ # Launch:
7
+ # ratiocinator research specs/gnn_generation.yaml
8
+ #
9
+ # Requires pre-collated data (.pt files). Either stage via rsync
10
+ # or generate on-instance from the JSONL files in the branch.
11
+
12
+ # What to research
13
+ topic: "Systematic analysis of why Graph Neural Networks fail at code generation from ASTs. Testing hypotheses: (1) MSE vs cross-entropy loss on node types, (2) different decoder GNN architectures (GCN/GAT/GIN/SAGE), (3) embedding dimension (64/128/256). Baseline: 0% syntactic validity with GAT decoder, MSE loss, 64D embeddings."
14
+ goal_metric: syntactic_validity_pct
15
+ maximize: true
16
+
17
+ # Target codebase
18
+ repo_url: https://github.com/timlawrenz/jubilant-palm-tree.git
19
+ repo_branch: experiment/ratiocinator-gnn-study
20
+ runner_script: scripts/run_generation_arm.sh
21
+
22
+ # Infrastructure — decoder models ~850K params, moderate training
23
+ hardware:
24
+ gpu: "RTX 4090"
25
+ num_gpus: 1
26
+ min_cpu_ram_gb: 32
27
+ min_inet_down: 1000.0
28
+ min_cuda_version: 12.0
29
+ max_dph: 0.40
30
+ disk_gb: 50.0
31
+ image: pytorch/pytorch:2.7.0-cuda12.8-cudnn9-runtime
32
+
33
+ data:
34
+ source: none # Dataset is in the repo branch; pre-collation done on-instance
35
+
36
+ deps:
37
+ pre_install:
38
+ - "apt-get update -qq && apt-get install -y -qq git-lfs > /dev/null 2>&1 || true"
39
+ - "cd /workspace/experiment && git lfs install && git lfs pull"
40
+ - "pip install torch-geometric torch-scatter torch-sparse -f https://data.pyg.org/whl/torch-2.7.0+cu128.html"
41
+ - "pip install pandas tqdm sentence-transformers nltk scikit-learn numpy"
42
+ requirements: requirements.txt
43
+ exclude_from_requirements:
44
+ - torch
45
+ - torchvision
46
+ - torch_geometric
47
+ verify: "python -c \"import torch_geometric; print(f'PyG {torch_geometric.__version__}')\""
48
+
49
+ metrics:
50
+ protocol: json_line
51
+ json_prefix: "METRICS:"
52
+
53
+ # Budget — longer training per arm (~10-20 min)
54
+ max_iterations: 2
55
+ max_dollars: 15.00
56
+ train_timeout_s: 2400
57
+ download_timeout_s: 600
58
+
59
+ # Output
60
+ paper_title: "What Graph Neural Networks Can and Cannot Learn About Code: A Systematic Empirical Study on Ruby AST Analysis"