okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
1fb3e9a32
main
1#!/usr/bin/env python3 2"""both.py URL OUT.json - armrun --loadcmd: the sustained closed-loop reference (this harness, W2 1k/128, c from BOTH_CONC, 6 rounds per client) 3followed by PAR-A's synchronized-burst loader (env PA_LOAD, 2 measured rounds after a warm round). Both read in one server start.""" 4import os ,subprocess ,sys 5here = os .path .dirname (os .path .abspath (__file__ )) 6sys .path .insert (0 ,os .path .join (here ,".." )) 7import par_load 8url ,out = sys .argv [1 ],sys .argv [2 ] 9conc = os .environ .get ("BOTH_CONC" ,"8,16,32" ) 10"### SUSTAINED (par_load.py, closed loop, rounds=6)" ,flush = True ) 11par_load .main ([url ,"--workload" ,"w2" ,"--conc" ,conc ,"--rounds" ,"6" ,"--max-tokens" ,"128" ,"--warm-requests" ,"2" , 12"--nonce" ,"sus" ,"--out" ,out + ".sustained.json" ]) 13"### BURST (PAR-A par_load.py, synchronized waves)" ,flush = True ) 14sys .stdout .flush () 15subprocess .run ([sys .executable ,os .environ ["PA_LOAD" ],url ,"--conc" ,conc ,"--rounds" ,"2" ,"--prompt-tokens" ,"1000" ,"--max-tokens" ,"128" , 16"--out" ,out + ".burst.json" ])