Measure half-filled 512K single and dual Strata profiles with physical read counters
This commit is contained in:
1 parent
2332a45a4b
commit
4665bb201a
15 files changed
+700
No files matched your search
@@ -1,3 +1,13 @@
|
||||
## Half-context profile comparison · 20 October 2026 (latest measurement)
|
||||
|
||||
Production API, unchanged CPU8/RAM59/GPU reserves1024 each. 512K with262112input:
|
||||
60.9 output tok/s, first token142.37s, physical reads4.96GiB. Normal256K with131072
|
||||
input:69.8tok/s, first token64.82s, reads1.26GiB. Dual131072/131075input:10.2/60.5
|
||||
backend tok/s, first tokens72.12/187.71s, pair198.28s, reads8.89GiB. Shared schedule
|
||||
makes per-request rates uneven; do not sum them. Dual reaches59GiB cap,273 max
|
||||
events, no OOM. Previous single profile restored HTTP200; no service restart.
|
||||
[Results, definitions, exact fixtures and reproduction](experiments/strata-half-context-2026-10-20/README.md).
|
||||
|
||||
## Strata resource tuning · 20 October 2026 (latest)
|
||||
|
||||
Current Deck budget: **59 GiB memory and memory+swap, CPU quota8**. Updated live
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
# Half-context profile comparison · 20 October 2026
|
||||
|
||||
User requested current tokens/second and drive reads for the existing512K,
|
||||
normal256K and dual profiles, approximately half filled rather than short prompts.
|
||||
No million-token profile was created.
|
||||
|
||||
## Method
|
||||
|
||||
Production API, existing Strata0.1.45 IQ3_XXS profiles; Deck59GiB, CPU quota8,
|
||||
1024MiB GPU reserves. TTS/STT remain loaded. One fresh synthetic request per
|
||||
single-slot profile and two simultaneous requests for dual. Target input sizes
|
||||
262144 for512K and131072 for normal256K and **each** dual slot. Actual API usage
|
||||
is authoritative; output limit512 per request, seed42, temperature0, no reasoning.
|
||||
Synthetic archived-record input followed by a German long-form writing task.
|
||||
|
||||
The first attempt stopped before timing: Deck's public router returns404 for
|
||||
`/v1/messages/count_tokens`. The script was corrected to call the existing local
|
||||
Strata worker's own counting route with its configured internal identity; no
|
||||
application change or dependency installation. The original profile was restored
|
||||
successfully after that attempt. Tokenizer calibration calls do not generate
|
||||
model answers. Each measured arm follows a one-token activation request so model
|
||||
startup time/reads are excluded. No extra cached follow-up measured.
|
||||
|
||||
Backend `predicted_per_second` is generation speed. Whole-request output tokens
|
||||
per second includes prefill; neither should be confused with the other's rate.
|
||||
For dual report both per-request decode rates and aggregate whole-pair throughput.
|
||||
Read GiB and MiB/s are delta `/proc/<strata-pid>/io` read_bytes, **physical engine
|
||||
reads charged by Linux**, not logical expert demand or whole-machine disk traffic.
|
||||
Page-cache hits do not increase this counter. Warm file-cache/order effects remain;
|
||||
no cache flush, randomization or statistical replication. Model switches affect
|
||||
cache state. These are workload examples, not full-context capacity guarantees.
|
||||
|
||||
## Results
|
||||
|
||||
Each output is512 tokens. Average read rate covers the complete measured request
|
||||
(prefill plus decoding), not just decoding. Model load reads/time are excluded.
|
||||
|
||||
| Profile | Actual input tokens | Backend generation tok/s | First token seconds | Total seconds | Physical reads GiB | Average MiB/s |
|
||||
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
||||
| 512K | 262112 | 60.9 | 142.37 | 150.76 | 4.962 | 33.70 |
|
||||
| Normal256K | 131072 | 69.8 | 64.82 | 72.13 | 1.255 | 17.82 |
|
||||
| Dual request0 | 131072 | 10.2 | 72.12 | 123.95 | shared | shared |
|
||||
| Dual request1 | 131075 | 60.5 | 187.71 | 198.28 | shared | shared |
|
||||
| Dual pair total | 262147 | see requests | — | 198.28 | 8.891 | 45.92 |
|
||||
|
||||
The512K request achieves1844.4 prompt tokens/s and normal256K2028.2 prompt tokens/s.
|
||||
Whole-request output throughput is3.40 and7.10 tokens/s respectively. This reflects
|
||||
fresh long-prompt processing and should not be read as ordinary cached-chat speed.
|
||||
|
||||
Dual pair whole-request output throughput is **5.164 tokens/s** (1024 output tokens
|
||||
in198.28s); do not sum10.2+60.5 and label it simultaneous aggregate decode speed.
|
||||
The per-request backend timings reflect shared-engine scheduling: request0 had
|
||||
no draft tokens, request1 had285 (174 accepted). The second request's113.958s
|
||||
reported prefill does not include all of its187.705s client first-token wait.
|
||||
Neither request represents an uncontended steady-state per-slot speed.
|
||||
|
||||
Peak Deck cgroup memory:512K55.09GiB, normal50.36GiB, dual59.00GiB. Dual records
|
||||
273 memory-max events; the single cases record0. All have0 OOM kills. Host
|
||||
MemAvailable alone does not rule out cgroup memory pressure. The dual resource
|
||||
pressure counters in results.json are authoritative. Large simultaneous inputs
|
||||
remain a weaker case; do not generalize this to short/cached chats or claim a
|
||||
randomized causal comparison. No output quality/identity scoring performed.
|
||||
|
||||
The previous `flash-next-strata-iq3` single profile was restored HTTP200 after all
|
||||
measurements. Final state is checked separately, including TTS/STT loaded, CPU8,
|
||||
RAM59 and container start time predating the whole test. No restart or setting
|
||||
change. Compressed synthetic fixtures plus fixtures-sha256.json allow exact prompt
|
||||
reuse; read measured prompt counts from results.json rather than assuming perfect
|
||||
agreement with the token-count endpoint (the dual second input differs by3tokens).
|
||||
|
||||
## Persistence, reproduction and native restore
|
||||
|
||||
`benchmark.py` uses Python standard library, existing Strata tokenizer/server,
|
||||
Linux proc/cgroup-v2 and nvidia-smi. No additional services, images or model files.
|
||||
Current stage: `/opt/athena-deck-dev/runtime/state/strata-half-context-20261020`
|
||||
(host), `/var/lib/deck/strata-half-context-20261020` in Deck. Run with its existing
|
||||
service UID65534, key supplied as JSON on stdin through the configured secret
|
||||
store; never store/echo it. Script verifies idle API before each profile switch,
|
||||
then restores previous profile in finally when idle. Do not run during user work.
|
||||
Existing output/fixtures are reused by path; use a reviewed new stage for a fresh
|
||||
repeat and preserve exact fixtures if comparing prompts. No private chats or
|
||||
answer text are written to results. Worker settings archive arguments/environment
|
||||
only, never its internal API key. Model weights/state follow existing encrypted
|
||||
backup and pinned public-model restore recipes.
|
||||
|
||||
For native Debian restore, retain the documented pinned Strata/compiler/CUDA and
|
||||
NVIDIA driver installation, configured service user, state/runtime/tokenizer paths,
|
||||
59GiB cgroup budget/no extra swap and CPUQuota800%. TEST_STAGE/TEST_CGROUP_DIR must
|
||||
point at the actual native state/service cgroup. The current fixed loopback
|
||||
Deck/worker ports must match restored configuration. No new native dependency or
|
||||
application feature is introduced; fresh-host native E2E qualification remains open.
|
||||
This production API test does not establish a complete restore. No restart, CPU,
|
||||
RAM, model/profile setting or GPU change is required for the comparison.
|
||||
@@ -0,0 +1,169 @@
|
||||
"""Saved synthetic fixtures measured through the normal Athena API."""
|
||||
import concurrent.futures, copy, json, os, pathlib, random, re, signal
|
||||
import socket, subprocess, threading, time, urllib.request
|
||||
P = pathlib.Path
|
||||
ROOT = P(os.environ.get('TEST_STAGE','/var/lib/deck/strata-half-context-20261020'))
|
||||
SOURCE = P('/var/lib/deck/strata-runtime/source')
|
||||
MODEL = 'flash-next-strata-iq3-dual'
|
||||
import sys
|
||||
KEY = json.load(sys.stdin)['key']
|
||||
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=2400):
|
||||
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(os.environ.get('TEST_CGROUP_DIR','/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('http://127.0.0.1:8108','/api/v1/status',timeout=3) as response:
|
||||
r['processing_slots']=json.load(response)['endpoint']['active_requests']
|
||||
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):
|
||||
# The public Deck router does not forward token counting. Use the already
|
||||
# running local Strata worker's own tokenizer route; never save its key.
|
||||
cfg=json.loads((ROOT.parent/'strata-worker/worker.json').read_text())
|
||||
body=dict(model=MODEL,system=system,messages=[dict(role='user',content=text)])
|
||||
req=urllib.request.Request('http://127.0.0.1:'+str(cfg['port'])+'/v1/messages/count_tokens',data=json.dumps(body).encode(),headers={'Authorization':'Bearer '+cfg['api_key'],'Content-Type':'application/json'})
|
||||
with urllib.request.urlopen(req,timeout=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_admitted_requests=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 settings():
|
||||
c=json.loads((ROOT.parent/'strata-worker/worker.json').read_text())
|
||||
text=(ROOT.parent/'strata-worker/engine.log').read_text(errors='replace')
|
||||
allocated=re.findall(r'resident RAM mode: ([0-9.]+) GiB of experts in RAM',text)
|
||||
return dict(model=c['model_name'],parallel=c.get('parallel'),args=c['args'],environment=c.get('env',{}),resident_expert_gib=[float(x) for x in allocated[-1:]],memory_max=(P(os.environ.get('TEST_CGROUP_DIR','/sys/fs/cgroup'))/'memory.max').read_text().strip(),cpu_max=(P(os.environ.get('TEST_CGROUP_DIR','/sys/fs/cgroup'))/'cpu.max').read_text().strip())
|
||||
|
||||
def run():
|
||||
global MODEL
|
||||
base='http://127.0.0.1:8120'
|
||||
ROOT.mkdir(exist_ok=True)
|
||||
before=json.loads((ROOT.parent/'strata-worker/worker.json').read_text())
|
||||
previous=before['model_name']
|
||||
with http('http://127.0.0.1:8108','/api/v1/status') as r:s=json.load(r)
|
||||
if s['endpoint']['active_requests']:raise RuntimeError('Production requests active')
|
||||
(ROOT/'previous-model.json').write_text(json.dumps({'model':previous}))
|
||||
try:
|
||||
for model,target,clients in [('flash-next-strata-iq3-512k',262144,1),('flash-next-strata-iq3',131072,1),('flash-next-strata-iq3-dual',131072,2)]:
|
||||
MODEL=model
|
||||
with http('http://127.0.0.1:8108','/api/v1/status') as r:s=json.load(r)
|
||||
if s['endpoint']['active_requests']:raise RuntimeError('New production activity')
|
||||
save('loading',model=model)
|
||||
with http(base,'/v1/chat/completions',dict(model=model,messages=[dict(role='user',content='OK')],max_tokens=1,reasoning_effort='none')) as r:json.load(r)
|
||||
(ROOT/(model+'-settings.json')).write_text(json.dumps(settings(),indent=2))
|
||||
save('calibrating',model=model,target=target)
|
||||
msgs=[fixture(base,target,i) for i in range(clients)]
|
||||
measure(base,model,'half-context-'+str(target),msgs,512)
|
||||
save('complete')
|
||||
finally:
|
||||
with http('http://127.0.0.1:8108','/api/v1/status') as r:s=json.load(r)
|
||||
if s['endpoint']['active_requests']:
|
||||
(ROOT/'restore.json').write_text(json.dumps(dict(restored=False,reason='new_activity')))
|
||||
else:
|
||||
with http(base,'/v1/chat/completions',dict(model=previous,messages=[dict(role='user',content='OK')],max_tokens=1,reasoning_effort='none')) as r:
|
||||
json.load(r);code=r.status
|
||||
(ROOT/'restore.json').write_text(json.dumps(dict(http_status=code,model=previous,restored=code==200)))
|
||||
if __name__=='__main__':
|
||||
try:run()
|
||||
except BaseException as e:save('failed',error_type=type(e).__name__);raise
|
||||
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"healthy": "healthy",
|
||||
"started_before_test": true,
|
||||
"cpu": 8.0,
|
||||
"memory_gib": 59.0,
|
||||
"memory_swap_gib": 59.0,
|
||||
"model": "flash-next-strata-iq3",
|
||||
"parallel": 1,
|
||||
"endpoint": {
|
||||
"state": "running",
|
||||
"port": 8120,
|
||||
"counts": {
|
||||
"llm": {
|
||||
"enabled": 12,
|
||||
"available": 12,
|
||||
"loaded": true,
|
||||
"supported": true
|
||||
},
|
||||
"image": {
|
||||
"enabled": 1,
|
||||
"available": 1,
|
||||
"loaded": false,
|
||||
"supported": true
|
||||
},
|
||||
"tts": {
|
||||
"enabled": 1,
|
||||
"available": 1,
|
||||
"loaded": true,
|
||||
"supported": true
|
||||
},
|
||||
"stt": {
|
||||
"enabled": 1,
|
||||
"available": 1,
|
||||
"loaded": true,
|
||||
"supported": true
|
||||
},
|
||||
"music": {
|
||||
"enabled": 2,
|
||||
"available": 2,
|
||||
"loaded": false,
|
||||
"supported": true
|
||||
},
|
||||
"voice": {
|
||||
"enabled": 1,
|
||||
"available": 1,
|
||||
"loaded": false,
|
||||
"supported": true
|
||||
}
|
||||
},
|
||||
"active_requests": 0
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"fixture-262144-0.json": "357f1feb92c9c639a1a3c91241124ee8ee950a3a67d93b30c3e204856afe4e02",
|
||||
"fixture-131072-1.json": "e0bf4a4232a24fec32c89f93921ecf947996b42216574396defdcf95ed52332f",
|
||||
"fixture-131072-0.json": "4674c4affea79476911cea1064889877f6aaa412ebeb00e7b6e5fff2b7809c96"
|
||||
}
|
||||
+58
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"model": "flash-next-strata-iq3-512k",
|
||||
"parallel": 1,
|
||||
"args": [
|
||||
"--pack",
|
||||
"/data/athena-deck-strata/packs/iq3_xxs",
|
||||
"--native",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/var/lib/deck/strata-runtime/source/data/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--mtp",
|
||||
"/data/athena-deck-strata/mtp/rt",
|
||||
"--max-context",
|
||||
"524288",
|
||||
"--kv",
|
||||
"int8",
|
||||
"--kv-resident",
|
||||
"32768",
|
||||
"--vram-reserve-mib",
|
||||
"1024",
|
||||
"--vram-reserve-later-mib",
|
||||
"1024",
|
||||
"--rope-scaling",
|
||||
"yarn",
|
||||
"--rope-scale",
|
||||
"2",
|
||||
"--pcie-frac",
|
||||
"0.35",
|
||||
"--spec-min-p",
|
||||
"0.70",
|
||||
"--adapt-every",
|
||||
"1",
|
||||
"--adapt-swaps",
|
||||
"80",
|
||||
"--adapt-decay",
|
||||
"0.97",
|
||||
"--resident-experts",
|
||||
"--vision"
|
||||
],
|
||||
"environment": {
|
||||
"STRATA_ROUTE_TAIL_SKIP": "0",
|
||||
"STRATA_RESIDENT_HEADROOM_GIB": "6",
|
||||
"STRATA_STAGE_TRIM": "1"
|
||||
},
|
||||
"resident_expert_gib": [
|
||||
24.88
|
||||
],
|
||||
"memory_max": "63350767616",
|
||||
"cpu_max": "800000 100000"
|
||||
}
|
||||
+57
@@ -0,0 +1,57 @@
|
||||
{
|
||||
"model": "flash-next-strata-iq3-dual",
|
||||
"parallel": 2,
|
||||
"args": [
|
||||
"--pack",
|
||||
"/data/athena-deck-strata/packs/iq3_xxs",
|
||||
"--native",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/var/lib/deck/strata-runtime/source/data/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--mtp",
|
||||
"/data/athena-deck-strata/mtp/rt",
|
||||
"--max-context",
|
||||
"262144",
|
||||
"--kv",
|
||||
"int8",
|
||||
"--kv-resident",
|
||||
"32768",
|
||||
"--vram-reserve-mib",
|
||||
"1024",
|
||||
"--vram-reserve-later-mib",
|
||||
"1024",
|
||||
"--batch-mtp",
|
||||
"--batch-groups",
|
||||
"1",
|
||||
"--pcie-frac",
|
||||
"0.35",
|
||||
"--spec-min-p",
|
||||
"0.70",
|
||||
"--adapt-every",
|
||||
"1",
|
||||
"--adapt-swaps",
|
||||
"80",
|
||||
"--adapt-decay",
|
||||
"0.97",
|
||||
"--resident-experts",
|
||||
"--vision"
|
||||
],
|
||||
"environment": {
|
||||
"STRATA_ROUTE_TAIL_SKIP": "0",
|
||||
"STRATA_RESIDENT_HEADROOM_GIB": "6",
|
||||
"STRATA_STAGE_TRIM": "1"
|
||||
},
|
||||
"resident_expert_gib": [
|
||||
22.45
|
||||
],
|
||||
"memory_max": "63350767616",
|
||||
"cpu_max": "800000 100000"
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"model": "flash-next-strata-iq3",
|
||||
"parallel": 1,
|
||||
"args": [
|
||||
"--pack",
|
||||
"/data/athena-deck-strata/packs/iq3_xxs",
|
||||
"--native",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf",
|
||||
"--ple-gguf",
|
||||
"/data/athena-deck-strata/models/IQ3_XXS/Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf",
|
||||
"--expert-profile",
|
||||
"/var/lib/deck/strata-runtime/source/data/expert-profile.bin",
|
||||
"--expert-cache",
|
||||
"auto",
|
||||
"--prefill",
|
||||
"auto",
|
||||
"--spec",
|
||||
"4",
|
||||
"--mtp",
|
||||
"/data/athena-deck-strata/mtp/rt",
|
||||
"--max-context",
|
||||
"262144",
|
||||
"--kv",
|
||||
"int8",
|
||||
"--kv-resident",
|
||||
"32768",
|
||||
"--vram-reserve-mib",
|
||||
"1024",
|
||||
"--vram-reserve-later-mib",
|
||||
"1024",
|
||||
"--pcie-frac",
|
||||
"0.35",
|
||||
"--spec-min-p",
|
||||
"0.70",
|
||||
"--adapt-every",
|
||||
"1",
|
||||
"--adapt-swaps",
|
||||
"80",
|
||||
"--adapt-decay",
|
||||
"0.97",
|
||||
"--resident-experts",
|
||||
"--vision"
|
||||
],
|
||||
"environment": {
|
||||
"STRATA_ROUTE_TAIL_SKIP": "0",
|
||||
"STRATA_RESIDENT_HEADROOM_GIB": "6",
|
||||
"STRATA_STAGE_TRIM": "1"
|
||||
},
|
||||
"resident_expert_gib": [
|
||||
27.3
|
||||
],
|
||||
"memory_max": "63350767616",
|
||||
"cpu_max": "800000 100000"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{"model": "flash-next-strata-iq3"}
|
||||
@@ -0,0 +1 @@
|
||||
{"http_status": 200, "model": "flash-next-strata-iq3", "restored": true}
|
||||
@@ -0,0 +1,199 @@
|
||||
[
|
||||
{
|
||||
"arm": "flash-next-strata-iq3-512k",
|
||||
"case": "half-context-262144",
|
||||
"requests": 1,
|
||||
"wall_seconds": 150.75741138400008,
|
||||
"aggregate_output_tok_s": 3.3961846074410555,
|
||||
"rows": [
|
||||
{
|
||||
"wall_seconds": 150.75733148399922,
|
||||
"ttft_seconds": 142.37149299299926,
|
||||
"usage": {
|
||||
"prompt_tokens": 262112,
|
||||
"completion_tokens": 512,
|
||||
"total_tokens": 262624,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 262112,
|
||||
"prompt_ms": 142112.8,
|
||||
"prompt_per_token_ms": 0.542,
|
||||
"prompt_per_second": 1844.4,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 8411.8,
|
||||
"predicted_per_token_ms": 16.429,
|
||||
"predicted_per_second": 60.9,
|
||||
"draft_n": 288,
|
||||
"draft_n_accepted": 195
|
||||
},
|
||||
"finish_reason": "length"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"peak_memory_gib": 55.08510971069336,
|
||||
"read_gib": 4.962158203125,
|
||||
"read_mib_s": 33.70481061828098,
|
||||
"refaults": 0,
|
||||
"major_faults": 21811,
|
||||
"limit_events": 0,
|
||||
"oom_kill_delta": 0,
|
||||
"cpu_cores": 1.2875652229499674,
|
||||
"pressure_full_percent": 0.0,
|
||||
"peak_admitted_requests": 1,
|
||||
"gpu_samples": {
|
||||
"0": {
|
||||
"mean_utilization": 94.57692307692308,
|
||||
"peak_memory_mib": 11299.0
|
||||
},
|
||||
"1": {
|
||||
"mean_utilization": 37.19230769230769,
|
||||
"peak_memory_mib": 15406.0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"arm": "flash-next-strata-iq3",
|
||||
"case": "half-context-131072",
|
||||
"requests": 1,
|
||||
"wall_seconds": 72.13174809600059,
|
||||
"aggregate_output_tok_s": 7.098122720089578,
|
||||
"rows": [
|
||||
{
|
||||
"wall_seconds": 72.13167227399936,
|
||||
"ttft_seconds": 64.8181706180003,
|
||||
"usage": {
|
||||
"prompt_tokens": 131072,
|
||||
"completion_tokens": 512,
|
||||
"total_tokens": 131584,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 131072,
|
||||
"prompt_ms": 64625.3,
|
||||
"prompt_per_token_ms": 0.493,
|
||||
"prompt_per_second": 2028.2,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 7337.1,
|
||||
"predicted_per_token_ms": 14.33,
|
||||
"predicted_per_second": 69.8,
|
||||
"draft_n": 290,
|
||||
"draft_n_accepted": 195
|
||||
},
|
||||
"finish_reason": "length"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"peak_memory_gib": 50.359046936035156,
|
||||
"read_gib": 1.2552070617675781,
|
||||
"read_mib_s": 17.819227527098658,
|
||||
"refaults": 0,
|
||||
"major_faults": 5445,
|
||||
"limit_events": 0,
|
||||
"oom_kill_delta": 0,
|
||||
"cpu_cores": 1.5165305553722637,
|
||||
"pressure_full_percent": 0.0,
|
||||
"peak_admitted_requests": 1,
|
||||
"gpu_samples": {
|
||||
"0": {
|
||||
"mean_utilization": 89.6923076923077,
|
||||
"peak_memory_mib": 11301.0
|
||||
},
|
||||
"1": {
|
||||
"mean_utilization": 49.07692307692308,
|
||||
"peak_memory_mib": 15408.0
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"arm": "flash-next-strata-iq3-dual",
|
||||
"case": "half-context-131072",
|
||||
"requests": 2,
|
||||
"wall_seconds": 198.2802617159996,
|
||||
"aggregate_output_tok_s": 5.164407143393293,
|
||||
"rows": [
|
||||
{
|
||||
"wall_seconds": 123.95304272500107,
|
||||
"ttft_seconds": 72.12293115000102,
|
||||
"usage": {
|
||||
"prompt_tokens": 131072,
|
||||
"completion_tokens": 512,
|
||||
"total_tokens": 131584,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 131072,
|
||||
"prompt_ms": 71871.7,
|
||||
"prompt_per_token_ms": 0.548,
|
||||
"prompt_per_second": 1823.7,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 50396.9,
|
||||
"predicted_per_token_ms": 98.431,
|
||||
"predicted_per_second": 10.2,
|
||||
"draft_n": 0,
|
||||
"draft_n_accepted": 0
|
||||
},
|
||||
"finish_reason": "length"
|
||||
},
|
||||
{
|
||||
"wall_seconds": 198.27855605700097,
|
||||
"ttft_seconds": 187.7052170980005,
|
||||
"usage": {
|
||||
"prompt_tokens": 131075,
|
||||
"completion_tokens": 512,
|
||||
"total_tokens": 131587,
|
||||
"prompt_tokens_details": {
|
||||
"cached_tokens": 0
|
||||
}
|
||||
},
|
||||
"backend_timings": {
|
||||
"cache_n": 0,
|
||||
"prompt_n": 131075,
|
||||
"prompt_ms": 113958.0,
|
||||
"prompt_per_token_ms": 0.869,
|
||||
"prompt_per_second": 1150.2,
|
||||
"predicted_n": 512,
|
||||
"predicted_ms": 8464.0,
|
||||
"predicted_per_token_ms": 16.531,
|
||||
"predicted_per_second": 60.5,
|
||||
"draft_n": 285,
|
||||
"draft_n_accepted": 174
|
||||
},
|
||||
"finish_reason": "length"
|
||||
}
|
||||
],
|
||||
"resources": {
|
||||
"peak_memory_gib": 58.99997329711914,
|
||||
"read_gib": 8.89083480834961,
|
||||
"read_mib_s": 45.915890794970466,
|
||||
"refaults": 2117,
|
||||
"major_faults": 38880,
|
||||
"limit_events": 273,
|
||||
"oom_kill_delta": 0,
|
||||
"cpu_cores": 1.6408592422880939,
|
||||
"pressure_full_percent": 0.05897006539535197,
|
||||
"peak_admitted_requests": 2,
|
||||
"gpu_samples": {
|
||||
"0": {
|
||||
"mean_utilization": 72.44117647058823,
|
||||
"peak_memory_mib": 11315.0
|
||||
},
|
||||
"1": {
|
||||
"mean_utilization": 38.470588235294116,
|
||||
"peak_memory_mib": 15442.0
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1 @@
|
||||
{"phase": "complete", "completed": 3, "updated": 1792501366.91855}
|
||||
Reference in new issue
Block a user