diff --git a/docs/experiments/strata-512k-profile-2026-10-13/README.md b/docs/experiments/strata-512k-profile-2026-10-13/README.md index 78068ad..e863232 100644 --- a/docs/experiments/strata-512k-profile-2026-10-13/README.md +++ b/docs/experiments/strata-512k-profile-2026-10-13/README.md @@ -37,3 +37,8 @@ Deck. UI or active client sessions may retain old settings until refreshed. - Add512K to both context-display and tool-context-guard mappings only on activation. Existing IQ3 identity remains262K. - Do not apply future model metadata as though512K is already serving. + +Activation completed: see ../strata-dual-slot-2026-10-13/README.md and its +verified endpoint metadata, parallel short test and512K smoke/restore result. +Previously pending client thresholds/model registrations are applied. Full512K +pressure test at production43GiB and full dual contexts remain untested. diff --git a/docs/experiments/strata-dual-slot-2026-10-13/README.md b/docs/experiments/strata-dual-slot-2026-10-13/README.md index 20af2ca..ac18a1a 100644 --- a/docs/experiments/strata-dual-slot-2026-10-13/README.md +++ b/docs/experiments/strata-dual-slot-2026-10-13/README.md @@ -55,3 +55,42 @@ Official pinned source: https://github.com/Niko1221/Strata/blob/a0116b2782a5b82622358c04a06496485d12b2d6/serve/server.py Official batching guidance: https://github.com/Niko1221/Strata/blob/main/docs/BATCHING.md + +## Activated 2026-10-13 + +Final app image athena-deck-standalone:strata-profiles-20261013; production RAM +43GiB/no additional swap retained. Update only at endpoint.active_requests0. +Initial deployment followed by a final label fix: immutable container rootfs +prevented a static-file copy, so final UI correction shipped in normal image +update. Host/OpenWebUI/OpenCode not restarted. Profiles saved and endpoint +checkboxes changed in authenticated native Deck GUI, without state-file bypass. + +Registered API IDs: +- flash-next-strata-iq3:262144,1slot, native scaling. +- flash-next-strata-iq3-512k:524288,1slot, YaRN2. +- flash-next-strata-iq3-dual:262144 PER SLOT,2slots, native scaling. +IQ2 disabled, weights retained. Actual saved names use ASCII hyphen and2x262K +because Deck's profile-name validator rejects the decorative middle-dot/× names. + +Dual load HTTP20045.639s; two simultaneous synthetic requests both HTTP200, +peak2active. Backend output25.3 and22.3tok/s,128tokens each. No performance +claim for long inputs or two fully filled contexts; no raw answers retained. +512K short smoke HTTP20042.144s at43GiB; exact worker flags confirmed524288, +rope-scaling yarn, rope-scale2. Prior262K restored through regular endpoint; +see activation-smoke-restore.json for final HTTP result. + +Mac/Unraid OpenCode now list12chat models; contexts262144 and524288 correct, +output0 convention preserved. OpenCode does not expose a portable model setting +for reserving per-client slots: select SAME flash-next-strata-iq3-dual in all +clients that should overlap. New sessions may be needed to reload model lists. +OpenWebUI model records enabled with vision capability inherited; global tool +selection unchanged. IQ2 model record inactive. Native compaction verified with +installed _load_config/_resolve_token_threshold:262K222822,512K445644, +dual222822. Global cap445644; fallback80000 and retention40 unchanged. +Context-display and tool-context-guard maps include actual per-request limits. + +Regular installer state snapshots at final update include new profiles and +endpoint selections. Private OpenWebUI before-values in settings-backups; +client auth files remain private. Public metadata, source, synthetic metrics +and activation recipe stored in Git. No new full encrypted export or native +fresh-host restore was performed; existing limitations remain. diff --git a/docs/experiments/strata-dual-slot-2026-10-13/activation-smoke-restore.json b/docs/experiments/strata-dual-slot-2026-10-13/activation-smoke-restore.json new file mode 100644 index 0000000..26885e0 --- /dev/null +++ b/docs/experiments/strata-dual-slot-2026-10-13/activation-smoke-restore.json @@ -0,0 +1,28 @@ +[ + { + "model": "flash-next-strata-iq3-512k", + "http_status": 200, + "seconds": 42.144, + "usage": { + "prompt_tokens": 18, + "completion_tokens": 1, + "total_tokens": 19, + "prompt_tokens_details": { + "cached_tokens": 0 + } + } + }, + { + "model": "flash-next-strata-iq3", + "http_status": 200, + "seconds": 46.99, + "usage": { + "prompt_tokens": 18, + "completion_tokens": 1, + "total_tokens": 19, + "prompt_tokens_details": { + "cached_tokens": 0 + } + } + } +] \ No newline at end of file diff --git a/docs/experiments/strata-dual-slot-2026-10-13/activation-test.json b/docs/experiments/strata-dual-slot-2026-10-13/activation-test.json new file mode 100644 index 0000000..dd3fe8d --- /dev/null +++ b/docs/experiments/strata-dual-slot-2026-10-13/activation-test.json @@ -0,0 +1,60 @@ +{ + "model": "flash-next-strata-iq3-dual", + "per_slot_context": 262144, + "slots": 2, + "peak_active_requests": 2, + "requests": [ + { + "http_status": 200, + "seconds": 6.667, + "usage": { + "prompt_tokens": 39, + "completion_tokens": 128, + "total_tokens": 167, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 39, + "prompt_ms": 478.5, + "prompt_per_token_ms": 12.269, + "prompt_per_second": 81.5, + "predicted_n": 128, + "predicted_ms": 5065.4, + "predicted_per_token_ms": 39.573, + "predicted_per_second": 25.3, + "draft_n": 0, + "draft_n_accepted": 0 + } + }, + { + "http_status": 200, + "seconds": 6.619, + "usage": { + "prompt_tokens": 40, + "completion_tokens": 128, + "total_tokens": 168, + "prompt_tokens_details": { + "cached_tokens": 0 + } + }, + "backend_timings": { + "cache_n": 0, + "prompt_n": 40, + "prompt_ms": 642.9, + "prompt_per_token_ms": 16.072, + "prompt_per_second": 62.2, + "predicted_n": 128, + "predicted_ms": 5729.9, + "predicted_per_token_ms": 44.765, + "predicted_per_second": 22.3, + "draft_n": 0, + "draft_n_accepted": 0 + } + } + ], + "full_context_test": false, + "ram_limit_gib": 43 +} \ No newline at end of file diff --git a/docs/experiments/strata-dual-slot-2026-10-13/profile-freigaben.png b/docs/experiments/strata-dual-slot-2026-10-13/profile-freigaben.png new file mode 100644 index 0000000..21a9afb Binary files /dev/null and b/docs/experiments/strata-dual-slot-2026-10-13/profile-freigaben.png differ diff --git a/docs/experiments/strata-dual-slot-2026-10-13/verified-model-metadata.json b/docs/experiments/strata-dual-slot-2026-10-13/verified-model-metadata.json new file mode 100644 index 0000000..4afd8d6 --- /dev/null +++ b/docs/experiments/strata-dual-slot-2026-10-13/verified-model-metadata.json @@ -0,0 +1,23 @@ +[ + { + "id": "flash-next-strata-iq3", + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS", + "context_window": 262144, + "parallel_slots": 1, + "context_scope": "per_slot" + }, + { + "id": "flash-next-strata-iq3-512k", + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS - 512K", + "context_window": 524288, + "parallel_slots": 1, + "context_scope": "per_slot" + }, + { + "id": "flash-next-strata-iq3-dual", + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS - Dual-Slot 2x262K", + "context_window": 262144, + "parallel_slots": 2, + "context_scope": "per_slot" + } +] \ No newline at end of file diff --git a/integrations/opencode-athena/README.md b/integrations/opencode-athena/README.md index e3c9088..893e6d5 100644 --- a/integrations/opencode-athena/README.md +++ b/integrations/opencode-athena/README.md @@ -63,3 +63,12 @@ The Unraid parser still lists the canonical models successfully. `flash-next-strata-iq3-512k` with 524288 and removes IQ2 from the picker. Do not apply it until the new profile is actually saved/enabled and IQ2 disabled on Deck. Refresh from Deck discovery if other profiles change meanwhile. + +## New profiles activated + +Current metadata file now contains12profiles: IQ2 removed, single512K and +Dual-Slot2x262K added. Both Mac and Unraid providers updated without restart. +Dual model context262144 is PER REQUEST; two slots are managed by Deck, not +an OpenCode client option. Select flash-next-strata-iq3-dual in both programs +for shared parallel service. The historical pending filename is retained as +an activation artifact; it now matches enabled profiles. diff --git a/integrations/opencode-athena/models-20261013.json b/integrations/opencode-athena/models-20261013.json index c0cd6f3..9dfb8e0 100644 --- a/integrations/opencode-athena/models-20261013.json +++ b/integrations/opencode-athena/models-20261013.json @@ -306,49 +306,6 @@ }, "reasoning": false }, - "flash-next-strata-iq2": { - "name": "Qwen3.8 Flash-Next Strata IQ2 XS", - "limit": { - "context": 262144, - "output": 0 - }, - "modalities": { - "input": [ - "text", - "image" - ], - "output": [ - "text" - ] - }, - "reasoning": true, - "variants": { - "low": { - "disabled": true - }, - "medium": { - "disabled": true - }, - "high": { - "disabled": true - }, - "Thinking aus": { - "reasoningEffort": "none" - }, - "Thinking niedrig": { - "reasoningEffort": "low" - }, - "Thinking mittel": { - "reasoningEffort": "medium" - }, - "Thinking hoch": { - "reasoningEffort": "high" - }, - "Thinking extra hoch": { - "reasoningEffort": "xhigh" - } - } - }, "flash-next-strata-iq3": { "name": "Qwen3.8 Flash-Next Strata IQ3 XXS", "limit": { @@ -391,5 +348,91 @@ "reasoningEffort": "xhigh" } } + }, + "flash-next-strata-iq3-512k": { + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS - 512K", + "limit": { + "context": 524288, + "output": 0 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "reasoning": true, + "variants": { + "low": { + "disabled": true + }, + "medium": { + "disabled": true + }, + "high": { + "disabled": true + }, + "Thinking aus": { + "reasoningEffort": "none" + }, + "Thinking niedrig": { + "reasoningEffort": "low" + }, + "Thinking mittel": { + "reasoningEffort": "medium" + }, + "Thinking hoch": { + "reasoningEffort": "high" + }, + "Thinking extra hoch": { + "reasoningEffort": "xhigh" + } + } + }, + "flash-next-strata-iq3-dual": { + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS - Dual-Slot 2x262K", + "limit": { + "context": 262144, + "output": 0 + }, + "modalities": { + "input": [ + "text", + "image" + ], + "output": [ + "text" + ] + }, + "reasoning": true, + "variants": { + "low": { + "disabled": true + }, + "medium": { + "disabled": true + }, + "high": { + "disabled": true + }, + "Thinking aus": { + "reasoningEffort": "none" + }, + "Thinking niedrig": { + "reasoningEffort": "low" + }, + "Thinking mittel": { + "reasoningEffort": "medium" + }, + "Thinking hoch": { + "reasoningEffort": "high" + }, + "Thinking extra hoch": { + "reasoningEffort": "xhigh" + } + } } } diff --git a/integrations/opencode-athena/models-after-512k-activation.json b/integrations/opencode-athena/models-after-512k-activation.json index 4218555..9dfb8e0 100644 --- a/integrations/opencode-athena/models-after-512k-activation.json +++ b/integrations/opencode-athena/models-after-512k-activation.json @@ -350,7 +350,7 @@ } }, "flash-next-strata-iq3-512k": { - "name": "Qwen3.8 Flash-Next Strata IQ3 XXS · 512K", + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS - 512K", "limit": { "context": 524288, "output": 0 @@ -393,7 +393,7 @@ } }, "flash-next-strata-iq3-dual": { - "name": "Qwen3.8 Flash-Next Strata IQ3 XXS · Dual-Slot · 2 × 262K", + "name": "Qwen3.8 Flash-Next Strata IQ3 XXS - Dual-Slot 2x262K", "limit": { "context": 262144, "output": 0 diff --git a/integrations/openwebui-context-display/activate-strata-profiles.py b/integrations/openwebui-context-display/activate-strata-profiles.py new file mode 100644 index 0000000..0d8f721 --- /dev/null +++ b/integrations/openwebui-context-display/activate-strata-profiles.py @@ -0,0 +1,33 @@ +"""Register enabled Deck profiles in OpenWebUI; never read chats or credentials.""" +import datetime,json,os,sqlite3,time +from pathlib import Path +TARGETS={'flash-next-strata-iq3':('Qwen3.8 Flash-Next Strata IQ3 XXS',262144,1),'flash-next-strata-iq3-512k':('Qwen3.8 Flash-Next Strata IQ3 XXS - 512K',524288,1),'flash-next-strata-iq3-dual':('Qwen3.8 Flash-Next Strata IQ3 XXS - Dual-Slot 2x262K',262144,2)} +c=sqlite3.connect('/app/backend/data/webui.db');c.row_factory=sqlite3.Row;c.execute('BEGIN IMMEDIATE') +base=c.execute('select * from model where id=?',('flash-next-strata-iq3',)).fetchone();assert base +before={'models':[],'functions':{},'config':{}} +for ident in [*TARGETS,'flash-next-strata-iq2']: + r=c.execute('select * from model where id=?',(ident,)).fetchone();before['models'].append(dict(r) if r else {'id':ident,'absent':True}) +for ident in ('athena_context_display','athena_tool_context_guard'): + r=c.execute('select valves from function where id=?',(ident,)).fetchone() + if r:before['functions'][ident]=r[0] +key='chat.context_compaction.token_cap';r=c.execute('select value from config where key=?',(key,)).fetchone();before['config'][key]=r[0] if r else None +folder=Path('/app/backend/data/settings-backups');folder.mkdir(exist_ok=True);p=folder/('strata-profiles-'+datetime.datetime.now(datetime.timezone.utc).strftime('%Y%m%dT%H%M%S%fZ')+'.json');fd=os.open(p,os.O_WRONLY|os.O_CREAT|os.O_EXCL,0o600) +with os.fdopen(fd,'w') as f:json.dump(before,f) +now=int(time.time()) +for ident,(name,context,slots) in TARGETS.items(): + old=c.execute('select * from model where id=?',(ident,)).fetchone() + row=dict(old or base);params=json.loads(row['params'] or '{}');params['compact_token_threshold']=context*85//100;meta=json.loads(row['meta'] or '{}');meta['description']=f'Strata IQ3: {slots} parallele Slots, je {context} Token Kontext. Zusätzliche Anfragen warten.' + row.update(id=ident,name=name,params=json.dumps(params),meta=json.dumps(meta),updated_at=now,is_active=1) + if not old:row.update(base_model_id=None,created_at=now) + cols=list(row);c.execute('insert or replace into model ('+','.join(cols)+') values ('+','.join('?' for _ in cols)+')',[row[k] for k in cols]) +c.execute('update model set is_active=0,updated_at=? where id=?',(now,'flash-next-strata-iq2')) +for ident,raw in before['functions'].items(): + v=json.loads(raw or '{}');w=v.get('profile_windows',{});as_string=isinstance(w,str);w=json.loads(w) if as_string else dict(w) + for k,(_,context,_) in TARGETS.items():w[k]=context + w.pop('flash-next-strata-iq2',None);v['profile_windows']=json.dumps(w,sort_keys=True) if as_string else w + c.execute('update function set valves=?,updated_at=? where id=?',(json.dumps(v),now,ident)) +c.execute('insert into config (key,value,updated_at) values (?,?,?) on conflict(key) do update set value=excluded.value,updated_at=excluded.updated_at',(key,json.dumps(524288*85//100),now));c.commit() +for ident,(_,context,_) in TARGETS.items(): + r=c.execute('select params,is_active from model where id=?',(ident,)).fetchone();assert r[1] and json.loads(r[0])['compact_token_threshold']==context*85//100 +assert c.execute('select is_active from model where id=?',('flash-next-strata-iq2',)).fetchone()[0]==0 +print(json.dumps({'models':{k:{'context':v[1],'slots':v[2],'threshold':v[1]*85//100} for k,v in TARGETS.items()},'global_cap':445644,'iq2_active':False,'verified':True})) diff --git a/integrations/openwebui-context-display/profile-windows.json b/integrations/openwebui-context-display/profile-windows.json index d737e23..f43e283 100644 --- a/integrations/openwebui-context-display/profile-windows.json +++ b/integrations/openwebui-context-display/profile-windows.json @@ -1,6 +1,7 @@ { - "flash-next-strata-iq2": 262144, "flash-next-strata-iq3": 262144, + "flash-next-strata-iq3-512k": 524288, + "flash-next-strata-iq3-dual": 262144, "gemma4-31b-32k": 32768, "glm-4-7-flash-q5": 200000, "holo4-35b-a3b-medium": 160000, diff --git a/profiles-ui.js b/profiles-ui.js index 417254f..136587b 100644 --- a/profiles-ui.js +++ b/profiles-ui.js @@ -13,7 +13,7 @@ window.ProfilesUI=(()=>{ f.onsubmit=async event=>{event.preventDefault();const b=f.querySelector('button'),note=f.querySelector('[data-status]');b.disabled=true;try{const limits=Object.fromEntries(['low','medium','high'].map(level=>{const raw=f.elements[level].value.trim();return [level,raw===''?null:Number(raw)];}));await api('reasoning-budget',{enabled:f.elements.enabled.checked,limits});note.textContent='Global gespeichert. Gilt für alle Chatprofile und neue Anfragen.';}catch(error){note.textContent=error.message;}finally{b.disabled=false;}}; } const openRows=new Set([...root.querySelectorAll('.detail-row[open]')].map(x=>x.dataset.rowId)); - el('profile-list').innerHTML=rows.map(p=>`
${e(p.name)}API-ID: ${e(p.api_id||p.name)}${e(p.model?.file||'Modelldatei nicht verfügbar')}${p.parameters.context?`${e(p.parameters.context)} Token · ${e(p.parameters.slots||1)} Slots`:e(p.execution?.runtime||'Laufzeit prüfen')}${enabled.includes(p.id)?'API: freigegeben':'API: nicht freigegeben'}${p.runnable?'Bereit · lädt bei Anfrage':'Einrichtung fehlt'}

${Object.entries(p.parameters).filter(([k])=>k!=='reasoning_budget').map(([k,v])=>`${e(labels[k]||k)}: ${e(['video_device','text_encoder_device'].includes(k)?({auto:'Automatisch · RTX 5080 bevorzugt',same:'Wie Videopipeline'}[v]||gpus.find(g=>g.uuid===v)?.name||v):k==='gpu_reserve_mode'?({auto:'Automatisch',manual:'Manuell',none:'Keine zusätzliche Reserve'}[v]||v):k==='gpu_reserve_mib'?(Object.entries(v).map(([id,n])=>`${gpus.find(g=>g.uuid===id)?.name||id}: ${n} MiB`).join(', ')||'gemäß Reservemodus'):k==='gpu_devices'?(v.length?v.map((id,i)=>`CUDA${i}: ${gpus.find(g=>g.uuid===id)?.name||id}`).join(', '):'Automatisch'):Array.isArray(v)?(v.join(', ')||'Automatisch'):v)}`).join(' · ')}

${kind==='image'?`

Prompt-Aufwerter: Text-zu-Bild ${p.prompt_enhancer?.t2i?'an':'aus'} · Bildbearbeitung ${p.prompt_enhancer?.i2i?'an':'aus'} · Gerät ${e(p.prompt_enhancer?.device||'auto')}

`:''}${CatalogUI.executionHTML(p.execution)}
${p.runnable?(kind==='video'?'Laufzeit bereit · Video-Modus in Steuerung aktivieren':'Laufzeit bereit · lädt bei Anfrage'):'Was fehlt zur Ausführung?'}${p.blockers.map(t=>`

${e(t)}

`).join('')}
${kind==='image'?``:''}
`).join('')||`

Noch keine Profile

${models.length?'Wähle eine heruntergeladene Modelldatei und lege dein erstes Profil an.':'Lade zuerst eine Gewichtsdatei unter Entdecken herunter.'}

`; + el('profile-list').innerHTML=rows.map(p=>`
${e(p.name)}API-ID: ${e(p.api_id||p.name)}${e(p.model?.file||'Modelldatei nicht verfügbar')}${p.parameters.context?`${e(p.parameters.context)} Token ${p.parameters.chat_runtime==='strata'?'je Slot':'gesamt'} · ${e(p.parameters.slots||1)} Slots`:e(p.execution?.runtime||'Laufzeit prüfen')}${enabled.includes(p.id)?'API: freigegeben':'API: nicht freigegeben'}${p.runnable?'Bereit · lädt bei Anfrage':'Einrichtung fehlt'}

${Object.entries(p.parameters).filter(([k])=>k!=='reasoning_budget').map(([k,v])=>`${e(labels[k]||k)}: ${e(['video_device','text_encoder_device'].includes(k)?({auto:'Automatisch · RTX 5080 bevorzugt',same:'Wie Videopipeline'}[v]||gpus.find(g=>g.uuid===v)?.name||v):k==='gpu_reserve_mode'?({auto:'Automatisch',manual:'Manuell',none:'Keine zusätzliche Reserve'}[v]||v):k==='gpu_reserve_mib'?(Object.entries(v).map(([id,n])=>`${gpus.find(g=>g.uuid===id)?.name||id}: ${n} MiB`).join(', ')||'gemäß Reservemodus'):k==='gpu_devices'?(v.length?v.map((id,i)=>`CUDA${i}: ${gpus.find(g=>g.uuid===id)?.name||id}`).join(', '):'Automatisch'):Array.isArray(v)?(v.join(', ')||'Automatisch'):v)}`).join(' · ')}

${kind==='image'?`

Prompt-Aufwerter: Text-zu-Bild ${p.prompt_enhancer?.t2i?'an':'aus'} · Bildbearbeitung ${p.prompt_enhancer?.i2i?'an':'aus'} · Gerät ${e(p.prompt_enhancer?.device||'auto')}

`:''}${CatalogUI.executionHTML(p.execution)}
${p.runnable?(kind==='video'?'Laufzeit bereit · Video-Modus in Steuerung aktivieren':'Laufzeit bereit · lädt bei Anfrage'):'Was fehlt zur Ausführung?'}${p.blockers.map(t=>`

${e(t)}

`).join('')}
${kind==='image'?``:''}
`).join('')||`

Noch keine Profile

${models.length?'Wähle eine heruntergeladene Modelldatei und lege dein erstes Profil an.':'Lade zuerst eine Gewichtsdatei unter Entdecken herunter.'}

`; el('profile-list').insertAdjacentHTML('afterbegin',`

${kind==='image'?'Der feste API-Name athena-image verwendet das hier freigegebene Bildprofil und dessen Auflösung. Höchstens ein Bildprofil ist am API-Endpunkt freigegeben. Ein neuer Haken ersetzt die bisherige Auswahl.':['audio','stt'].includes(kind)?'Eingerichtete Sprachprofile können am API-Endpunkt freigegeben werden.':kind==='chat'?'Mehrere Sprachmodellprofile können gleichzeitig am API-Endpunkt freigegeben sein.':kind==='video'?'Genau ein Videoprofil kann am API-Endpunkt freigegeben sein. Ein neuer Haken ersetzt die bisherige Auswahl. Die Steuerung lädt dieses Profil beim Wechsel auf Video; API-Name: athena-video. Zum Ändern der Freigabe zuerst auf LLM wechseln.':kind==='voice'?'Genau ein Stimmprofil ist am Endpunkt aktiv. Aktivieren ersetzt die bisherige Auswahl; starten über Steuerung → Stimmwerkzeuge.':kind==='music'?'Gib ein eingerichtetes Musikprofil frei, um es in der Steuerung verwenden zu können.':kind==='voice'?'Eingerichtete VoxCPM2-Profile können Sprache erzeugen und am Sprach-API-Endpunkt freigegeben werden. Stimmklonen mit WAV-Referenz steht unter Testen.':'Für diesen Bereich ist noch keine ausführbare Laufzeit am Endpunkt angebunden.'} Freigegeben bedeutet nicht bereits in den GPU-Speicher geladen.

`); root.querySelectorAll('[data-publish]').forEach(b=>b.onchange=async()=>{const checked=b.checked;root.querySelectorAll('[data-publish]').forEach(x=>x.disabled=true);try{await api('endpoint/profile',{id:b.dataset.publish,enabled:checked});await load();message(kind==='video'?'Video-Freigabe gespeichert. Die Steuerung lädt dieses Profil beim Wechsel auf Video.':'Endpunkt-Freigabe gespeichert. Geladen wird erst bei einer API-Anfrage.');}catch(error){await load();message(error.message);}}); root.querySelectorAll('[data-delete]').forEach(b=>b.onclick=async()=>{const p=rows.find(p=>p.id===b.dataset.delete);if(!confirm(`Profil „${p.name}“ löschen? Modelldateien und Komponenten bleiben in der Bibliothek.`))return;b.disabled=true;try{await api('profiles/delete',{id:p.id,revision:p.revision});panelSequence++;el('profile-editor').replaceChildren();await load();message('Profil gelöscht. Modelldateien und Komponenten bleiben erhalten.');}catch(error){message(error.message);b.disabled=false;}}); @@ -152,7 +152,7 @@ window.ProfilesUI=(()=>{ if(!models.length)return;const data=p||{id:null,revision:0,name:'',model_id:id||models[0].id,parameters:Object.fromEntries(Object.entries(schema).map(([k,v])=>[k,v[2]]))}; if(!p&&kind==='image'&&models.find(m=>m.id===data.model_id)?.repo==='RunningHubAI/rh-flux.2-klein-9b-fp16-unet-2067980602644717569'){data.parameters.steps=4;data.parameters.guidance=1;} el('profile-editor').innerHTML=`

${data.id?'Profil bearbeiten':'Profil anlegen'}

${Object.entries(schema).filter(([k])=>!k.endsWith('penalty')).map(([k,[min,max,defaultValue]])=>``).join('')}
${kind==='video'?videoDevices(data):''}${kind==='chat'?`

Penalties

${['repeat_penalty','presence_penalty','frequency_penalty'].map(k=>{const [min,max,defaultValue]=schema[k];return ``;}).join('')}
`+gpuEditor(data.parameters)+`

Penalties: Wiederholung 1,0 sowie Presence und Frequency 0 sind neutral. Wiederholung über 1 bremst wiederholte Tokens; Presence bewertet ihr Auftreten, Frequency ihre Häufigkeit. Profilwerte gelten für Testchat und API, sofern der Client keine eigenen Werte sendet.

KV-Cache

${["k","v"].map(axis=>``).join("")}

q4_0 spart VRAM; q8_0 und f16 brauchen mehr Speicher. K und V werden getrennt eingestellt. MTP-Draft-KV bleibt separat f16.

Vision-Projektor

Passende mmproj.gguf unter Entdecken herunterladen – auch aus einem anderen Repository als das quantisierte Modell. Modell und Projektor müssen zusammenpassen; der Dateiname allein garantiert keine Kompatibilität. Das Projektor-Gerät wird unabhängig von den Sprachmodell-GPUs gewählt. Der Sprachmodell-Split verteilt ausschließlich die Sprachmodell-Gewichte. GPU-Projektoren erhalten eine zusätzliche konservative Speicherreserve.

Nur für GGUF-Modelle mit MTP-Gewichten und kompatible Builds. Zusätzlicher Speicherbedarf; Geschwindigkeit hängt vom Modell ab. Referenz Medium: 2 Draft-Token, Mindestwahrscheinlichkeit 0,05, Draft-KV f16.

`:''}

Speichern startet kein Modell. Die Ausführung benötigt eine passende Laufzeit und gegebenenfalls zusätzliche Modelldateien. ${kind==='chat'?'Das Kontextbudget gilt insgesamt für alle Slots.':''}

`; - if(kind==='chat'){const f=el('profile-form');f.insertAdjacentHTML('afterbegin',`

Chat-Laufzeit

Strata verteilt Anfangslayer auf die erste GPU, restliche Layer und MTP auf die zweite. Für Athena: 3060 zuerst, 5080 danach; Layer-Schnitt 16. llama.cpp-Regler sind dabei deaktiviert.

Strata: KV int8, 32768 KV-Tokens in VRAM, Rest in RAM; MTP mit bis zu 4 Draft-Tokens. Vision mit passendem BF16-Projektor auf CPU verfügbar.

`);f.elements.chat_runtime.value=data.parameters.chat_runtime||'llama';f.elements.strata_experts.value=data.parameters.strata_experts||'resident';const mode=()=>{const on=f.elements.chat_runtime.value==='strata';f.dataset.runtime=on?'strata':'llama';f.elements.slots.max=on?'2':'16';f.elements.context.parentElement.firstChild.textContent=on?'Kontext pro Slot (Token)':'Gesamtes Kontextbudget (Token)';f.querySelector('[data-llama-gpu-note]').hidden=on;f.elements.gpu_reserve_mode.querySelector('option[value=auto]').textContent=on?'Automatisch · 768 MiB je GPU':'Automatisch · mindestens 512 MiB je GPU';for(const n of ['threads','batch','ubatch','mtp','mtp_tokens','mtp_min_p','load_mode','gpu_offload','split_mode','tensor_split','cache_type_k','cache_type_v','vision_device'])f.elements[n].disabled=on;f.querySelector('#strata-profile-fields').hidden=!on;f.querySelector('#projector-discovery').hidden=on;const reserveNone=f.elements.gpu_reserve_mode.querySelector('option[value=none]');reserveNone.disabled=on;if(on&&f.elements.gpu_reserve_mode.value==='none')f.elements.gpu_reserve_mode.value='auto';};f.elements.chat_runtime.onchange=mode;mode();} + if(kind==='chat'){const f=el('profile-form');f.insertAdjacentHTML('afterbegin',`

Chat-Laufzeit

Strata verteilt Anfangslayer auf die erste GPU, restliche Layer und MTP auf die zweite. Für Athena: 3060 zuerst, 5080 danach; Layer-Schnitt 16. llama.cpp-Regler sind dabei deaktiviert.

Strata: KV int8, 32768 KV-Tokens in VRAM, Rest in RAM; MTP mit bis zu 4 Draft-Tokens. Vision mit passendem BF16-Projektor auf CPU verfügbar.

`);f.elements.chat_runtime.value=data.parameters.chat_runtime||'llama';f.elements.strata_experts.value=data.parameters.strata_experts||'resident';const mode=()=>{const on=f.elements.chat_runtime.value==='strata';f.dataset.runtime=on?'strata':'llama';f.querySelector('[data-context-scope]').textContent=on?'Bei Strata gilt das Kontextlimit pro Slot; zusätzliche Anfragen warten auf einen freien Slot.':'Das Kontextbudget gilt insgesamt für alle Slots.';f.elements.slots.max=on?'2':'16';f.elements.context.parentElement.firstChild.textContent=on?'Kontext pro Slot (Token)':'Gesamtes Kontextbudget (Token)';f.querySelector('[data-llama-gpu-note]').hidden=on;f.elements.gpu_reserve_mode.querySelector('option[value=auto]').textContent=on?'Automatisch · 768 MiB je GPU':'Automatisch · mindestens 512 MiB je GPU';for(const n of ['threads','batch','ubatch','mtp','mtp_tokens','mtp_min_p','load_mode','gpu_offload','split_mode','tensor_split','cache_type_k','cache_type_v','vision_device'])f.elements[n].disabled=on;f.querySelector('#strata-profile-fields').hidden=!on;f.querySelector('#projector-discovery').hidden=on;const reserveNone=f.elements.gpu_reserve_mode.querySelector('option[value=none]');reserveNone.disabled=on;if(on&&f.elements.gpu_reserve_mode.value==='none')f.elements.gpu_reserve_mode.value='auto';};f.elements.chat_runtime.onchange=mode;mode();} if(kind==='chat'){const threads=el('profile-form').querySelector('[name=threads]').closest('label');const advanced=document.createElement('details');advanced.innerHTML='Erweitert: CPU-Threads

CPU-Threads steuern CPU-Arbeit und Offloading, nicht die Anzahl der CUDA-Rechenkerne.

';advanced.append(threads);el('profile-form').insertBefore(advanced,el('profile-form').querySelector('.note'));} if(kind==='chat'){bindProjectorDiscovery();const f=el('profile-form');const reserveFields=()=>{for(const n of ['reserve_first','reserve_second'])f.elements[n].disabled=f.elements.gpu_reserve_mode.value!=='manual';};f.elements.gpu_reserve_mode.onchange=reserveFields;reserveFields();} if(kind==='video')bindVideoDevices(data);