Run native 131K versus 262K comparison with safe IQ3 restoration

This commit is contained in:
Mikei386 committed 2026-10-13 17:29:17 +02:00
1 parent d36ca7c46a
commit 1b44dff5ca
3 files changed
+34 -1

No files matched your search

@@ -89,3 +89,15 @@ Quellen:
- https://huggingface.co/Qwen/Qwen3.8-Flash-Next
- https://github.com/Niko1221/Strata/blob/main/docs/DETAILS.md
Installierte Strata-Version: 0.1.43.1, a0116b2782a5b82622358c04a06496485d12b2d6.
## Gestarteter Umfang nach Go
Nach der Diskussion der RAM-Kapazität: erster Vergleich 131072 gegen native
262144, keine YaRN-Skalierung. Millionentest zurückgestellt. benchmark.py ist auf
diese beiden Größen gesetzt. Beide GPUs regulär freigemacht; TTS-Politik temporär
von auto auf unload gestellt (nach Abschluss über GUI auf auto zurücksetzen).
Eigener transienter Dienst athena-strata-context-20261013, kein Deck-Neustart.
finish.py stellt nach Testende IQ3 über reguläre API wieder her, sofern Nutzer
inzwischen nicht selbst ein Modell geladen oder den Betriebsmodus geändert hat.
Startstatus loading/131072 und laufender Testcontainer bestätigt; noch keine
Geschwindigkeitsergebnisse beim Start.
@@ -3,7 +3,7 @@ Run inside an isolated container after regular Deck LLM unload, never concurrent
"""
import argparse,copy,json,os,pathlib,random,re,secrets,signal,socket,subprocess,threading,time,urllib.request
P=pathlib.Path
CONTEXTS=(131072,1000000)
CONTEXTS=(131072,262144)
OUTPUT=256
MARGIN=8192
NEEDLE='781493628057'
@@ -94,6 +94,7 @@ def run(a):
config=root/f'worker-{context}.json';config.write_text(json.dumps(cfg));config.chmod(0o600)
process=None;sampler=MemorySampler();thread=threading.Thread(target=sampler.run,daemon=True);thread.start()
env=dict(os.environ,**cfg.get('env',{}),PYTHONUNBUFFERED='1')
env['LD_LIBRARY_PATH']='/var/lib/deck/strata-runtime/cuda/lib64:/var/lib/deck/strata-runtime/cuda/lib:'+env.get('LD_LIBRARY_PATH','')
base=f'http://127.0.0.1:{port}'
def request(path,body=None):
req=urllib.request.Request(base+path,data=json.dumps(body).encode() if body else None,headers={'Authorization':'Bearer '+key,'Content-Type':'application/json'})
@@ -0,0 +1,20 @@
"""Run the authorized isolated test and restore prior IQ3 through normal API."""
import json,pathlib,subprocess,time,urllib.request
stage=pathlib.Path('/opt/athena-deck-dev/context-prepared-20261013');out=pathlib.Path('/data/experiments/strata-context-20261013')
rc=subprocess.run(['python3',str(stage/'launch.py'),'--go']).returncode
result={'benchmark_returncode':rc,'restored':False}
try:
c=json.loads(subprocess.check_output(['docker','inspect','athena-voxcpm2-web']))[0]
f=next(pathlib.Path(m['Source']) for m in c['Mounts'] if m['Destination']=='/data');token=json.loads((f/'deck-connection.json').read_text())['token']
headers={'Authorization':'Bearer '+token,'Content-Type':'application/json'}
status=json.load(urllib.request.urlopen(urllib.request.Request('http://127.0.0.1:8108/api/v1/status',headers=headers),timeout=20))
if status['endpoint']['active_requests'] or status['endpoint']['counts']['llm']['loaded'] or status.get('mode') not in ('llm',None):
result['restore_skipped']='user_activity_or_changed_mode'
else:
body={'model':'flash-next-strata-iq3','messages':[{'role':'user','content':'Antworte mit OK.'}],'max_tokens':1,'reasoning_effort':'none'}
with urllib.request.urlopen(urllib.request.Request('http://127.0.0.1:8120/v1/chat/completions',headers=headers,data=json.dumps(body).encode()),timeout=240) as r:
value=json.load(r);result.update(restored=r.status==200,restore_usage=value.get('usage',{}))
except Exception as e:result['restore_error_type']=type(e).__name__
out.mkdir(parents=True,exist_ok=True);(out/'restore.json').write_text(json.dumps(result))
print(json.dumps(result),flush=True)
raise SystemExit(rc)