diff --git a/docs/CURRENT_SYSTEM.md b/docs/CURRENT_SYSTEM.md index de36ab5..28aa8f0 100644 --- a/docs/CURRENT_SYSTEM.md +++ b/docs/CURRENT_SYSTEM.md @@ -18,6 +18,10 @@ vollständige Antwort und unterbindet keine neuen Client-Anfragen. IQ3-Single-Profil wieder geladen, API-Test und CPU-Vision bestanden; Profile, Kontext-/Slot- und ausgewählte persistente Einstellungen erhalten. [Release, Installation, Tests und Grenzen](experiments/strata-0.1.45-2026-10-17.md). +Der anschließende [Dual-Slot-Optionsvergleich](experiments/strata-dual-0.1.45-2026-10-17/README.md) +zeigte im kontrollierten Kurztest keinen erkennbaren Gewinn durch die sechs +neuen Mehrbenutzer-Schalter; sie bleiben produktiv aus. SSD-Druck beim langen +Einlesen besteht fort. Das vorherige IQ3-Single-Profil wurde regulär wieder geladen. Das separat vorbereitete MP3-Update ist weiterhin nicht aktiviert und muss vor einer späteren Aktivierung auf die neue Strata-App-Version aufgesetzt werden. diff --git a/docs/experiments/strata-dual-0.1.45-2026-10-17/README.md b/docs/experiments/strata-dual-0.1.45-2026-10-17/README.md new file mode 100644 index 0000000..902a1c4 --- /dev/null +++ b/docs/experiments/strata-dual-0.1.45-2026-10-17/README.md @@ -0,0 +1,133 @@ +# Dual-slot recheck on Strata 0.1.45 — 17 October 2026 + +User requested repeating the previous serial-MTP versus pipeline comparison. +This is an isolated synthetic experiment, not a production profile change. + +- Official pinned engine 0.1.45, commit 477ac13cbe8e582c20484871ce459d20d82df09d. +- Existing IQ3_XXS weights, RTX 3060 / RTX 5080, layer split 16. +- Two slots, each 262144 context; int8 KV, 32768 resident KV window. +- Same saved synthetic fixtures and generation parameters as 14 October. +- Reference: two short solo/parallel repetitions, fresh and cached ~64K pair. + User then narrowed the test to new options; the started ~128K reference pair + was deliberately stopped and is not a result. +- Fixed 16-GiB resident expert allocation must be confirmed within 0.02 GiB; + each arm gets its own fresh 44-GiB/no-extra-swap, six-CPU test container. +- Scheduling arm A: `--batch-mtp --batch-groups 1`; arm B: `--batch-groups auto` + (explicit pipeline disables batch-MTP in the official engine). +- Reference has new opt-ins unset. Focused follow-ups enable these six official + flags together, each set to 1: `STRATA_SLOT_COPY_DIRECT`, + `STRATA_SLOT_COPY_BATCHSYNC`, `STRATA_CKPT_POOL`, `STRATA_CKPT_THREADS`, + `STRATA_BATCH_SELF_COMMIT`, `STRATA_QSA_SLOTS`. The experimental + `STRATA_SLOT_CKPT_MOVE` stays off. One short solo/parallel repetition and one + fresh/cached ~64K pair per follow-up; no ~128K repeat. Native loop guard is `stop`. +- Production mounts are read-only; only own experiment data writable. +- Service credentials are passed internally on stdin, not saved in the template + or documentation. No private chats or production log content is collected. +- No host, Deck, Hermes or OpenCode restart. Idle check, regular authenticated + GUI unload and GPU-free verification precede each arm. Regular API restoration + reloads the previous IQ3 single profile unless newer activity intervenes. + +The fixed-budget ~64K cases can be compared with the previous controlled +16-GiB series. Previous ~128K measurements used automatic budgets and are +historical context, not a controlled release-to-release comparison. Fresh +cgroups avoid carried-over accounting; no global cache flush is performed, +so physical disk-cache state and test order remain limitations. + +Status: measurements complete; final restoration evidence is recorded below. + +The initial reference completed six cases before the deliberate scope change. +The launcher restored the previous profile normally after stopping only the own +test container. No partial ~128K timing may be reported as a completed case. +Fresh 0.1.45 serial reference: ~64K pair 212.0 s / 188.3 GiB disk reads; +cached follow-up pair 19.6 s / 3.5 GiB. These are individual measurements. + +## Memory-allocation gate and narrowed follow-up + +The first six reference cases at 16.00 GiB are valid. After regular restoration, +two fresh option-enabled starts were clamped to 7.97 GiB (serial) and 8.40 GiB +(pipeline), respectively. Both failed the pre-measurement equality gate and +provide **no speed result**. No claim that flags caused this allocation change +is justified: startup/cgroup/file-cache state varies. Technical process-name/RSS +checks found no surviving own benchmark engine; no process command lines or +private logs were collected. + +Do not disable the safety guard or claim a 16-vs-8 comparison. A narrowed +short-request A/B uses separate fresh cgroups, the same serial-MTP scheduling +and a confirmed 7.00-GiB expert budget in both arms. Only the six flags differ. +The option-enabled arm also runs one 64K cold/cached pair to observe behaviour; +there is no matched 7-GiB long baseline, so it cannot establish those flags' +causal effect on long-context performance. The old 16-GiB and automatic-budget +long measurements remain separately labeled historical context. + +Both GPUs reserve 1024 MiB in the saved test recipe, unchanged from the old +experiment. This affects expert-cache capacity and potentially disk traffic; +GPU reserve tuning is not part of this flag comparison. + +## Results and decision + +Short controlled A/B, 0.1.45, serial-MTP scheduling, 7.00 GiB experts in +both arms. Backend decode rates are distinct from end-to-end throughput. + +| Case | Default flags | Six opt-in flags | +| --- | ---: | ---: | +| Solo backend output tok/s | 44.8 | 39.6 | +| Two requests: backend output tok/s per request | 30.5 / 32.6 | 30.5 / 31.5 | +| Solo wall time, 512 output tokens | 12.98 s | 14.68 s | +| Pair wall time, 1024 output tokens total | 17.90 s | 18.08 s | + +One ordered measurement per condition, no forced physical cache flush. The +observed parallel wall-time difference is about 1%; this does not demonstrate +a speedup or establish a statistically significant regression. Solo variability +and startup/cache differences preclude a precise general percentage. + +Option-enabled 7-GiB long observation: two fresh ~64K prompts took 273.2 s, +223.6 GiB physical engine reads, 31.8% full memory PSI. Their following turns +took 18.1 s, 4.9 GiB reads; both reused their prefix (65,771 / 65,773 tokens). +There is no matched default-flags 7-GiB long observation. Do not attribute its +slower cold read versus the 16-GiB reference to the new flags. + +The 16-GiB serial reference on 0.1.45 was similar to the old controlled 0.1.43.1 +case: fresh ~64K pair 212.0 vs 201.1 s, 188.3 vs 182.1 GiB reads; next turns +19.6 vs 21.7 s. These are individual runs at different dates/cache states, not +a precise release regression claim. SSD pressure remains reproducible. + +Do not enable these six flags in production on this evidence. Production +profiles, memory limits and GPU reserve settings remain unchanged. Pipeline +with the new flags has no valid measurement because its requested expert +budget was clamped before the test; no performance claim is made for it. +No own output-identity test was performed; this is a resource/speed comparison, +not a quality or correctness benchmark. + +The saved launcher requires an existing service token on stdin, for example +`{"key":""}`; never save a real +credential in this document or its test template. `TEST_RUN`, `TEST_ARMS`, +`TEST_RESIDENT_GIB`, `TEST_REPETITIONS`, `TEST_TARGETS`, `TEST_LONG`, and +`TEST_OPT` select the documented isolated cases. `TEST_OPT=1` enables exactly +the six named flags. The unchanged synthetic fixture generation uses seed +20261014; inputs can be regenerated by the benchmark's `fixture` function. + +The launcher is for the current optional Docker deployment. The benchmark +itself runs on the native runtime with equivalent configured paths/resources; +a native full fresh-host restore has not been retested here. + +## Verified restoration + +`final-restore.json` records regular HTTP 200 restoration of the previous +`flash-next-strata-iq3` single-slot profile, loop guard `stop`, none of the six +test flags enabled in the production worker, and no remaining own test +containers. The regular Deck status then reported `ready`, zero active requests. +The earlier deliberately stopped reference is clearly labeled incomplete for +its ~128K case. Failed pre-measurement budget checks are retained as failures, +not discarded or represented as speed results. + +[All numerical cases and technical budget evidence](results.json) · +[Final restoration proof](final-restore.json). + +For reproduction, use a sanitized copy of the saved dual worker template: +remove the real `api_key`, retain local model/pack/projector paths and the +recorded args/environment, set `parallel=2`, and save `base-template.json` +under the configured stage. Store only the previous model identifier in +`previous-model.json`; the launcher reloads that identifier through the normal +endpoint. The test replaces its own API key with a synthetic isolated value. +Never commit an unfiltered live worker config. Update the allowlisted run +names and stage paths for a new experiment instead of overwriting these runs. diff --git a/docs/experiments/strata-dual-0.1.45-2026-10-17/benchmark.py b/docs/experiments/strata-dual-0.1.45-2026-10-17/benchmark.py new file mode 100644 index 0000000..b4c7023 --- /dev/null +++ b/docs/experiments/strata-dual-0.1.45-2026-10-17/benchmark.py @@ -0,0 +1,188 @@ +"""Isolated, synthetic serial-MTP versus pipelined dual-slot comparison.""" +import concurrent.futures, copy, json, os, pathlib, random, re, signal +import socket, subprocess, threading, time, urllib.request +P = pathlib.Path +ROOT = P('/experiment') +SOURCE = P('/var/lib/deck/strata-runtime/source') +MODEL = 'synthetic-batch-ab' +KEY = 'synthetic-isolated-batch-test' +RESULTS = [] + +def save(phase, **extra): + ROOT.mkdir(exist_ok=True) + p = ROOT/'status.tmp' + p.write_text(json.dumps(dict(phase=phase, completed=len(RESULTS), updated=time.time(), **extra))) + p.replace(ROOT/'status.json') + (ROOT/'results.json').write_text(json.dumps(RESULTS, indent=2)) + +def http(base, route, data=None, timeout=900): + req = urllib.request.Request(base+route, data=json.dumps(data).encode() if data is not None else None, + headers={'Authorization':'Bearer '+KEY, 'Content-Type':'application/json'}) + return urllib.request.urlopen(req, timeout=timeout) + +def numeric(): + cg=P('/sys/fs/cgroup') + stat=dict((k,int(v)) for k,v in (x.split() for x in (cg/'memory.stat').read_text().splitlines())) + events=dict((k,int(v)) for k,v in (x.split() for x in (cg/'memory.events').read_text().splitlines())) + io=0; ticks=0 + for p in P('/proc').glob('[0-9]*'): + try: + if (p/'comm').read_text().strip()!='strata': continue + st=(p/'stat').read_text().rsplit(')',1)[1].split() + ticks+=int(st[11])+int(st[12]) + io+=int(dict(x.split(':') for x in (p/'io').read_text().splitlines())['read_bytes']) + except (OSError,ValueError): pass + pressure={x.split()[0]:int(re.search(r'total=(\d+)',x).group(1)) for x in (cg/'memory.pressure').read_text().splitlines()} + return dict(at=time.monotonic(), memory=int((cg/'memory.current').read_text()), read_bytes=io, + cpu_ticks=ticks, refault=stat.get('workingset_refault_file',0), major_fault=stat.get('pgmajfault',0), + max_events=events.get('max',0), oom=events.get('oom',0), oom_kill=events.get('oom_kill',0), pressure=pressure) + +class Sampler: + def __init__(self,base): self.base=base; self.rows=[]; self.stop=threading.Event() + def run(self): + while not self.stop.is_set(): + try: + r=numeric() + with http(self.base,'/slots',timeout=3) as response: + r['processing_slots']=sum(bool(x.get('is_processing')) for x in json.load(response)) + if len(self.rows)%5==0: + raw=subprocess.check_output(['nvidia-smi','--query-gpu=index,utilization.gpu,memory.used','--format=csv,noheader,nounits'],text=True,timeout=8) + r['gpus']=[[float(v.strip()) for v in line.split(',')] for line in raw.splitlines()] + self.rows.append(r) + except (OSError,ValueError): pass + self.stop.wait(1) + +def generate(base,messages,limit=512): + body=dict(model=MODEL,messages=messages,max_tokens=limit,reasoning_effort='none', + temperature=0,top_p=1,top_k=0,seed=42,stream=True,stream_options={'include_usage':True}) + start=time.monotonic(); first=None; content=''; usage={}; timings={}; finish=None; done=False + with http(base,'/v1/chat/completions',body) as response: + for line in response: + if not line.startswith(b'data:'): continue + raw=line[5:].strip() + if raw==b'[DONE]': done=True; break + v=json.loads(raw) + if 'error' in v: raise RuntimeError('Synthetic stream returned an error') + usage=v.get('usage') or usage + timings=v.get('timings') or v.get('backend_timings') or timings + for choice in v.get('choices',[]): + text=choice.get('delta',{}).get('content') or '' + if text and first is None: first=time.monotonic() + content+=text + finish=choice.get('finish_reason') or finish + if not done: raise RuntimeError('Synthetic stream ended without DONE') + return dict(wall_seconds=time.monotonic()-start,ttft_seconds=first-start if first else None, + usage=usage,backend_timings=timings,finish_reason=finish,_content=content) + +def fixture(base,target,client): + path=ROOT/f'fixture-{target}-{client}.json' + if path.exists(): return json.loads(path.read_text()) + system=f'Messung Kontext {target}, Gespräch {client}. Antworte auf Deutsch. Schreibe mindestens 1200 Wörter über '+('Home-Assistant-Automatisierungen.' if client else 'zuverlässige Datensicherung.') + def count(text): + with http(base,'/v1/messages/count_tokens',dict(model=MODEL,system=system,messages=[dict(role='user',content=text)]),120) as r: + return json.load(r)['input_tokens'] + rng=random.Random(20261014+client) + rows=[f'Datensatz {i:06d}: Standort {rng.randrange(10000):04d}, Messwert {rng.randrange(100000000,999999999)}, Status archiviert.\n' for i in range(target//10+300)] + per=(count(''.join(rows[:100]))-count(''))/100 + n=int((target-count(''))/per) + for _ in range(6): + text=''.join(rows[:n])+'\nFühre jetzt die ausführliche Schreibaufgabe aus.' + actual=count(text); delta=target-actual + if abs(delta)<64: break + n=max(1,n+int(delta/per)) + if abs(actual-target)>128: raise RuntimeError('Tokenizer calibration failed') + value=[dict(role='system',content=system),dict(role='user',content=text)] + path.write_text(json.dumps(value)); return value + +def measure(base,arm,case,messages,limit=512): + save('measuring',arm=arm,case=case) + before=numeric(); sampler=Sampler(base); thread=threading.Thread(target=sampler.run,daemon=True);thread.start() + start=time.monotonic() + try: + if len(messages)==1: rows=[generate(base,messages[0],limit)] + else: + barrier=threading.Barrier(len(messages)) + def one(m): barrier.wait(); return generate(base,m,limit) + with concurrent.futures.ThreadPoolExecutor(max_workers=len(messages)) as pool: rows=list(pool.map(one,messages)) + finally: + sampler.stop.set();thread.join(5) + elapsed=time.monotonic()-start; after=numeric(); peak=max([before['memory'],after['memory']]+[r['memory'] for r in sampler.rows]) + res=dict(arm=arm,case=case,requests=len(messages),wall_seconds=elapsed, + aggregate_output_tok_s=sum(r['usage'].get('completion_tokens',0) for r in rows)/elapsed, + rows=[{k:v for k,v in r.items() if k!='_content'} for r in rows], + resources=dict(peak_memory_gib=peak/2**30,read_gib=(after['read_bytes']-before['read_bytes'])/2**30, + read_mib_s=(after['read_bytes']-before['read_bytes'])/elapsed/2**20, + refaults=after['refault']-before['refault'],major_faults=after['major_fault']-before['major_fault'], + limit_events=after['max_events']-before['max_events'],oom_kill_delta=after['oom_kill']-before['oom_kill'], + cpu_cores=(after['cpu_ticks']-before['cpu_ticks'])/os.sysconf('SC_CLK_TCK')/elapsed, + pressure_full_percent=(after['pressure']['full']-before['pressure']['full'])/elapsed/10000, + peak_processing_slots=max([0]+[r.get('processing_slots',0) for r in sampler.rows]))) + gpu_rows=[g for r in sampler.rows for g in r.get('gpus',[])] + res['resources']['gpu_samples']={str(int(i)):dict(mean_utilization=sum(g[1] for g in gpu_rows if g[0]==i)/sum(g[0]==i for g in gpu_rows),peak_memory_mib=max(g[2] for g in gpu_rows if g[0]==i)) for i in {g[0] for g in gpu_rows}} + RESULTS.append(res);save('measured',arm=arm,case=case) + return rows + +def run(): + baseline=json.loads(P('/test/base-template.json').read_text()) + baseline.pop('previous_model',None) + if os.environ.get('TEST_OPT')=='1': + baseline.setdefault('env',{}).update({k:'1' for k in ('STRATA_SLOT_COPY_DIRECT','STRATA_SLOT_COPY_BATCHSYNC','STRATA_CKPT_POOL','STRATA_CKPT_THREADS','STRATA_BATCH_SELF_COMMIT','STRATA_QSA_SLOTS')}) + for arm,group in [('serial_mtp','1'),('pipeline','auto')]: + if arm not in os.environ.get('TEST_ARMS','serial_mtp,pipeline').split(','):continue + cfg=copy.deepcopy(baseline); args=cfg['args'] + if '--batch-groups' in args: + i=args.index('--batch-groups');del args[i:i+2] + args+=['--batch-groups',group] + if os.environ.get('TEST_RESIDENT_GIB'): + if '--resident-budget-gib' in args: + i=args.index('--resident-budget-gib');del args[i:i+2] + args+=['--resident-budget-gib',os.environ['TEST_RESIDENT_GIB']] + with socket.socket() as s:s.bind(('127.0.0.1',0));port=s.getsockname()[1] + cfg.update(api_key=KEY,port=port,host='127.0.0.1',model_name=MODEL,open_browser=False,log=str(ROOT/f'engine-{arm}.log')) + path=ROOT/f'config-{arm}.json';path.write_text(json.dumps(cfg));path.chmod(0o600) + base=f'http://127.0.0.1:{port}'; proc=None + env=dict(os.environ,**cfg.get('env',{}),PYTHONUNBUFFERED='1',PYTHONDONTWRITEBYTECODE='1') + env['LD_LIBRARY_PATH']='/var/lib/deck/strata-runtime/cuda/lib64:/var/lib/deck/strata-runtime/cuda/lib:'+env.get('LD_LIBRARY_PATH','') + try: + save('loading',arm=arm) + with (ROOT/f'server-{arm}.log').open('w') as log: + proc=subprocess.Popen([str(SOURCE/'.venv/bin/python'),str(SOURCE/'serve/server.py'),'--engine','strata','--config',str(path),'--host','127.0.0.1','--port',str(port),'--fit-max-tokens'],cwd=SOURCE,env=env,stdout=log,stderr=subprocess.STDOUT,start_new_session=True) + end=time.monotonic()+600 + while time.monotonic()0.02: + raise RuntimeError('Controlled expert budget was clamped; do not compare unequal allocations') + for rep in range(int(os.environ.get('TEST_REPETITIONS','2'))): + msgs=[[dict(role='system',content=f'Kurzmessung {rep}, Gespräch {i}. Schreibe auf Deutsch.'),dict(role='user',content='Schreibe einen ausführlichen Fachtext mit mindestens 1200 Wörtern über '+('Home Assistant.' if i else 'Datensicherung.'))] for i in range(2)] + measure(base,arm,f'solo-short-{rep}',[msgs[0]]) + msgs[0][0]['content']+=' Parallele Messung.' + measure(base,arm,f'parallel-short-{rep}',msgs) + for target in (map(int,os.environ.get('TEST_TARGETS','65536,131072').split(',')) if os.environ.get('TEST_LONG','1')=='1' else []): + save('calibrating',arm=arm,target=target) + msgs=[fixture(base,target,i) for i in range(2)] + first=measure(base,arm,f'parallel-cold-{target}',msgs,256) + follow=[m+[dict(role='assistant',content=r['_content']),dict(role='user',content='Führe den Fachtext mit mindestens 1200 weiteren Wörtern fort.')] for m,r in zip(msgs,first)] + measure(base,arm,f'parallel-cached-{target}',follow,512) + finally: + if proc and proc.poll() is None: + os.killpg(proc.pid,signal.SIGTERM) + try:proc.wait(30) + except subprocess.TimeoutExpired:os.killpg(proc.pid,signal.SIGKILL);proc.wait() + path.unlink(missing_ok=True) + save('complete') + +if __name__=='__main__': + try:run() + except BaseException as e:save('failed',error_type=type(e).__name__);raise diff --git a/docs/experiments/strata-dual-0.1.45-2026-10-17/final-restore.json b/docs/experiments/strata-dual-0.1.45-2026-10-17/final-restore.json new file mode 100644 index 0000000..68c130b --- /dev/null +++ b/docs/experiments/strata-dual-0.1.45-2026-10-17/final-restore.json @@ -0,0 +1,19 @@ +{ + "launcher-status.json": { + "phase": "finished", + "updated": 1792261780.5427582, + "restored": true, + "model": "flash-next-strata-iq3" + }, + "restore.json": { + "http_status": 200, + "model": "flash-next-strata-iq3" + }, + "production_worker": { + "model": "flash-next-strata-iq3", + "parallel": 1, + "loop_guard": "stop", + "tested_flags_enabled": {} + }, + "remaining_own_test_containers": [] +} diff --git a/docs/experiments/strata-dual-0.1.45-2026-10-17/launch.py b/docs/experiments/strata-dual-0.1.45-2026-10-17/launch.py new file mode 100644 index 0000000..3dec7a4 --- /dev/null +++ b/docs/experiments/strata-dual-0.1.45-2026-10-17/launch.py @@ -0,0 +1,52 @@ +"""Athena host launcher: regular GUI unload first, isolated test, regular API restore.""" +import json,os,pathlib,subprocess,time,urllib.request +P=pathlib.Path +STAGE=P('/opt/athena-deck-dev/batch-ab-20261017') +RUN=os.environ['TEST_RUN'] +if RUN not in ('strata-dual-045-serial-20261017','strata-dual-045-pipeline-20261017','strata-dual-045-optserial-20261017','strata-dual-045-optpipe-20261017','strata-dual-045-base7-20261017','strata-dual-045-opt7-20261017'): + raise ValueError('Unknown isolated test directory') +OUT=P('/data/experiments')/RUN +import sys +TOKEN=json.load(sys.stdin)['key'] +def credentials():return TOKEN +def request(path,data=None): + req=urllib.request.Request('http://127.0.0.1:'+('8120' if path.startswith('/v1/') else '8108')+path, + data=json.dumps(data).encode() if data is not None else None, + headers={'Authorization':'Bearer '+credentials(),'Content-Type':'application/json'}) + with urllib.request.urlopen(req,timeout=600) as r:return r.status,json.load(r) +def mark(phase,**extra): + p=OUT/'launcher.tmp';p.write_text(json.dumps(dict(phase=phase,updated=time.time(),**extra)));p.replace(OUT/'launcher-status.json') +def main(): + _,s=request('/api/v1/status') + if s['endpoint']['active_requests'] or s['endpoint']['counts']['llm']['loaded']: + raise RuntimeError('Regularly unload idle Deck LLM first') + g=subprocess.check_output(['nvidia-smi','--query-compute-apps=pid','--format=csv,noheader,nounits'],text=True).strip() + if g and 'No running processes' not in g:raise RuntimeError('GPU processes still present; no test started') + d=json.loads(subprocess.check_output(['docker','inspect','athena-deck-dev']))[0] + args=['docker','run','--rm','--name','athena-'+RUN,'--gpus','all', + '--user','65534:65534','--read-only','--cap-drop','ALL','--security-opt','no-new-privileges:true', + '--memory','44g','--memory-swap','44g','--cpus','6','--network','none', + '--tmpfs','/tmp:rw,nosuid,nodev,size=512m','-e','HOME=/experiment/home', + '-e','PYTHONDONTWRITEBYTECODE=1','-e','NVIDIA_DRIVER_CAPABILITIES=compute,utility','--entrypoint','python3'] + for name in ('TEST_LONG','TEST_OPT','TEST_RESIDENT_GIB','TEST_REPETITIONS','TEST_TARGETS','TEST_ARMS'): + if name in os.environ:args+=['-e',name+'='+os.environ[name]] + for m in d['Mounts']: + if m['Type']=='bind' and (m['Destination']=='/var/lib/deck' or 'strata' in m['Destination']): + args+=['--mount',f"type=bind,src={m['Source']},dst={m['Destination']},readonly"] + args+=['--mount',f'type=bind,src={STAGE},dst=/test,readonly','--mount',f'type=bind,src={OUT},dst=/experiment',d['Config']['Image'],'/test/benchmark.py'] + try: + mark('running') + with (OUT/'container-test.log').open('w') as f:r=subprocess.run(args,stdout=f,stderr=subprocess.STDOUT) + mark('test_complete' if r.returncode==0 else 'test_failed',exit_code=r.returncode) + finally: + _,s=request('/api/v1/status');e=s['endpoint'] + if e['active_requests'] or e['counts']['llm']['loaded']: + mark('restore_skipped_new_activity') + else: + previous=json.loads((STAGE/'previous-model.json').read_text())['model'] + status,_=request('/v1/chat/completions',dict(model=previous,messages=[dict(role='user',content='OK')],max_tokens=1,reasoning_effort='none')) + (OUT/'restore.json').write_text(json.dumps(dict(http_status=status,model=previous))) + mark('finished',restored=status==200,model=previous) +if __name__=='__main__': + try:main() + except BaseException as e:mark('launcher_failed',error_type=type(e).__name__);raise diff --git a/docs/experiments/strata-dual-0.1.45-2026-10-17/results.json b/docs/experiments/strata-dual-0.1.45-2026-10-17/results.json new file mode 100644 index 0000000..7ab7092 --- /dev/null +++ b/docs/experiments/strata-dual-0.1.45-2026-10-17/results.json @@ -0,0 +1,1012 @@ +{ + "serial": { + "results.json": [ + { + "arm": "serial_mtp", + "case": "solo-short-0", + "requests": 1, + "wall_seconds": 11.152181026001927, + "aggregate_output_tok_s": 45.91030210200531, + "rows": [ + { + "wall_seconds": 11.152097999991383, + "ttft_seconds": 1.045916254981421, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 1018.9, + "prompt_per_token_ms": 18.195, + "prompt_per_second": 55.0, + "predicted_n": 512, + "predicted_ms": 10129.4, + "predicted_per_token_ms": 19.784, + "predicted_per_second": 50.5, + "draft_n": 303, + "draft_n_accepted": 179 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 37.787994384765625, + "read_gib": 4.062507629394531, + "read_mib_s": 373.02190511440875, + "refaults": 0, + "major_faults": 28802, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 5.4114975231562905, + "pressure_full_percent": 0.022865482492209675, + "peak_processing_slots": 0, + "gpu_samples": { + "0": { + "mean_utilization": 30.333333333333332, + "peak_memory_mib": 11249.0 + }, + "1": { + "mean_utilization": 30.0, + "peak_memory_mib": 15550.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-short-0", + "requests": 2, + "wall_seconds": 16.849251806008397, + "aggregate_output_tok_s": 60.774211922860836, + "rows": [ + { + "wall_seconds": 16.847321220993763, + "ttft_seconds": 0.9804630609869491, + "usage": { + "prompt_tokens": 61, + "completion_tokens": 512, + "total_tokens": 573, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 61, + "prompt_ms": 949.6, + "prompt_per_token_ms": 15.567, + "prompt_per_second": 64.2, + "predicted_n": 512, + "predicted_ms": 15720.5, + "predicted_per_token_ms": 30.704, + "predicted_per_second": 32.6, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 16.49276848201407, + "ttft_seconds": 1.9805380490142852, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 730.8, + "prompt_per_token_ms": 13.05, + "prompt_per_second": 76.6, + "predicted_n": 512, + "predicted_ms": 14376.0, + "predicted_per_token_ms": 28.078, + "predicted_per_second": 35.6, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 41.148372650146484, + "read_gib": 3.1644363403320312, + "read_mib_s": 192.31612476374104, + "refaults": 0, + "major_faults": 22146, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 5.491638505099916, + "pressure_full_percent": 0.0, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 28.0, + "peak_memory_mib": 11255.0 + }, + "1": { + "mean_utilization": 61.5, + "peak_memory_mib": 15556.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "solo-short-1", + "requests": 1, + "wall_seconds": 9.072406917985063, + "aggregate_output_tok_s": 56.4348584260496, + "rows": [ + { + "wall_seconds": 9.072338800993748, + "ttft_seconds": 0.9064592569775414, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 876.8, + "prompt_per_token_ms": 15.657, + "prompt_per_second": 63.9, + "predicted_n": 512, + "predicted_ms": 8191.8, + "predicted_per_token_ms": 16.0, + "predicted_per_second": 62.5, + "draft_n": 316, + "draft_n_accepted": 198 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 42.656105041503906, + "read_gib": 1.5322074890136719, + "read_mib_s": 172.93982544363902, + "refaults": 0, + "major_faults": 11181, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 5.6478948159194955, + "pressure_full_percent": 0.0, + "peak_processing_slots": 0, + "gpu_samples": { + "0": { + "mean_utilization": 37.0, + "peak_memory_mib": 11261.0 + }, + "1": { + "mean_utilization": 55.5, + "peak_memory_mib": 15562.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-short-1", + "requests": 2, + "wall_seconds": 15.186968616995728, + "aggregate_output_tok_s": 67.42622743383049, + "rows": [ + { + "wall_seconds": 15.186370073992293, + "ttft_seconds": 1.6211704739835113, + "usage": { + "prompt_tokens": 61, + "completion_tokens": 512, + "total_tokens": 573, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 61, + "prompt_ms": 605.5, + "prompt_per_token_ms": 9.926, + "prompt_per_second": 100.7, + "predicted_n": 512, + "predicted_ms": 13474.2, + "predicted_per_token_ms": 26.317, + "predicted_per_second": 38.0, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 15.119819612998981, + "ttft_seconds": 0.7821292789885774, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 757.8, + "prompt_per_token_ms": 13.532, + "prompt_per_second": 73.9, + "predicted_n": 512, + "predicted_ms": 14244.6, + "predicted_per_token_ms": 27.821, + "predicted_per_second": 35.9, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 43.114112854003906, + "read_gib": 2.0381546020507812, + "read_mib_s": 137.42507574318424, + "refaults": 0, + "major_faults": 14140, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 5.636411199546767, + "pressure_full_percent": 1.9753777568505025e-05, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 36.25, + "peak_memory_mib": 11273.0 + }, + "1": { + "mean_utilization": 56.25, + "peak_memory_mib": 15574.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-cold-65536", + "requests": 2, + "wall_seconds": 212.04548201398575, + "aggregate_output_tok_s": 2.4145763217262526, + "rows": [ + { + "wall_seconds": 114.25138862401946, + "ttft_seconds": 80.00184370300849, + "usage": { + "prompt_tokens": 65515, + "completion_tokens": 256, + "total_tokens": 65771, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 65515, + "prompt_ms": 79845.5, + "prompt_per_token_ms": 1.219, + "prompt_per_second": 820.5, + "predicted_n": 256, + "predicted_ms": 33380.6, + "predicted_per_token_ms": 130.393, + "predicted_per_second": 7.7, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 212.04493979702238, + "ttft_seconds": 205.80457205601851, + "usage": { + "prompt_tokens": 65518, + "completion_tokens": 256, + "total_tokens": 65774, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 65518, + "prompt_ms": 124780.7, + "prompt_per_token_ms": 1.905, + "prompt_per_second": 525.1, + "predicted_n": 256, + "predicted_ms": 4541.8, + "predicted_per_token_ms": 17.741, + "predicted_per_second": 56.4, + "draft_n": 157, + "draft_n_accepted": 94 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 44.0, + "read_gib": 188.33319473266602, + "read_mib_s": 909.4897451931096, + "refaults": 46802101, + "major_faults": 875440, + "limit_events": 101312, + "oom_kill_delta": 0, + "cpu_cores": 1.3150009014651334, + "pressure_full_percent": 29.12351935700609, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 31.19047619047619, + "peak_memory_mib": 11313.0 + }, + "1": { + "mean_utilization": 19.857142857142858, + "peak_memory_mib": 15632.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-cached-65536", + "requests": 2, + "wall_seconds": 19.610417635005433, + "aggregate_output_tok_s": 52.217143921102235, + "rows": [ + { + "wall_seconds": 19.471822252991842, + "ttft_seconds": 2.7681370099890046, + "usage": { + "prompt_tokens": 65804, + "completion_tokens": 512, + "total_tokens": 66316, + "prompt_tokens_details": { + "cached_tokens": 65770 + } + }, + "backend_timings": { + "cache_n": 65770, + "prompt_n": 34, + "prompt_ms": 1150.9, + "prompt_per_token_ms": 33.85, + "prompt_per_second": 29.5, + "predicted_n": 512, + "predicted_ms": 15927.5, + "predicted_per_token_ms": 31.108, + "predicted_per_second": 32.1, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 19.609997516992735, + "ttft_seconds": 0.6591859740146901, + "usage": { + "prompt_tokens": 65807, + "completion_tokens": 512, + "total_tokens": 66319, + "prompt_tokens_details": { + "cached_tokens": 65773 + } + }, + "backend_timings": { + "cache_n": 65773, + "prompt_n": 34, + "prompt_ms": 605.5, + "prompt_per_token_ms": 17.809, + "prompt_per_second": 56.2, + "predicted_n": 512, + "predicted_ms": 18132.1, + "predicted_per_token_ms": 35.414, + "predicted_per_second": 28.2, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 43.99993896484375, + "read_gib": 3.4650306701660156, + "read_mib_s": 180.93400519509217, + "refaults": 660514, + "major_faults": 26357, + "limit_events": 1327, + "oom_kill_delta": 0, + "cpu_cores": 4.996323985732029, + "pressure_full_percent": 1.0586872950089645, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 37.75, + "peak_memory_mib": 11319.0 + }, + "1": { + "mean_utilization": 58.5, + "peak_memory_mib": 15640.0 + } + } + } + } + ], + "status.json": { + "phase": "measuring", + "completed": 6, + "updated": 1792260704.5360482, + "arm": "serial_mtp", + "case": "parallel-cold-131072" + }, + "launcher-status.json": { + "phase": "finished", + "updated": 1792260788.83357, + "restored": true, + "model": "flash-next-strata-iq3" + }, + "restore.json": { + "http_status": 200, + "model": "flash-next-strata-iq3" + }, + "technical_memory_lines": [ + "strata generate: --batch-mtp: 2 slot drafters on CUDA1 (50 MiB of private K/V state and buffers each, sharing the solo drafter's weights); 9.59 GiB free there", + "FileExpertSource: the split stages lend 4678 slots to the prompt path: 0 keep their experts in RAM too (0.00 GiB) (the rest are read from the file when lent: not enough RAM for them)", + "strata generate: resident RAM mode: 16.00 GiB of experts in RAM (page-locked), 5866 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)" + ] + }, + "optserial": { + "results.json": [], + "status.json": { + "phase": "failed", + "completed": 0, + "updated": 1792260868.109746, + "error_type": "RuntimeError" + }, + "launcher-status.json": { + "phase": "finished", + "updated": 1792260911.1387277, + "restored": true, + "model": "flash-next-strata-iq3" + }, + "restore.json": { + "http_status": 200, + "model": "flash-next-strata-iq3" + }, + "technical_memory_lines": [ + "strata generate: --batch-mtp: 2 slot drafters on CUDA1 (50 MiB of private K/V state and buffers each, sharing the solo drafter's weights); 9.59 GiB free there", + "FileExpertSource: --resident-budget-gib 16.00 exceeds available RAM (14.22 GiB minus 6 GiB headroom and a 0.25 GiB margin): 7.97 GiB", + "FileExpertSource: the split stages lend 4678 slots to the prompt path: 0 keep their experts in RAM too (0.00 GiB) (the rest are read from the file when lent: not enough RAM for them)", + "strata generate: resident RAM mode: 7.97 GiB of experts in RAM (page-locked), 5866 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)" + ] + }, + "optpipe": { + "results.json": [], + "status.json": { + "phase": "failed", + "completed": 0, + "updated": 1792261042.9313357, + "error_type": "RuntimeError" + }, + "launcher-status.json": { + "phase": "finished", + "updated": 1792261085.944877, + "restored": true, + "model": "flash-next-strata-iq3" + }, + "restore.json": { + "http_status": 200, + "model": "flash-next-strata-iq3" + }, + "technical_memory_lines": [ + "FileExpertSource: --resident-budget-gib 16.00 exceeds available RAM (14.65 GiB minus 6 GiB headroom and a 0.25 GiB margin): 8.40 GiB", + "FileExpertSource: the split stages lend 4681 slots to the prompt path: 0 keep their experts in RAM too (0.00 GiB) (the rest are read from the file when lent: not enough RAM for them)", + "strata generate: resident RAM mode: 8.40 GiB of experts in RAM (page-locked), 5866 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)" + ] + }, + "base7": { + "results.json": [ + { + "arm": "serial_mtp", + "case": "solo-short-0", + "requests": 1, + "wall_seconds": 12.981007209018571, + "aggregate_output_tok_s": 39.44223986288886, + "rows": [ + { + "wall_seconds": 12.980936554988148, + "ttft_seconds": 1.5945333679846954, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 1557.2, + "prompt_per_token_ms": 27.807, + "prompt_per_second": 36.0, + "predicted_n": 512, + "predicted_ms": 11419.1, + "predicted_per_token_ms": 22.303, + "predicted_per_second": 44.8, + "draft_n": 313, + "draft_n_accepted": 193 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 32.43168258666992, + "read_gib": 9.639991760253906, + "read_mib_s": 760.4457345684136, + "refaults": 0, + "major_faults": 62172, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 4.956472095270057, + "pressure_full_percent": 0.007457048474077427, + "peak_processing_slots": 0, + "gpu_samples": { + "0": { + "mean_utilization": 23.666666666666668, + "peak_memory_mib": 11231.0 + }, + "1": { + "mean_utilization": 42.0, + "peak_memory_mib": 15550.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-short-0", + "requests": 2, + "wall_seconds": 17.89505705499323, + "aggregate_output_tok_s": 57.22250545796806, + "rows": [ + { + "wall_seconds": 17.893130320007913, + "ttft_seconds": 0.9977070410095621, + "usage": { + "prompt_tokens": 61, + "completion_tokens": 512, + "total_tokens": 573, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 61, + "prompt_ms": 971.0, + "prompt_per_token_ms": 15.918, + "prompt_per_second": 62.8, + "predicted_n": 512, + "predicted_ms": 16775.4, + "predicted_per_token_ms": 32.764, + "predicted_per_second": 30.5, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 17.79333302102168, + "ttft_seconds": 1.9859673750179354, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 691.8, + "prompt_per_token_ms": 12.354, + "prompt_per_second": 80.9, + "predicted_n": 512, + "predicted_ms": 15695.6, + "predicted_per_token_ms": 30.655, + "predicted_per_second": 32.6, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 39.50020980834961, + "read_gib": 6.866973876953125, + "read_mib_s": 392.9454501536743, + "refaults": 8, + "major_faults": 45031, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 5.329404634303139, + "pressure_full_percent": 0.014814146676667318, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 34.0, + "peak_memory_mib": 11249.0 + }, + "1": { + "mean_utilization": 59.25, + "peak_memory_mib": 15568.0 + } + } + } + } + ], + "status.json": { + "phase": "complete", + "completed": 2, + "updated": 1792261233.6584253 + }, + "launcher-status.json": { + "phase": "finished", + "updated": 1792261280.8664284, + "restored": true, + "model": "flash-next-strata-iq3" + }, + "restore.json": { + "http_status": 200, + "model": "flash-next-strata-iq3" + }, + "technical_memory_lines": [ + "strata generate: --batch-mtp: 2 slot drafters on CUDA1 (50 MiB of private K/V state and buffers each, sharing the solo drafter's weights); 9.59 GiB free there", + "FileExpertSource: the split stages lend 4678 slots to the prompt path: 0 keep their experts in RAM too (0.00 GiB) (the rest are read from the file when lent: not enough RAM for them)", + "strata generate: resident RAM mode: 7.00 GiB of experts in RAM (page-locked), 5866 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)" + ] + }, + "opt7": { + "results.json": [ + { + "arm": "serial_mtp", + "case": "solo-short-0", + "requests": 1, + "wall_seconds": 14.676847700990038, + "aggregate_output_tok_s": 34.88487517421487, + "rows": [ + { + "wall_seconds": 14.676776287000393, + "ttft_seconds": 1.7732114699902013, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 1734.8, + "prompt_per_token_ms": 30.979, + "prompt_per_second": 32.3, + "predicted_n": 512, + "predicted_ms": 12936.4, + "predicted_per_token_ms": 25.266, + "predicted_per_second": 39.6, + "draft_n": 313, + "draft_n_accepted": 193 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 34.33682632446289, + "read_gib": 9.638969421386719, + "read_mib_s": 672.5084901462997, + "refaults": 0, + "major_faults": 62127, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 4.961555879270169, + "pressure_full_percent": 0.0023983351682272725, + "peak_processing_slots": 0, + "gpu_samples": { + "0": { + "mean_utilization": 26.666666666666668, + "peak_memory_mib": 11231.0 + }, + "1": { + "mean_utilization": 37.333333333333336, + "peak_memory_mib": 15554.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-short-0", + "requests": 2, + "wall_seconds": 18.081473530008225, + "aggregate_output_tok_s": 56.63255255721043, + "rows": [ + { + "wall_seconds": 17.837451667001005, + "ttft_seconds": 1.0242298890079837, + "usage": { + "prompt_tokens": 61, + "completion_tokens": 512, + "total_tokens": 573, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 61, + "prompt_ms": 994.2, + "prompt_per_token_ms": 16.298, + "prompt_per_second": 61.4, + "predicted_n": 512, + "predicted_ms": 16792.8, + "predicted_per_token_ms": 32.798, + "predicted_per_second": 30.5, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 18.079683891992318, + "ttft_seconds": 1.81490601299447, + "usage": { + "prompt_tokens": 56, + "completion_tokens": 512, + "total_tokens": 568, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 56, + "prompt_ms": 658.5, + "prompt_per_token_ms": 11.759, + "prompt_per_second": 85.0, + "predicted_n": 512, + "predicted_ms": 16251.8, + "predicted_per_token_ms": 31.742, + "predicted_per_second": 31.5, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 40.981441497802734, + "read_gib": 6.443511962890625, + "read_mib_s": 364.9125298914175, + "refaults": 0, + "major_faults": 43123, + "limit_events": 0, + "oom_kill_delta": 0, + "cpu_cores": 5.400555426964452, + "pressure_full_percent": 0.0, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 31.75, + "peak_memory_mib": 11243.0 + }, + "1": { + "mean_utilization": 57.25, + "peak_memory_mib": 15564.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-cold-65536", + "requests": 2, + "wall_seconds": 273.2168438259978, + "aggregate_output_tok_s": 1.8739693820856624, + "rows": [ + { + "wall_seconds": 273.21606482501375, + "ttft_seconds": 267.8228867430007, + "usage": { + "prompt_tokens": 65515, + "completion_tokens": 256, + "total_tokens": 65771, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 65515, + "prompt_ms": 146285.4, + "prompt_per_token_ms": 2.233, + "prompt_per_second": 447.9, + "predicted_n": 256, + "predicted_ms": 5080.9, + "predicted_per_token_ms": 19.847, + "predicted_per_second": 50.4, + "draft_n": 150, + "draft_n_accepted": 82 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 162.5573110859841, + "ttft_seconds": 121.1694260709919, + "usage": { + "prompt_tokens": 65518, + "completion_tokens": 256, + "total_tokens": 65774, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 65518, + "prompt_ms": 121008.7, + "prompt_per_token_ms": 1.847, + "prompt_per_second": 541.4, + "predicted_n": 256, + "predicted_ms": 41166.1, + "predicted_per_token_ms": 160.805, + "predicted_per_second": 6.2, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 44.0, + "read_gib": 223.5741958618164, + "read_mib_s": 837.9423953389339, + "refaults": 54977948, + "major_faults": 1251602, + "limit_events": 86353, + "oom_kill_delta": 0, + "cpu_cores": 1.2554496831039121, + "pressure_full_percent": 31.772283430403903, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 27.30909090909091, + "peak_memory_mib": 11293.0 + }, + "1": { + "mean_utilization": 16.70909090909091, + "peak_memory_mib": 15636.0 + } + } + } + }, + { + "arm": "serial_mtp", + "case": "parallel-cached-65536", + "requests": 2, + "wall_seconds": 18.05057185998885, + "aggregate_output_tok_s": 56.72950463524165, + "rows": [ + { + "wall_seconds": 17.6534137330018, + "ttft_seconds": 0.6092540179961361, + "usage": { + "prompt_tokens": 65804, + "completion_tokens": 512, + "total_tokens": 66316, + "prompt_tokens_details": { + "cached_tokens": 65771 + } + }, + "backend_timings": { + "cache_n": 65771, + "prompt_n": 33, + "prompt_ms": 560.7, + "prompt_per_token_ms": 16.991, + "prompt_per_second": 58.9, + "predicted_n": 512, + "predicted_ms": 16867.7, + "predicted_per_token_ms": 32.945, + "predicted_per_second": 30.4, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + }, + { + "wall_seconds": 18.050226691993885, + "ttft_seconds": 1.400379087019246, + "usage": { + "prompt_tokens": 65807, + "completion_tokens": 512, + "total_tokens": 66319, + "prompt_tokens_details": { + "cached_tokens": 65773 + } + }, + "backend_timings": { + "cache_n": 65773, + "prompt_n": 34, + "prompt_ms": 488.5, + "prompt_per_token_ms": 14.368, + "prompt_per_second": 69.6, + "predicted_n": 512, + "predicted_ms": 16518.4, + "predicted_per_token_ms": 32.263, + "predicted_per_second": 31.0, + "draft_n": 0, + "draft_n_accepted": 0 + }, + "finish_reason": "length" + } + ], + "resources": { + "peak_memory_gib": 43.999961853027344, + "read_gib": 4.92724609375, + "read_mib_s": 279.52023011436694, + "refaults": 985559, + "major_faults": 41161, + "limit_events": 2468, + "oom_kill_delta": 0, + "cpu_cores": 5.366034979462409, + "pressure_full_percent": 3.735488300482113, + "peak_processing_slots": 2, + "gpu_samples": { + "0": { + "mean_utilization": 34.5, + "peak_memory_mib": 11293.0 + }, + "1": { + "mean_utilization": 61.5, + "peak_memory_mib": 15636.0 + } + } + } + } + ], + "status.json": { + "phase": "complete", + "completed": 4, + "updated": 1792261711.3179688 + }, + "launcher-status.json": { + "phase": "test_complete", + "updated": 1792261711.5626335, + "exit_code": 0 + }, + "technical_memory_lines": [ + "strata generate: --batch-mtp: 2 slot drafters on CUDA1 (50 MiB of private K/V state and buffers each, sharing the solo drafter's weights); 9.59 GiB free there", + "FileExpertSource: the split stages lend 4678 slots to the prompt path: 0 keep their experts in RAM too (0.00 GiB) (the rest are read from the file when lent: not enough RAM for them)", + "strata generate: resident RAM mode: 7.00 GiB of experts in RAM (page-locked), 5866 in the GPU cache; adaptive swaps exchange them with the GPU cache (no file reads)" + ] + } +}