Prahaladha commited on
Commit
504d4bb
·
verified ·
1 Parent(s): 6eb2fb0

sync learned_computer: 3 files from /dev/shm/neurv

Browse files
neurv/rollouts/full7_38k/summary.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ckpt": "runs/rv7/step_38000.pt",
3
+ "ticks": 13008,
4
+ "sec_net": 827.9,
5
+ "ms_per_tick": 63.64,
6
+ "programs": {
7
+ "demo_bsearch": {
8
+ "real_steps": 6129,
9
+ "end": "halt",
10
+ "first_wrong_tick": 130,
11
+ "all_exact": false,
12
+ "output_correct": false,
13
+ "real_out": "49:7 50:-1 81:9 2500:50 9801:99 3:-1 \n",
14
+ "net_out": "5V:7 50:-1 81:-1 9as:-1 6025:-1 3:-1 \n"
15
+ },
16
+ "demo_collatz": {
17
+ "real_steps": 13000,
18
+ "end": "cap",
19
+ "first_wrong_tick": 3897,
20
+ "all_exact": false,
21
+ "output_correct": true,
22
+ "real_out": "",
23
+ "net_out": ""
24
+ },
25
+ "demo_factorial": {
26
+ "real_steps": 6925,
27
+ "end": "halt",
28
+ "first_wrong_tick": 112,
29
+ "all_exact": false,
30
+ "output_correct": false,
31
+ "real_out": "265252859812191058636308480000000\n",
32
+ "net_out": ""
33
+ },
34
+ "demo_fibrec": {
35
+ "real_steps": 13000,
36
+ "end": "cap",
37
+ "first_wrong_tick": 8323,
38
+ "all_exact": false,
39
+ "output_correct": false,
40
+ "real_out": "0 1 1 2 3 5 8 13 21 34 55 89 ",
41
+ "net_out": "0 1 1 2 3 5 8 13 21 34 55 9\\ "
42
+ },
43
+ "demo_hanoi": {
44
+ "real_steps": 11788,
45
+ "end": "halt",
46
+ "first_wrong_tick": 11624,
47
+ "all_exact": false,
48
+ "output_correct": false,
49
+ "real_out": "13 12 32 13 21 23 13 12 32 31 21 32 13 12 32 13 21 23 13 21 32 31 21 23 13 12 32 13 21 23 13 \n31\n",
50
+ "net_out": "13 12 32 13 21 23 13 12 32 31 21 32 13 12 32 13 21 23 13 21 32 31 21 23 13 12 32 13 21 23 13 \n2b\n"
51
+ },
52
+ "demo_matmul": {
53
+ "real_steps": 8664,
54
+ "end": "halt",
55
+ "first_wrong_tick": 134,
56
+ "all_exact": false,
57
+ "output_correct": false,
58
+ "real_out": "10 50 90 130 \n16 98 180 262 \n22 146 270 394 \n28 194 360 526 \ntrace 904\n",
59
+ "net_out": "\u008a\u0004\u0000\u0000\u008b\u0004\u0000\u0000\u008c\u0004\u0000\u0000\u008d\u0004\u0000\u0000\u008e\u0004\u0000\u0000\u008f\u0004\u0000\u0000\u0090\u0004\u0000\u0000\u0091\u0004\u0000\u0000\u0092\u0004\u0000\u0000\u0093\u0004\u0000\u0000\u0094\u0004\u0000\u0000\u0095\u0004\u0000\u0000\u0096\u0004\u0000\u0000\u0097\u0004\u0000\u0000\u0098\u0004\u0000\u0000\u0099\u0004\u0000\u0000\u009a\u0004\u0000\u0000\u009b\u0004\u0000\u0000\u009c\u0004\u0000\u0000\u009d\u0004\u0000\u0000\u009e\u0004\u0000\u0000\u009f\u0004\u0000\u0000\u00a0\u0004\u0000\u0000\u00a1\u0004\u0000\u0000\u00a2\u0004\u0000\u0000\u00a3\u0004\u0000\u0000\u00a4\u0004\u0000\u0000\u00a5\u0004\u0000\u0000\u00a6\u0004\u0000\u0000\u00a7\u0004\u0000\u0000\u00a8\u0004\u0000\u0000\u00a9\u0004\u0000\u0000\u00aa\u0004\u0000\u0000\u00ab\u0004\u0000\u0000\u00ac\u0004\u0000\u0000\u00ad\u0004\u0000\u0000\u00ae\u0004\u0000\u0000\u00af\u0004\u0000\u0000\u00b0\u0004\u0000\u0000\u00b1\u0004\u0000\u0000\u00b2\u0004\u0000\u0000\u00b3\u0004\u0000\u0000\u00b4\u0004\u0000\u0000\u00b5\u0004\u0000\u0000\u00b6\u0004\u0000\u0000\u00b7\u0004\u0000\u0000\u00b8\u0004\u0000\u0000\u00b9\u0004\u0000\u0000\u00ba\u0004\u0000\u0000\u00bb\u0004\u0000\u0000\u00bc\u0004\u0000\u0000\u00bd\u0004\u0000\u0000\u00be\u0004\u0000\u0000\u00bf\u0004\u0000\u0000\u00c0\u0004\u0000\u0000\u00c1\u0004\u0000\u0000\u00c2\u0004\u0000\u0000\u00c3\u0004\u0000\u0000\u00c4\u0004\u0000\u0000\u00c5\u0004\u0000\u0000\u00c6\u0004\u0000\u0000\u00c7\u0004\u0000\u0000\u00c8\u0004\u0000\u0000\u00c9\u0004\u0000\u0000\u00ca\u0004\u0000\u0000\u00cb\u0004\u0000\u0000\u00cc\u0004\u0000\u0000\u00cd\u0004\u0000\u0000\u00ce\u0004\u0000\u0000\u00cf\u0004\u0000\u0000\u00d0\u0004\u0000\u0000\u00d1\u0004\u0000\u0000\u00d2\u0004\u0000\u0000\u00d3\u0004\u0000\u0000\u00d4\u0004\u0000\u0000"
60
+ },
61
+ "demo_nqueens": {
62
+ "real_steps": 13000,
63
+ "end": "cap",
64
+ "first_wrong_tick": -1,
65
+ "all_exact": true,
66
+ "output_correct": true,
67
+ "real_out": "1 0 0 2 10 ",
68
+ "net_out": "1 0 0 2 10 "
69
+ },
70
+ "demo_palin": {
71
+ "real_steps": 2997,
72
+ "end": "halt",
73
+ "first_wrong_tick": 804,
74
+ "all_exact": false,
75
+ "output_correct": false,
76
+ "real_out": "racecar yes\nolleh no\nlevel yes\nabba yes\ncsir no\n",
77
+ "net_out": "racecar yes\nollah no\nlevel yes\nabba yes\nasir no\n"
78
+ },
79
+ "demo_primes": {
80
+ "real_steps": 13000,
81
+ "end": "cap",
82
+ "first_wrong_tick": 908,
83
+ "all_exact": false,
84
+ "output_correct": false,
85
+ "real_out": "2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 ",
86
+ "net_out": "2 3 5 7 11 13 15 21 23 \n"
87
+ },
88
+ "demo_qsort": {
89
+ "real_steps": 7447,
90
+ "end": "halt",
91
+ "first_wrong_tick": 2612,
92
+ "all_exact": false,
93
+ "output_correct": false,
94
+ "real_out": "-4 0 5 7 12 41 66 77 93 128 199 250 \n",
95
+ "net_out": "-4 0 5 7 12 41 74 93 77 112 215 24a \n"
96
+ }
97
+ }
98
+ }
neurv/rollouts/full7_40k/summary.json ADDED
@@ -0,0 +1,98 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ckpt": "runs/rv7/step_40000.pt",
3
+ "ticks": 13008,
4
+ "sec_net": 828.0,
5
+ "ms_per_tick": 63.65,
6
+ "programs": {
7
+ "demo_bsearch": {
8
+ "real_steps": 6129,
9
+ "end": "halt",
10
+ "first_wrong_tick": 130,
11
+ "all_exact": false,
12
+ "output_correct": false,
13
+ "real_out": "49:7 50:-1 81:9 2500:50 9801:99 3:-1 \n",
14
+ "net_out": "5V:7 50:-1 81:9 9as:-1 6089:-1 3:-1 \n"
15
+ },
16
+ "demo_collatz": {
17
+ "real_steps": 13000,
18
+ "end": "cap",
19
+ "first_wrong_tick": 3897,
20
+ "all_exact": false,
21
+ "output_correct": true,
22
+ "real_out": "",
23
+ "net_out": ""
24
+ },
25
+ "demo_factorial": {
26
+ "real_steps": 6925,
27
+ "end": "halt",
28
+ "first_wrong_tick": 126,
29
+ "all_exact": false,
30
+ "output_correct": false,
31
+ "real_out": "265252859812191058636308480000000\n",
32
+ "net_out": ""
33
+ },
34
+ "demo_fibrec": {
35
+ "real_steps": 13000,
36
+ "end": "cap",
37
+ "first_wrong_tick": 4226,
38
+ "all_exact": false,
39
+ "output_correct": false,
40
+ "real_out": "0 1 1 2 3 5 8 13 21 34 55 89 ",
41
+ "net_out": "0 1 1 2 3 5 8 13 21 34 55 95 "
42
+ },
43
+ "demo_hanoi": {
44
+ "real_steps": 11788,
45
+ "end": "halt",
46
+ "first_wrong_tick": 11624,
47
+ "all_exact": false,
48
+ "output_correct": false,
49
+ "real_out": "13 12 32 13 21 23 13 12 32 31 21 32 13 12 32 13 21 23 13 21 32 31 21 23 13 12 32 13 21 23 13 \n31\n",
50
+ "net_out": "13 12 32 13 21 23 13 12 32 31 21 32 13 12 32 13 21 23 13 21 32 31 21 23 13 12 32 13 21 23 13 \n2b\n"
51
+ },
52
+ "demo_matmul": {
53
+ "real_steps": 8664,
54
+ "end": "halt",
55
+ "first_wrong_tick": 310,
56
+ "all_exact": false,
57
+ "output_correct": false,
58
+ "real_out": "10 50 90 130 \n16 98 180 262 \n22 146 270 394 \n28 194 360 526 \ntrace 904\n",
59
+ "net_out": "10 50 90 206 \n16 98 20\u0083 206 \n22 146 286 4T8 \n28 24a 344 80e \ntrace 552\n"
60
+ },
61
+ "demo_nqueens": {
62
+ "real_steps": 13000,
63
+ "end": "cap",
64
+ "first_wrong_tick": -1,
65
+ "all_exact": true,
66
+ "output_correct": true,
67
+ "real_out": "1 0 0 2 10 ",
68
+ "net_out": "1 0 0 2 10 "
69
+ },
70
+ "demo_palin": {
71
+ "real_steps": 2997,
72
+ "end": "halt",
73
+ "first_wrong_tick": 804,
74
+ "all_exact": false,
75
+ "output_correct": false,
76
+ "real_out": "racecar yes\nolleh no\nlevel yes\nabba yes\ncsir no\n",
77
+ "net_out": "racecar yes\nollah no\nlevel yes\nabba yes\ncsir no\n"
78
+ },
79
+ "demo_primes": {
80
+ "real_steps": 13000,
81
+ "end": "cap",
82
+ "first_wrong_tick": 888,
83
+ "all_exact": false,
84
+ "output_correct": false,
85
+ "real_out": "2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 ",
86
+ "net_out": "2 3 5 7 9 11 13 15 27 21 23 43 75 71 \n"
87
+ },
88
+ "demo_qsort": {
89
+ "real_steps": 7447,
90
+ "end": "halt",
91
+ "first_wrong_tick": 2699,
92
+ "all_exact": false,
93
+ "output_correct": false,
94
+ "real_out": "-4 0 5 7 12 41 66 77 93 128 199 250 \n",
95
+ "net_out": ""
96
+ }
97
+ }
98
+ }
neurv/rv8_go.sh ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # rv8: continue from rv7 step_38000 (best), 60k-step cycle, cooldown from 50000
3
+ # moves scoring to GPU 7, trains on GPUs 0-6, restarts HF sync without logs (they hold the node path).
4
+ cd /dev/shm/neurv
5
+ L=logs/rv8_go.log; say(){ echo "$(date -u +%T) $*" >> $L; }
6
+ say "GO df $(df -h /dev/shm | tail -1 | awk '{print $3}')"
7
+ [ -f runs/rv7/step_38000.pt ] || { say "ABORT no rv6 step_28000"; exit 1; }
8
+ for d in tmp; do rm -rf "$d"; done
9
+ mkdir -p tmp
10
+ say "freed; df $(df -h /dev/shm | tail -1 | awk '{print $3}')"
11
+ for p in $(pgrep -xf "bash /dev/shm/neurv/autosoup.sh rv7"); do kill $p; done
12
+ for f in progeval.sh rvsoup.sh; do sed 's/CUDA_VISIBLE_DEVICES=3/CUDA_VISIBLE_DEVICES=7/g' $f > $f.new && mv $f.new $f; done
13
+ say "scoring GPU now: $(grep -c 'CUDA_VISIBLE_DEVICES=7' progeval.sh rvsoup.sh | tr '\n' ' ')"
14
+ setsid nohup env GPUS=0,1,2,3,4,5,6 NPROC=7 PROGS=$HOME/neurv_data/train_all.jsonl bash /dev/shm/neurv/watch_rv.sh rv8 60000 \
15
+ --init /dev/shm/neurv/runs/rv7/step_38000.pt --lr 2e-4 --decay_from 50000 --mem_sum_w 0.1 --prog_share 0.5 --fuzz_share 0.1 --hard 0.7 --new_input 0.4 \
16
+ > /dev/null 2>&1 < /dev/null &
17
+ setsid nohup bash /dev/shm/neurv/autosoup.sh rv8 > /dev/null 2>&1 < /dev/null &
18
+ setsid nohup bash /dev/shm/neurv/progeval.sh rv8 > /dev/null 2>&1 < /dev/null &
19
+ for p in $(pgrep -xf "bash /dev/shm/neurv/progeval.sh rv7"); do kill $p; done
20
+ say "launched watch rv7, autosoup, progeval, hfsync"