Repository navigation
Expand file tree
/
Copy pathrlf_eval.log
More file actions
1167 lines (987 loc) · 41.2 KB
/
Copy pathrlf_eval.log
File metadata and controls
1167 lines (987 loc) · 41.2 KB
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
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
========================================
RLF AUTO-EVAL — started Mon Apr 27 08:18:41 PM CDT 2026
========================================
[wait] Polling for training completion...
[wait] Training complete at Mon Apr 27 08:27:41 PM CDT 2026
=======================================
PHASE 1: RLF Chain Accuracy Test
=======================================
[run_env] LD_PRELOAD set for NCCL + nvJitLink
[run_env] Launching: /home/phil/.local/share/mise/installs/python/3.14.3/bin/python rlf_chain_test.py
Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
=================================================================
RLF CHAIN TEST — Mamba-1.4B Latent Reasoning Validation
Checkpoint: /hdd_data/rlf-1.4b-checkpoints/final
=================================================================
Loading RLF model...
Loading base: state-spaces/mamba-1.4b
Loaded SFT lm_head from /hdd_data/latent-spacer-checkpoints/best
Building RLF engine...
LoRA params: 3,145,728
Loop engine: 13,219,840
Prefix memory: 16,384 (8 × 2048)
Latent bridge: 262,144 (2048→64→2048)
Total trainable: 150,245,376
Base frozen: 634,601,472
HALT token: 7803 (§)
[1h_01] 1-hop
Prompt: A=42. What is A?
Expected: ['42']
Got: ['', '', 'and', 'sime', 'teasp', '��'] (4.1s)
❌ got ['', '', 'and', 'sime', 'teasp', '��'], expected final='42'
[1h_02] 1-hop
Prompt: color=Blue. What is color?
Expected: ['Blue']
Got: ['', '', 'and', 'typen', 'teasp', 'teasp'] (0.3s)
❌ got ['', '', 'and', 'typen', 'teasp', 'teasp'], expected final='Blue'
[1h_03] 1-hop
Prompt: x=99. What is x?
Expected: ['99']
Got: ['', '', '', 'maha', 'aleigh', 'clonal'] (0.3s)
❌ got ['', '', '', 'maha', 'aleigh', 'clonal'], expected final='99'
[2h_01] 2-hop
Prompt: A=42. B=A. What is B?
Expected: ['42', '42']
Got: ['', '', 'C', 'sime', 'teasp', 'questionna'] (0.3s)
❌ got ['', '', 'C', 'sime', 'teasp', 'questionna'], expected final='42'
[2h_02] 2-hop
Prompt: X=Moon. Y=X. What is Y?
Expected: ['Moon', 'Moon']
Got: ['', '', 'and', 'sime', 'questionna', 'questionna'] (0.3s)
❌ got ['', '', 'and', 'sime', 'questionna', 'questionna'], expected final='Moon'
[2h_03] 2-hop
Prompt: The sky is blue. alpha=77. beta=alpha. What is beta?
Expected: ['77', '77']
Got: ['', '', 'and', 'sime', 'sime', 'clonal'] (0.3s)
❌ got ['', '', 'and', 'sime', 'sime', 'clonal'], expected final='77'
[3h_01] 3-hop
Prompt: A=Star. B=A. C=B. What is C?
Expected: ['Star', 'Star', 'Star']
Got: ['', '', 'and', 'sime', 'questionna', 'questionna'] (0.3s)
❌ got ['', '', 'and', 'sime', 'questionna', 'questionna'], expected final='Star'
[3h_02] 3-hop
Prompt: v1=55. v2=v1. v3=v2. What is v3?
Expected: ['55', '55', '55']
Got: ['', '', 'and', 'maha', 'teasp', 'teasp'] (0.3s)
❌ got ['', '', 'and', 'maha', 'teasp', 'teasp'], expected final='55'
[3h_adv_01] 3-hop-adversarial
Prompt: zx=Fire. Water boils at 100C. zy=zx. zz=zy. Pi is 3.14159. What is zz?
Expected: ['Fire', 'Fire', 'Fire']
Got: ['', '', 'and', 'sime', 'questionna', 'questionna'] (0.3s)
❌ got ['', '', 'and', 'sime', 'questionna', 'questionna'], expected final='Fire'
[3h_adv_02] 3-hop-adversarial
Prompt: ab=Gold. cd=ab. ef=cd. In 1969 Armstrong walked on moon. xk9=77. What is ef?
Expected: ['Gold', 'Gold', 'Gold']
Got: ['', '', 'the', 'maha', 'questionna', 'questionna'] (0.3s)
❌ got ['', '', 'the', 'maha', 'questionna', 'questionna'], expected final='Gold'
[ma_01] math-1step
Prompt: qty=6. price=0.50. cost=qty*price. What is cost?
Expected: ['3.00']
Got: ['', '', 'and', 'typen', 'sime', 'the'] (0.3s)
❌ got ['', '', 'and', 'typen', 'sime', 'the'], expected final='3.00'
[ma_02] math-1step
Prompt: apples=4. price=1.25. total=apples*price. What is total?
Expected: ['5.00']
Got: ['', '', 'and', 'typen', 'clonal', 'the'] (0.3s)
❌ got ['', '', 'and', 'typen', 'clonal', 'the'], expected final='5.00'
[ma_03] math-1step
Prompt: students=30. pct=0.60. girls=students*pct. What is girls?
Expected: ['18']
Got: ['', '', 'and', 'maha', 'maha', 'territory'] (0.3s)
❌ got ['', '', 'and', 'maha', 'maha', 'territory'], expected final='18'
[ma_04] math-2step
Prompt: a=6. pa=0.50. ca=a*pa. b=4. pb=0.75. cb=b*pb. total=ca+cb. What is total?
Expected: ['3.00', '3.00', '6.00']
Got: ['', '', 'and', 'maha', 'maha', 'clonal'] (0.3s)
❌ got ['', '', 'and', 'maha', 'maha', 'clonal'], expected final='6.00'
[sq_01] sequence
Prompt: x1=2. x2=x1*3. x3=x2*3. x4=x3*3. What is x5?
Expected: ['162']
Got: ['', '', 'and', 'sime', 'clonal', '_)'] (0.3s)
❌ got ['', '', 'and', 'sime', 'clonal', '_)'], expected final='162'
[sq_02] sequence
Prompt: x1=1. x2=x1*2. x3=x2*2. x4=x3*2. What is x5?
Expected: ['16']
Got: ['', '', 'and', 'sime', 'clonal', '_)'] (0.3s)
❌ got ['', '', 'and', 'sime', 'clonal', '_)'], expected final='16'
[sq_03] sequence
Prompt: x1=0. x2=x1+5. x3=x2+5. x4=x3+5. What is x5?
Expected: ['20']
Got: ['', '', 'and', 'sime', 'clonal', 'clonal'] (0.3s)
❌ got ['', '', 'and', 'sime', 'clonal', 'clonal'], expected final='20'
[sq_04] sequence
Prompt: n1=1. n2=1. n3=n1+n2. n4=n2+n3. n5=n3+n4. What is n6?
Expected: ['13']
Got: ['', '', 'and', 'sime', 'clonal', 'clonal'] (0.3s)
❌ got ['', '', 'and', 'sime', 'clonal', 'clonal'], expected final='13'
[bf_01] bug-fix
Prompt: op=minus. fix=plus. expr=a op b. What is the fixed expr?
Expected: ['a plus b']
Got: ['', '', 'and', 'maha', 'sime', 'firm'] (0.3s)
❌ got ['', '', 'and', 'maha', 'sime', 'firm'], expected final='a plus b'
[bf_02] bug-fix
Prompt: bug=return b. fix=return a. code has bug. What is the fix?
Expected: ['return a']
Got: ['', '', 'and', 'maha', 'clonal', 'the'] (0.3s)
❌ got ['', '', 'and', 'maha', 'clonal', 'the'], expected final='return a'
=================================================================
RESULTS BY CATEGORY
=================================================================
Category Pass Total Rate
--------------------------------------------
1-hop 0 3 0%
2-hop 0 3 0%
3-hop 0 2 0%
3-hop-adversarial 0 2 0%
bug-fix 0 2 0%
math-1step 0 3 0%
math-2step 0 1 0%
sequence 0 4 0%
--------------------------------------------
TOTAL 0 20 0%
❌ RLF NOT YET WORKING — may need Phase 3b longer
=================================================================
=======================================
PHASE 2: Extended Benchmark (54 tests)
=======================================
[run_env] LD_PRELOAD set for NCCL + nvJitLink
[run_env] Launching: /home/phil/.local/share/mise/installs/python/3.14.3/bin/python rlf_benchmark.py
Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
=================================================================
RLF EXTENDED BENCHMARK — Mamba-1.4B (54 tests)
Checkpoint: /hdd_data/rlf-1.4b-checkpoints/final
=================================================================
Loading base: state-spaces/mamba-1.4b
Loaded SFT lm_head from /hdd_data/latent-spacer-checkpoints/best
Building RLF engine...
LoRA params: 3,145,728
Loop engine: 13,219,840
Prefix memory: 16,384 (8 × 2048)
Latent bridge: 262,144 (2048→64→2048)
Total trainable: 150,245,376
Base frozen: 634,601,472
HALT token: 7803 (§)
[cg_01] Code Gen: Write a Python function that reverses a string....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_02] Code Gen: Write a Python function called factorial that returns n...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def factorial'
→ Missing: 'return'
''
[cg_03] Code Gen: Write a Python function that checks if a number is prim...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_04] Code Gen: Write a Python class called Stack with push, pop, and i...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class Stack'
→ Missing: 'def push'
→ Missing: 'def pop'
''
[cg_05] Code Gen: Write a Python function that merges two sorted lists in...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_06] Code Gen: Write a Python function that flattens a nested list....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_07] Code Gen: Write a Python function that counts word frequencies in...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_08] Code Gen: Write a Python decorator that logs function calls with ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
→ Missing: 'wrapper'
''
[cg_09] Code Gen (Complex): Write a Python class called LRUCache with get and put m...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class LRUCache'
→ Missing: 'def get'
→ Missing: 'def put'
''
[cg_10] Code Gen (Complex): Write a Python function that implements quicksort....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_11] Code Gen (Complex): Write a Python context manager class called Timer that ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class Timer'
→ Missing: '__enter__'
→ Missing: '__exit__'
''
[cg_12] Code Gen (Complex): Write a Python generator function that yields Fibonacci...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'yield'
''
[cg_13] Code Gen (Complex): Write a Python function that performs matrix multiplica...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_14] Code Gen (Complex): Write a Python class called BinarySearchTree with inser...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class BinarySearchTree'
→ Missing: 'def insert'
→ Missing: 'def search'
''
[al_01] Algorithm: Write a Python function that implements binary search o...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'mid'
→ Missing: 'return'
''
[al_02] Algorithm: Write a Python function that implements bubble sort....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'for '
→ Missing: 'return'
''
[al_03] Algorithm: Write a Python function that returns the nth Fibonacci ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[al_04] Algorithm: Write a Python function that implements merge sort....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ds_01] Data Structures: Write a Python function that reverses a linked list. As...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'next'
→ Missing: 'return'
''
[ds_02] Data Structures: Write a Python function that checks if a binary tree is...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ds_03] Data Structures: Write a Python function that finds the height of a bina...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ds_04] Data Structures: Write a Python function using a queue (collections.dequ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'deque'
→ Missing: 'return'
''
[st_01] Strings: Write a Python function that checks if a string is a pa...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[st_02] Strings: Write a Python function that finds the longest common p...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[st_03] Strings: Write a Python function that counts the number of vowel...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[st_04] Strings: Write a Python function that checks if two strings are ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ma_01] Math: What is 12 multiplied by 7?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['84']
''
[ma_02] Math: What is 144 divided by 12?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['12']
''
[ma_03] Math: What is the square root of 256?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['16']
''
[ma_04] Math: What is 25% of 200?...
❌ | 5tok | 2.9t/s | rep=0.00
→ Missing one of: ['50']
'- uc . 2 n'
[ma_05] Math: What is 17 multiplied by 13?...
❌ | 3tok | 2.6t/s | rep=0.00
→ Missing one of: ['221']
'- is a'
[ma_06] Math: What is the square root of 625?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['25']
''
[ma_07] Math: What is 15% of 80?...
❌ | 3tok | 2.6t/s | rep=0.00
→ Missing one of: ['12']
'- a lex'
[ma_08] Math: What is 2 to the power of 8?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['256']
''
[wp_01] Word Problem: A car travels at 60 mph for 2.5 hours. How many miles d...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['150']
''
[wp_02] Word Problem: A class has 30 students. 60% are girls. How many boys a...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['12']
''
[wp_03] Word Problem: A store sells apples for $0.50 each. Sarah buys 14 appl...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['7', '$7']
''
[wp_04] Word Problem: A rectangle has length 15 cm and width 8 cm. What is it...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['120']
''
[wp_05] Word Problem: If a pizza is cut into 8 equal slices and you eat 3 sli...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['37.5', '37%', '3/8']
''
[wp_06] Word Problem: A train travels 240 miles in 4 hours. What is its speed...
❌ | 5tok | 3.0t/s | rep=0.00
→ Missing one of: ['60']
'n . dv clonal clonal'
[bf_01] Bug Fix: Fix this Python code:
def add(a, b):
return a - b...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['return a + b']
''
[bf_02] Bug Fix: Fix this Python code:
def is_even(n):
return n % 2 ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['n % 2 == 0', '% 2 == 0']
''
[bf_03] Bug Fix: Fix the off-by-one error:
def last_element(lst):
re...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['len(lst) - 1', 'lst[-1]']
''
[bf_04] Bug Fix: Fix this Python code:
def square(x):
return x + x...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['return x * x', 'x**2']
''
[bf_05] Bug Fix: Fix this Python code:
def max_of_two(a, b):
if a > ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['return a']
''
[cc_01] Completion: Complete this Python function:
def count_evens(lst):
...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'return'
→ Missing one of: ['% 2']
''
[cc_02] Completion: Complete this Python function:
def find_max(lst):
"...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'return'
''
[cc_03] Completion: Complete this Python function:
def flatten(nested):
...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'result'
→ Missing: 'return result'
→ Missing one of: ['append', 'extend', 'for']
''
[lg_01] Logic: What is the next number in the sequence: 2, 6, 18, 54, ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['162']
''
[lg_02] Logic: What is the next number in the sequence: 1, 4, 9, 16, ?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['25']
''
[lg_03] Logic: If it takes 5 machines 5 minutes to make 5 widgets, how...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['5 minute', '5 min', 'same', '5m']
''
[lg_04] Logic: What is the next number in the sequence: 1, 1, 2, 3, 5,...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['13']
''
[ut_01] Unit Tests: Write a Python unittest class that tests a function cal...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'import unittest'
→ Missing: 'def test_'
→ Missing: 'assertEqual'
''
[ut_02] Unit Tests: Write pytest test functions that test is_prime(n) for p...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def test_'
→ Missing: 'assert'
''
=================================================================
RESULTS SUMMARY
=================================================================
Category Pass Total Rate
--------------------------------------------------
Algorithm 0 4 0%
Bug Fix 0 5 0%
Code Gen 0 8 0%
Code Gen (Complex) 0 6 0%
Completion 0 3 0%
Data Structures 0 4 0%
Logic 0 4 0%
Math 0 8 0%
Strings 0 4 0%
Unit Tests 0 2 0%
Word Problem 0 6 0%
--------------------------------------------------
TOTAL (required) 0 54 0%
Avg throughput : 0.2 tok/s
Avg bigram rep : 0.000
=================================================================
Full report: /home/phil/.gemini/antigravity/scratch/tiny-refinement/rlf_benchmark_report.json
vs R5 SFT Baseline:
Category R5 RLF Δ
--------------------------------------------
Algorithm 75% 0% -75%
Bug Fix 20% 0% -20%
Code Gen 75% 0% -75%
Code Gen (Complex) 33% 0% -33%
Completion 67% 0% -67%
Data Structures 100% 0% -100%
Logic 0% 0% + 0%
Math 88% 0% -88%
Strings 100% 0% -100%
Unit Tests 0% 0% + 0%
Word Problem 17% 0% -17%
=======================================
AUTO-EVAL DONE — Mon Apr 27 08:29:08 PM CDT 2026
Results: /home/phil/.gemini/antigravity/scratch/tiny-refinement/rlf_eval.log
=======================================
========================================
RLF AUTO-EVAL — started Mon Apr 27 10:48:50 PM CDT 2026
========================================
[wait] Polling for training completion...
[wait] Training complete at Mon Apr 27 10:48:50 PM CDT 2026
=======================================
PHASE 1: RLF Chain Accuracy Test
=======================================
[run_env] LD_PRELOAD set for NCCL + nvJitLink
[run_env] Launching: /home/phil/.local/share/mise/installs/python/3.14.3/bin/python rlf_chain_test.py
Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
=================================================================
RLF VALIDATION — Mamba-1.4B
Checkpoint: /hdd_data/rlf-1.4b-checkpoints/final
Tests: Chain accuracy | Ablation | Semantic shift
=================================================================
Loading RLF model...
Loading base: state-spaces/mamba-1.4b
Loaded SFT lm_head from /hdd_data/latent-spacer-checkpoints/best
Building RLF engine...
LoRA params: 3,145,728
Loop engine: 13,219,840
Prefix memory: 16,384 (8 × 2048)
Latent bridge: 262,144 (2048→64→2048)
Total trainable: 150,245,376
Base frozen: 634,601,472
HALT token: 7803 (§)
=================================================================
TEST 1: CHAIN ACCURACY + LOOP COLLAPSE DETECTION (20 problems)
=================================================================
[1h_01] 1-hop
Prompt: A=42. What is A?
Expected: ['42']
Got: ['', '', 'the', 'sime', 'teasp', '��'] (3.4s) ❌ got ['', '', 'the', 'sime', 'teasp', '��'], expected final='42'
Loops: L1=''(0.728) L2=''(0.649) L3='the'(0.198) L4='sime'(0.483) L5='teasp'(0.939) L6='��'(0.506)
[1h_02] 1-hop
Prompt: color=Blue. What is color?
Expected: ['Blue']
Got: ['', '', 'and', 'typen', 'teasp', 'teasp'] (0.3s) ❌ got ['', '', 'and', 'typen', 'teasp', 'teasp'], expected final='Blue'
Loops: L1=''(0.200) L2=''(0.114) L3='and'(0.341) L4='typen'(0.978) L5='teasp'(0.992) L6='teasp'(0.952)
[1h_03] 1-hop
Prompt: x=99. What is x?
Expected: ['99']
Got: ['', '', '', 'maha', 'aleigh', 'clonal'] (0.3s) ❌ got ['', '', '', 'maha', 'aleigh', 'clonal'], expected final='99'
Loops: L1=''(0.999) L2=''(0.999) L3=''(0.982) L4='maha'(0.424) L5='aleigh'(0.511) L6='clonal'(0.900)
[2h_01] 2-hop
Prompt: A=42. B=A. What is B?
Expected: ['42', '42']
Got: ['', '', 'C', 'sime', 'teasp', 'questionna'] (0.3s) ❌ got ['', '', 'C', 'sime', 'teasp', 'questionna'], expected final='42'
Loops: L1=''(0.659) L2=''(0.624) L3='C'(0.380) L4='sime'(0.725) L5='teasp'(0.559) L6='questionna'(0.567)
[2h_02] 2-hop
Prompt: X=Moon. Y=X. What is Y?
Expected: ['Moon', 'Moon']
Got: ['', '', 'and', 'sime', 'questionna', 'questionna'] (0.3s) ❌ got ['', '', 'and', 'sime', 'questionna', 'questionna'], expected final='Moon'
Loops: L1=''(0.640) L2=''(0.736) L3='and'(0.336) L4='sime'(0.912) L5='questionna'(0.698) L6='questionna'(1.000)
[2h_03] 2-hop
Prompt: The sky is blue. alpha=77. beta=alpha. What is beta?
Expected: ['77', '77']
Got: ['', '', 'and', 'sime', 'sime', 'clonal'] (0.3s) ❌ got ['', '', 'and', 'sime', 'sime', 'clonal'], expected final='77'
Loops: L1=''(0.456) L2=''(0.477) L3='and'(0.453) L4='sime'(0.652) L5='sime'(0.449) L6='clonal'(0.792)
[3h_01] 3-hop
Prompt: A=Star. B=A. C=B. What is C?
Expected: ['Star', 'Star', 'Star']
Got: ['', '', 'and', 'sime', 'questionna', 'questionna'] (0.3s) ❌ got ['', '', 'and', 'sime', 'questionna', 'questionna'], expected final='Star'
Loops: L1=''(0.572) L2=''(0.545) L3='and'(0.288) L4='sime'(0.722) L5='questionna'(0.678) L6='questionna'(0.981)
[3h_02] 3-hop
Prompt: v1=55. v2=v1. v3=v2. What is v3?
Expected: ['55', '55', '55']
Got: ['', '', 'and', 'maha', 'teasp', 'teasp'] (0.3s) ❌ got ['', '', 'and', 'maha', 'teasp', 'teasp'], expected final='55'
Loops: L1=''(0.490) L2=''(0.546) L3='and'(0.473) L4='maha'(0.773) L5='teasp'(0.998) L6='teasp'(0.996)
[3h_adv_01] 3-hop-adversarial
Prompt: zx=Fire. Water boils at 100C. zy=zx. zz=zy. Pi is 3.14159. What is zz?
Expected: ['Fire', 'Fire', 'Fire']
Got: ['', '', 'and', 'sime', 'questionna', 'questionna'] (0.3s) ❌ got ['', '', 'and', 'sime', 'questionna', 'questionna'], expected final='Fire'
Loops: L1=''(0.538) L2=''(0.461) L3='and'(0.193) L4='sime'(0.835) L5='questionna'(1.000) L6='questionna'(1.000)
[3h_adv_02] 3-hop-adversarial
Prompt: ab=Gold. cd=ab. ef=cd. In 1969 Armstrong walked on moon. xk9=77. What is ef?
Expected: ['Gold', 'Gold', 'Gold']
Got: ['', '', 'the', 'maha', 'questionna', 'questionna'] (0.3s) ❌ got ['', '', 'the', 'maha', 'questionna', 'questionna'], expected final='Gold'
Loops: L1=''(0.317) L2=''(0.196) L3='the'(0.152) L4='maha'(0.913) L5='questionna'(0.924) L6='questionna'(0.983)
[ma_01] math-1step
Prompt: qty=6. price=0.50. cost=qty*price. What is cost?
Expected: ['3.00']
Got: ['', '', 'and', 'typen', 'sime', 'the'] (0.3s) ❌ got ['', '', 'and', 'typen', 'sime', 'the'], expected final='3.00'
Loops: L1=''(0.434) L2=''(0.391) L3='and'(0.430) L4='typen'(0.871) L5='sime'(0.484) L6='the'(0.378)
[ma_02] math-1step
Prompt: apples=4. price=1.25. total=apples*price. What is total?
Expected: ['5.00']
Got: ['', '', 'and', 'typen', 'clonal', 'the'] (0.3s) ❌ got ['', '', 'and', 'typen', 'clonal', 'the'], expected final='5.00'
Loops: L1=''(0.376) L2=''(0.343) L3='and'(0.389) L4='typen'(0.495) L5='clonal'(0.589) L6='the'(0.654)
[ma_03] math-1step
Prompt: students=30. pct=0.60. girls=students*pct. What is girls?
Expected: ['18']
Got: ['', '', 'and', 'maha', 'maha', 'territory'] (0.3s) ❌ got ['', '', 'and', 'maha', 'maha', 'territory'], expected final='18'
Loops: L1=''(0.334) L2=''(0.284) L3='and'(0.415) L4='maha'(0.650) L5='maha'(0.708) L6='territory'(0.538)
[ma_04] math-2step
Prompt: a=6. pa=0.50. ca=a*pa. b=4. pb=0.75. cb=b*pb. total=ca+cb. What is total?
Expected: ['3.00', '3.00', '6.00']
Got: ['', '', 'and', 'maha', 'maha', 'clonal'] (0.3s) ❌ got ['', '', 'and', 'maha', 'maha', 'clonal'], expected final='6.00'
Loops: L1=''(0.463) L2=''(0.441) L3='and'(0.346) L4='maha'(0.923) L5='maha'(0.551) L6='clonal'(0.411)
[sq_01] sequence
Prompt: x1=2. x2=x1*3. x3=x2*3. x4=x3*3. What is x5?
Expected: ['162']
Got: ['', '', 'and', 'sime', 'clonal', '_)'] (0.3s) ❌ got ['', '', 'and', 'sime', 'clonal', '_)'], expected final='162'
Loops: L1=''(0.624) L2=''(0.727) L3='and'(0.462) L4='sime'(0.887) L5='clonal'(0.914) L6='_)'(0.255)
[sq_02] sequence
Prompt: x1=1. x2=x1*2. x3=x2*2. x4=x3*2. What is x5?
Expected: ['16']
Got: ['', '', 'and', 'sime', 'clonal', '_)'] (0.3s) ❌ got ['', '', 'and', 'sime', 'clonal', '_)'], expected final='16'
Loops: L1=''(0.621) L2=''(0.729) L3='and'(0.512) L4='sime'(0.845) L5='clonal'(0.793) L6='_)'(0.217)
[sq_03] sequence
Prompt: x1=0. x2=x1+5. x3=x2+5. x4=x3+5. What is x5?
Expected: ['20']
Got: ['', '', 'and', 'sime', 'clonal', 'clonal'] (0.3s) ❌ got ['', '', 'and', 'sime', 'clonal', 'clonal'], expected final='20'
Loops: L1=''(0.612) L2=''(0.693) L3='and'(0.367) L4='sime'(0.895) L5='clonal'(0.963) L6='clonal'(0.456)
[sq_04] sequence
Prompt: n1=1. n2=1. n3=n1+n2. n4=n2+n3. n5=n3+n4. What is n6?
Expected: ['13']
Got: ['', '', 'and', 'sime', 'clonal', 'clonal'] (0.3s) ❌ got ['', '', 'and', 'sime', 'clonal', 'clonal'], expected final='13'
Loops: L1=''(0.598) L2=''(0.697) L3='and'(0.325) L4='sime'(0.828) L5='clonal'(0.977) L6='clonal'(0.796)
[bf_01] bug-fix
Prompt: op=minus. fix=plus. expr=a op b. What is the fixed expr?
Expected: ['a plus b']
Got: ['', '', 'and', 'maha', 'sime', 'firm'] (0.3s) ❌ got ['', '', 'and', 'maha', 'sime', 'firm'], expected final='a plus b'
Loops: L1=''(0.406) L2=''(0.434) L3='and'(0.671) L4='maha'(0.377) L5='sime'(0.373) L6='firm'(0.118)
[bf_02] bug-fix
Prompt: bug=return b. fix=return a. code has bug. What is the fix?
Expected: ['return a']
Got: ['', '', 'and', 'maha', 'clonal', 'the'] (0.3s) ❌ got ['', '', 'and', 'maha', 'clonal', 'the'], expected final='return a'
Loops: L1=''(0.365) L2=''(0.435) L3='and'(0.349) L4='maha'(0.664) L5='clonal'(0.823) L6='the'(0.131)
Category Pass Tot Rate
----------------------------------------
1-hop 0 3 0%
2-hop 0 3 0%
3-hop 0 2 0%
3-hop-adversarial 0 2 0%
bug-fix 0 2 0%
math-1step 0 3 0%
math-2step 0 1 0%
sequence 0 4 0%
----------------------------------------
TOTAL 0 20 0%
COLLAPSE ANALYSIS (ChatGPT concern #2):
Collapsed loops: 0/20 = 0%
Avg conf stdev: 0.2344
✅ LOW COLLAPSE — loops are doing different things
❌ RLF NOT WORKING — chain following failed
=================================================================
TEST 2: SCRATCHPAD ABLATION
(130M: ablated=2%, normal=2%, Δ=0 → scratchpad unused)
=================================================================
Run A (normal): 0/5 = 0%
Run B (zero scratchpad): 0/5 = 0%
Δ scratchpad contribution: +0 tests
❌ SCRATCHPAD UNUSED — matches 130M failure pattern (Δ=0)
=================================================================
TEST 3: SEMANTIC SHIFT (zero-shot syntax transfer)
(130M: 0.0% — predicted 'photograp' for all 50 samples)
=================================================================
❌ [0.3s] The box holds what the bag holds. The bag holds the apple. Wha...
Expected: apple Got: ['', 'The', '“', 'typen', 'teasp', '��']
❌ [0.3s] John's score equals Mary's score. Mary scored 88. What is John...
Expected: 88 Got: ['', '', '', 'JOHN', 'clonal', 'questionna']
❌ [0.3s] Container B has what container A has. Container C has what con...
Expected: key Got: ['', 'The', 'the', 'somet', 'teasp', 'teasp']
❌ [0.3s] The red jar contains the same thing as the blue cup. The blue ...
Expected: frost Got: ['', '', '“', 'typen', 'questionna', 'questionna']
❌ [0.3s] Sarah earns twice what Tom earns. Tom earns 500. What does Sar...
Expected: 1000 Got: ['', '', '“', 'teasp', 'teasp', '��']
Semantic shift: 0/5 = 0%
❌ SYNTAX OVERFIT — matches 130M bAbI failure pattern (0%)
=================================================================
OVERALL VERDICT
=================================================================
Chain accuracy: 0% ❌
Scratchpad Δ: +0 ❌
Semantic shift: 0% ❌
=================================================================
=======================================
PHASE 2: Extended Benchmark (54 tests)
=======================================
[run_env] LD_PRELOAD set for NCCL + nvJitLink
[run_env] Launching: /home/phil/.local/share/mise/installs/python/3.14.3/bin/python rlf_benchmark.py
Warning: You are sending unauthenticated requests to the HF Hub. Please set a HF_TOKEN to enable higher rate limits and faster downloads.
=================================================================
RLF EXTENDED BENCHMARK — Mamba-1.4B (54 tests)
Checkpoint: /hdd_data/rlf-1.4b-checkpoints/final
=================================================================
Loading base: state-spaces/mamba-1.4b
Loaded SFT lm_head from /hdd_data/latent-spacer-checkpoints/best
Building RLF engine...
LoRA params: 3,145,728
Loop engine: 13,219,840
Prefix memory: 16,384 (8 × 2048)
Latent bridge: 262,144 (2048→64→2048)
Total trainable: 150,245,376
Base frozen: 634,601,472
HALT token: 7803 (§)
[cg_01] Code Gen: Write a Python function that reverses a string....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_02] Code Gen: Write a Python function called factorial that returns n...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def factorial'
→ Missing: 'return'
''
[cg_03] Code Gen: Write a Python function that checks if a number is prim...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_04] Code Gen: Write a Python class called Stack with push, pop, and i...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class Stack'
→ Missing: 'def push'
→ Missing: 'def pop'
''
[cg_05] Code Gen: Write a Python function that merges two sorted lists in...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_06] Code Gen: Write a Python function that flattens a nested list....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_07] Code Gen: Write a Python function that counts word frequencies in...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_08] Code Gen: Write a Python decorator that logs function calls with ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
→ Missing: 'wrapper'
''
[cg_09] Code Gen (Complex): Write a Python class called LRUCache with get and put m...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class LRUCache'
→ Missing: 'def get'
→ Missing: 'def put'
''
[cg_10] Code Gen (Complex): Write a Python function that implements quicksort....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_11] Code Gen (Complex): Write a Python context manager class called Timer that ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class Timer'
→ Missing: '__enter__'
→ Missing: '__exit__'
''
[cg_12] Code Gen (Complex): Write a Python generator function that yields Fibonacci...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'yield'
''
[cg_13] Code Gen (Complex): Write a Python function that performs matrix multiplica...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[cg_14] Code Gen (Complex): Write a Python class called BinarySearchTree with inser...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'class BinarySearchTree'
→ Missing: 'def insert'
→ Missing: 'def search'
''
[al_01] Algorithm: Write a Python function that implements binary search o...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'mid'
→ Missing: 'return'
''
[al_02] Algorithm: Write a Python function that implements bubble sort....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'for '
→ Missing: 'return'
''
[al_03] Algorithm: Write a Python function that returns the nth Fibonacci ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[al_04] Algorithm: Write a Python function that implements merge sort....
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ds_01] Data Structures: Write a Python function that reverses a linked list. As...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'next'
→ Missing: 'return'
''
[ds_02] Data Structures: Write a Python function that checks if a binary tree is...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ds_03] Data Structures: Write a Python function that finds the height of a bina...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ds_04] Data Structures: Write a Python function using a queue (collections.dequ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'deque'
→ Missing: 'return'
''
[st_01] Strings: Write a Python function that checks if a string is a pa...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[st_02] Strings: Write a Python function that finds the longest common p...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[st_03] Strings: Write a Python function that counts the number of vowel...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[st_04] Strings: Write a Python function that checks if two strings are ...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing: 'def '
→ Missing: 'return'
''
[ma_01] Math: What is 12 multiplied by 7?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['84']
''
[ma_02] Math: What is 144 divided by 12?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['12']
''
[ma_03] Math: What is the square root of 256?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['16']
''
[ma_04] Math: What is 25% of 200?...
❌ | 5tok | 2.8t/s | rep=0.00
→ Missing one of: ['50']
'- uc . 2 n'
[ma_05] Math: What is 17 multiplied by 13?...
❌ | 3tok | 2.4t/s | rep=0.00
→ Missing one of: ['221']
'- is a'
[ma_06] Math: What is the square root of 625?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['25']
''
[ma_07] Math: What is 15% of 80?...
❌ | 3tok | 2.5t/s | rep=0.00
→ Missing one of: ['12']
'- a lex'
[ma_08] Math: What is 2 to the power of 8?...
❌ | 0tok | 0.0t/s | rep=0.00
→ Missing one of: ['256']
''