Activate Strata 512K and dual slots with verified client limits
This commit is contained in:
1 parent
6e1c29f3e1
commit
08686f9543
12 files changed
+289
-48
No files matched your search
@@ -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.
|
||||
@@ -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.
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -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
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 217 KiB |
@@ -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"
|
||||
}
|
||||
]
|
||||
@@ -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.
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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}))
|
||||
@@ -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,
|
||||
|
||||
+2
-2
@@ -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=>`<details class="detail-row" data-row-id="${e(p.id)}" ${openRows.has(p.id)?'open':''}><summary class="detail-summary"><strong>${e(p.name)}</strong><span class="small">API-ID: ${e(p.api_id||p.name)}</span><span class="hub-filename">${e(p.model?.file||'Modelldatei nicht verfügbar')}</span><span>${p.parameters.context?`${e(p.parameters.context)} Token · ${e(p.parameters.slots||1)} Slots`:e(p.execution?.runtime||'Laufzeit prüfen')}</span><span>${enabled.includes(p.id)?'API: freigegeben':'API: nicht freigegeben'}<small>${p.runnable?'Bereit · lädt bei Anfrage':'Einrichtung fehlt'}</small></span></summary><div class="detail-body"><p>${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(' · ')}</p>${kind==='image'?`<p>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')}</p>`:''}${CatalogUI.executionHTML(p.execution)}<details><summary>${p.runnable?(kind==='video'?'Laufzeit bereit · Video-Modus in Steuerung aktivieren':'Laufzeit bereit · lädt bei Anfrage'):'Was fehlt zur Ausführung?'}</summary>${p.blockers.map(t=>`<p>${e(t)}</p>`).join('')}</details><div class="card-actions"><label class="endpoint-choice"><input type="checkbox" data-publish="${p.id}" ${enabled.includes(p.id)?'checked':''} ${!p.runnable&&!enabled.includes(p.id)?'disabled':''}> Am API-Endpunkt freigegeben</label><button class="secondary" data-edit="${p.id}">Bearbeiten</button><button class="secondary" data-copy="${p.id}">Duplizieren</button><button class="secondary" data-presets="${p.id}">Presets (${(p.presets||[]).length})</button><button class="secondary" data-delete="${p.id}">Löschen</button><button class="secondary" data-components="${p.id}">Einrichtung & Komponenten</button>${kind==='image'?`<button class="secondary" data-enhancers="${p.id}">Prompt-Aufwerter</button>`:''}</div></div></details>`).join('')||`<section class="empty"><h3>Noch keine Profile</h3><p>${models.length?'Wähle eine heruntergeladene Modelldatei und lege dein erstes Profil an.':'Lade zuerst eine Gewichtsdatei unter Entdecken herunter.'}</p></section>`;
|
||||
el('profile-list').innerHTML=rows.map(p=>`<details class="detail-row" data-row-id="${e(p.id)}" ${openRows.has(p.id)?'open':''}><summary class="detail-summary"><strong>${e(p.name)}</strong><span class="small">API-ID: ${e(p.api_id||p.name)}</span><span class="hub-filename">${e(p.model?.file||'Modelldatei nicht verfügbar')}</span><span>${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')}</span><span>${enabled.includes(p.id)?'API: freigegeben':'API: nicht freigegeben'}<small>${p.runnable?'Bereit · lädt bei Anfrage':'Einrichtung fehlt'}</small></span></summary><div class="detail-body"><p>${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(' · ')}</p>${kind==='image'?`<p>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')}</p>`:''}${CatalogUI.executionHTML(p.execution)}<details><summary>${p.runnable?(kind==='video'?'Laufzeit bereit · Video-Modus in Steuerung aktivieren':'Laufzeit bereit · lädt bei Anfrage'):'Was fehlt zur Ausführung?'}</summary>${p.blockers.map(t=>`<p>${e(t)}</p>`).join('')}</details><div class="card-actions"><label class="endpoint-choice"><input type="checkbox" data-publish="${p.id}" ${enabled.includes(p.id)?'checked':''} ${!p.runnable&&!enabled.includes(p.id)?'disabled':''}> Am API-Endpunkt freigegeben</label><button class="secondary" data-edit="${p.id}">Bearbeiten</button><button class="secondary" data-copy="${p.id}">Duplizieren</button><button class="secondary" data-presets="${p.id}">Presets (${(p.presets||[]).length})</button><button class="secondary" data-delete="${p.id}">Löschen</button><button class="secondary" data-components="${p.id}">Einrichtung & Komponenten</button>${kind==='image'?`<button class="secondary" data-enhancers="${p.id}">Prompt-Aufwerter</button>`:''}</div></div></details>`).join('')||`<section class="empty"><h3>Noch keine Profile</h3><p>${models.length?'Wähle eine heruntergeladene Modelldatei und lege dein erstes Profil an.':'Lade zuerst eine Gewichtsdatei unter Entdecken herunter.'}</p></section>`;
|
||||
el('profile-list').insertAdjacentHTML('afterbegin',`<p>${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.</p>`);
|
||||
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=`<section class="card editor"><h2>${data.id?'Profil bearbeiten':'Profil anlegen'}</h2><form id="profile-form"><div class="form-grid"><label>Anzeigename<input name="name" required minlength="2" maxlength="64" placeholder="z. B. Qwen3.8 27B MEDIUM" value="${e(data.name)}"></label><label>API-ID<input name="api_id" required maxlength="64" pattern="[A-Za-z0-9][A-Za-z0-9_-]{0,63}" value="${e(data.api_id||'')}"><span class="small">Stabile Kennung für Anwendungen. Umbenennen des Anzeigenamens ändert diese ID nicht.</span></label><label>Heruntergeladene Modelldatei<select name="model_id">${models.map(m=>`<option value="${m.id}" ${m.id===data.model_id?'selected':''}>${e(m.file)} · ${(m.size/1024**3).toFixed(2)} GiB</option>`).join('')}</select></label>${Object.entries(schema).filter(([k])=>!k.endsWith('penalty')).map(([k,[min,max,defaultValue]])=>`<label>${e(labels[k])}<input name="${k}" type="number" required min="${min}" max="${max}" step="${['guidance','speed','temperature','top_p','min_p','mtp_min_p','repeat_penalty','presence_penalty','frequency_penalty'].includes(k)?'any':['width','height'].includes(k)?64:1}" value="${e(data.parameters[k]??defaultValue)}"></label>`).join('')}</div>${kind==='video'?videoDevices(data):''}${kind==='chat'?`<h3>Penalties</h3><div class="form-grid">${['repeat_penalty','presence_penalty','frequency_penalty'].map(k=>{const [min,max,defaultValue]=schema[k];return `<label>${e(labels[k])}<input name="${k}" type="number" required min="${min}" max="${max}" step="any" value="${e(data.parameters[k]??defaultValue)}"></label>`;}).join('')}</div>`+gpuEditor(data.parameters)+`<p class="small">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.</p><h3>KV-Cache</h3><div class="form-grid">${["k","v"].map(axis=>`<label>${axis.toUpperCase()}-Cache<select name="cache_type_${axis}">${["q4_0","q8_0","f16"].map(type=>`<option value="${type}" ${(data.parameters[`cache_type_${axis}`]||"q4_0")===type?"selected":""}>${type}</option>`).join("")}</select></label>`).join("")}</div><p class="small">q4_0 spart VRAM; q8_0 und f16 brauchen mehr Speicher. K und V werden getrennt eingestellt. MTP-Draft-KV bleibt separat f16.</p><h3>Vision-Projektor</h3><label>Projektor<select name="vision_projector"><option value="">Kein Projektor zugeordnet · Vision aus</option>${projectors.map(x=>`<option value="${e(x.id)}" ${data.parameters.vision_projector===x.id?'selected':''}>${e(x.download_source?.repo||x.repo)} / ${e(x.download_source?.file||x.file)}</option>`).join('')}</select></label><section id="projector-discovery" class="card"></section><label>Projektor ausführen auf<select name="vision_device"><option value="cpu">CPU</option>${gpus.map(g=>`<option value="${e(g.uuid)}" ${data.parameters.vision_device===g.uuid?'selected':''}>${e(g.name)}</option>`).join('')}</select></label><p>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.</p><label><input name="mtp" type="checkbox" ${data.parameters.mtp?'checked':''}> MTP aktivieren (eingebautes Draft-Modul)</label><p class="small">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.</p>`:''}<p class="note">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.':''}</p><button>Profil auf Athena speichern</button><button class="secondary" type="button" id="profile-close">Schließen</button><p id="profile-error" role="alert"></p></form></section>`;
|
||||
if(kind==='chat'){const f=el('profile-form');f.insertAdjacentHTML('afterbegin',`<h3>Chat-Laufzeit</h3><label>Laufzeit<select name="chat_runtime"><option value="llama">llama.cpp</option><option value="strata">Strata</option></select></label><div id="strata-profile-fields"><p>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.</p><label>Strata-Layer-Schnitt<input name="strata_layer_split" type="number" min="1" max="47" value="${data.parameters.strata_layer_split??16}"></label><label>Experten<select name="strata_experts"><option value="resident">RAM-resident · GPU-Cache automatisch</option><option value="mmap">SSD/mmap · kann langsamer sein</option></select></label><p>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.</p></div>`);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',`<h3>Chat-Laufzeit</h3><label>Laufzeit<select name="chat_runtime"><option value="llama">llama.cpp</option><option value="strata">Strata</option></select></label><div id="strata-profile-fields"><p>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.</p><label>Strata-Layer-Schnitt<input name="strata_layer_split" type="number" min="1" max="47" value="${data.parameters.strata_layer_split??16}"></label><label>Experten<select name="strata_experts"><option value="resident">RAM-resident · GPU-Cache automatisch</option><option value="mmap">SSD/mmap · kann langsamer sein</option></select></label><p>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.</p></div>`);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='<summary>Erweitert: CPU-Threads</summary><p>CPU-Threads steuern CPU-Arbeit und Offloading, nicht die Anzahl der CUDA-Rechenkerne.</p>';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);
|
||||
|
||||
Reference in new issue
Block a user