Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omega-tool-model/blob/main/pilot/evaluate_all.py # omega-tool-model First-party Omega tool-use model source, serving harnesses, and verification records Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omega-tool-model / pilot / evaluate_all.py` 25 lines ยท 1450 bytes Raw Blame History 1 """Held-out coverage extension, registered before trained results were observed.""" 2 from pathlib import Path 3 import json,os,subprocess,time 4 from check_behavior import check 5 R=Path(__file__).parent 6 assert os.environ.get('SPARK_WINDOW') 7 selected=json.loads((R/'selection.json').read_text())['selected']['checkpoint'] 8 merges='$HOME/handoffs/omega-llm-`20261101`/v1-data/merges4096.bin' 9 rows=json.loads((R/'data/test.json').read_text()) 10 out=[] 11 for i,row in enumerate(rows): 12 label=f'coverage-{i:03}' 13 args=[str(R/'build/sample'),selected,'128',row['prompt'],merges] 14 start=time.time() 15 p=subprocess.run(args,capture_output=True,timeout=90) 16 (R/f'receipts/{label}.txt').write_bytes(p.stdout) 17 assert p.returncode==0,(i,p.stderr) 18 raw=p.stdout.decode() 19 item={'index':i,'kind':row['kind'],'prompt':row['prompt'],'expected':row['answer'],'raw_output':raw,'argv':args,'rc':p.returncode,'start':start,'end':time.time()} 20 item.update(check(raw,row,label));out.append(item) 21 (R/'coverage-progress.json').write_text(json.dumps(out,indent=2)) 22 if (i+1)%20==0:print(f'{i+1}/{len(rows)} checked',flush=True) 23 summary={k:{'pass':sum(x['pass'] for x in out if x['kind']==k),'total':sum(x['kind']==k for x in out)} for k in sorted({x['kind'] for x in out})} 24 (R/'coverage.json').write_text(json.dumps({'summary':summary,'rows':out,'total_pass':sum(x['pass'] for x in out),'total':len(out)},indent=2)) 25 print(json.dumps(summary),flush=True)