Refresh IQ3 client context and compaction settings for 262K
This commit is contained in:
1 parent
0c0af6894a
commit
eda684eb83
7 files changed
+623
-2
No files matched your search
@@ -15,3 +15,25 @@ Official upstream multi-slot support: https://github.com/Niko1221/Strata/blob/ma
|
||||
Validation: five targeted unit tests cover 512K acceptance, rejection of one million/two slots, native/extended scaling, hardware tuning, reserve behavior and server command. No inference tests or service restarts performed during preparation.
|
||||
|
||||
Native Debian/restore: same pinned Strata runtime and weight revision from strata_sources.json; no new dependency. Deploy changed profiles.py, strata_worker.py, strata_sources.json and strata-ui.js with the native Deck app, then restart only in approved idle maintenance window. Profile entries and endpoint selection belong to encrypted Deck state backup. No credentials/weights in Git. Full native fresh-host restore is still unverified (see deploy/NATIVE_INSTALL_REQUIREMENTS.md).
|
||||
|
||||
## Client settings
|
||||
|
||||
Live IQ3 262144 correction applied to Mac/Unraid OpenCode. OpenWebUI IQ3 model
|
||||
parameter `compact_token_threshold` set to floor(context * .85) = 222822.
|
||||
Context Display and Tool Context Guard mappings updated to 262144. Private
|
||||
before-values stored in OpenWebUI settings-backups (not Git). No service restart.
|
||||
Persisted values verified; no full compaction/inference test while user is using
|
||||
Deck. UI or active client sessions may retain old settings until refreshed.
|
||||
|
||||
512K activation checklist additionally requires:
|
||||
- OpenCode: add pending API ID with context524288 after endpoint registration;
|
||||
remove IQ2 from client picker only after its endpoint is disabled.
|
||||
- OpenWebUI: create/update the 512K model's own threshold445644; preserve262K
|
||||
threshold222822 and thresholds of other profiles.
|
||||
- Raise official global context-compaction token_cap from222822 to445644 via
|
||||
authenticated settings UI/API. Installed implementation uses
|
||||
min(model-specific threshold or global fallback, global cap), so this step
|
||||
matters. Preserve fallback token_threshold80000 and retention_percentage40.
|
||||
- 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.
|
||||
@@ -50,3 +50,16 @@ https://docs.opencode.ai/docs/providers/#custom-provider
|
||||
No full OpenCode config, authentication values, private sessions or credentials
|
||||
are committed. Provider keys remained inside their existing configuration/auth
|
||||
stores and were not emitted by the updater or parser checks.
|
||||
|
||||
## Context refresh after benchmark, 2026-10-13
|
||||
|
||||
IQ3 now advertises 262144 in both Mac and Unraid configuration. Updated only
|
||||
this metadata, preserving the zero-output convention and all authentication.
|
||||
OpenCode's existing process may cache configuration; a newly opened session
|
||||
loads it, without restarting Deck or interrupting the current coding session.
|
||||
The Unraid parser still lists the canonical models successfully.
|
||||
|
||||
`models-after-512k-activation.json` is a **pending** list: it adds
|
||||
`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.
|
||||
@@ -352,7 +352,7 @@
|
||||
"flash-next-strata-iq3": {
|
||||
"name": "Qwen3.8 Flash-Next Strata IQ3 XXS",
|
||||
"limit": {
|
||||
"context": 131072,
|
||||
"context": 262144,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
@@ -392,4 +392,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,395 @@
|
||||
{
|
||||
"qwen3-8-27b-medium": {
|
||||
"name": "Qwen3.8 27B - Medium",
|
||||
"limit": {
|
||||
"context": 160000,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"gemma4-31b-32k": {
|
||||
"name": "Gemma4 31B - 32K",
|
||||
"limit": {
|
||||
"context": 32768,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": false
|
||||
},
|
||||
"qwen3-8-27b-fast": {
|
||||
"name": "Qwen3.8 27B - Fast",
|
||||
"limit": {
|
||||
"context": 76800,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-unzensiert": {
|
||||
"name": "Qwen3.8 27B - Unzensiert",
|
||||
"limit": {
|
||||
"context": 131072,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-large": {
|
||||
"name": "Qwen3.8 27B - Large",
|
||||
"limit": {
|
||||
"context": 192000,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-ultra": {
|
||||
"name": "Qwen3.8 27B - Ultra",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"qwen3-8-27b-lukes-devlab": {
|
||||
"name": "Qwen3.8 27B - Lukes Devlab",
|
||||
"limit": {
|
||||
"context": 131072,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"holo4-35b-a3b-medium": {
|
||||
"name": "Holo4 35B-A3B - Medium",
|
||||
"limit": {
|
||||
"context": 160000,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text",
|
||||
"image"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": false
|
||||
},
|
||||
"glm-4-7-flash-q5": {
|
||||
"name": "GLM-4.7-Flash - Q5",
|
||||
"limit": {
|
||||
"context": 200000,
|
||||
"output": 0
|
||||
},
|
||||
"modalities": {
|
||||
"input": [
|
||||
"text"
|
||||
],
|
||||
"output": [
|
||||
"text"
|
||||
]
|
||||
},
|
||||
"reasoning": false
|
||||
},
|
||||
"flash-next-strata-iq3": {
|
||||
"name": "Qwen3.8 Flash-Next Strata IQ3 XXS",
|
||||
"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-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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
# Globale Kontextanzeige für OpenWebUI
|
||||
|
||||
Stand: 8. Oktober 2026. Eigene kleine Filter-Funktion `athena_context_display`,
|
||||
aktiv und global im vorhandenen OpenWebUI. Kein Frontend-Patch, Container,
|
||||
zusätzlicher Dienst oder Neustart. Token Usage Display behält seinen
|
||||
Formatter und seine Einstellungen. Ein kleiner Adapter in dessen installiertem
|
||||
Funktionsinhalt übergibt die fertige Statistik über request-lokale Metadaten
|
||||
an den Kontextfilter. Dieser erzeugt eine gemeinsame abschließende Statuszeile.
|
||||
Die unveränderte Upstream-Datei im Community-Verzeichnis bleibt Referenz.
|
||||
|
||||
Korrektur 1.0.1: OpenWebUI zeigt die letzte sichtbare Statusmeldung. Zwei
|
||||
getrennte Meldungen hatten deshalb die Geschwindigkeitsanzeige verdrängt.
|
||||
Nun bleibt die Originalstatistik inklusive Dauer und Tokens/s vor `│ 🧠 Kontext`
|
||||
erhalten. Beide Filter bleiben aktiv/global, Priorität 10 vor 100.
|
||||
|
||||
Erweiterung 1.1.0: Die gleiche Zeile enthält zusätzlich Gesamtzeit seit dem
|
||||
`inlet` bis zum `outlet`, gemeldete Modellzeit aller Runden und geschätzte
|
||||
Restzeit. `request` markiert jede Provider-Anfrage; `stream` hält deren zuletzt
|
||||
gemeldete `prompt_ms + predicted_ms` (llama.cpp) oder
|
||||
`prompt_eval_duration + eval_duration` (Ollama). Kumulative Streaming-Zähler
|
||||
werden ersetzt statt für jeden Chunk erneut addiert. Die letzte nicht
|
||||
gestreamte Runde kann aus ihren gespeicherten Zeitwerten ergänzt werden.
|
||||
|
||||
Die Gesamtzeit beginnt beim Filter im Backend, nicht beim Klick im Browser,
|
||||
und endet vor abschließender Netzübertragung/TTS. Modellzeit enthält Prefill
|
||||
und Generierung inklusive Thinking für die beobachteten Provider-Anfragen.
|
||||
Die Restzeit ist ausdrücklich **keine isolierte Werkzeugmessung**: Sie enthält
|
||||
Tools, Warteschlangen, Netzwerk, Filter, Ergebnisaufbereitung und gegebenenfalls
|
||||
Modellaufrufe innerhalb externer Werkzeuge. Parallelität und serverseitige
|
||||
Zeitdefinitionen können die Differenz beeinflussen. Es werden keine
|
||||
Werkzeugfunktionen umhüllt, keine OpenWebUI-Quellen verändert und keine
|
||||
Prozess-/GPU-Zeitmessungen vorgenommen. Fehlende Zeitwerte einer Runde und
|
||||
widersprüchliche Summen werden angezeigt statt als Toolzeit ausgegeben.
|
||||
Freigabe-Wiederaufnahme kann eine neue Backend-Anfrage und damit ein neues
|
||||
Messfenster beginnen; menschliche Wartezeit davor ist nicht garantiert enthalten.
|
||||
|
||||
Die Statuszeile oberhalb der Antwort lautet beispielsweise:
|
||||
|
||||
> ⚡ 32.4 t/s │ 🧠 65.702 / 131.072 Token (50.1 %) │ ⌛ Gesamt: 16.2s · Modell: 12.8s
|
||||
|
||||
1.2.0: Auf Wunsch kompakt: nur Tokens/s, Kontextzahlen plus Prozent,
|
||||
Gesamt- und gesamte Modelllaufzeit. Ein-/Ausgabe, Gesamtverbrauch,
|
||||
Chatverbrauch, Cache, Einzelrundenzeit, Modellname, Restzeit und
|
||||
Verdichtungsschwelle ausgeblendet. Im Tokenfilter vorhandene Anzeige-Valves
|
||||
verwendet; im eigenen Filter `show_rest=false` und
|
||||
`show_compaction_threshold=false`. Messung der Zeitphasen bleibt bestehen.
|
||||
OpenWebUIs StatusItem begrenzt Text auf `line-clamp-1`; keine erzwungene
|
||||
zweite Zeile, kein CSS-/Frontend-Patch. Ältere Antworten behalten ihre
|
||||
damals gespeicherten Statusmeldungen.
|
||||
|
||||
## Berechnung und Grenzen
|
||||
|
||||
Der `outlet`-Hook erhält die gespeicherten Usage-Daten. Die installierte
|
||||
OpenWebUI-Version summiert `input_tokens`, `output_tokens`, `total_tokens`
|
||||
und Cache-Details über Werkzeugrunden, erhält aber `prompt_tokens` und
|
||||
`completion_tokens` als Werte der letzten Modellanfrage. Der Filter nutzt
|
||||
diese beiden Aliase, alternativ die Ollama-/llama.cpp-Aliase. Er verwendet
|
||||
niemals kumulierte Standardfelder oder aufsummierte Cache-Details.
|
||||
Fehlen brauchbare Aliase, erscheint ausdrücklich „unbekannt“; keine
|
||||
Zeichenheuristik und keine erfundene Tokenzahl.
|
||||
|
||||
Anzeige nach Abschluss, kein Live-Zähler während der Generation. Der Zähler
|
||||
ist Prompt plus letzte Ausgabe. Prozent beziehen sich auf das konfigurierte
|
||||
Profilfenster, nicht die Verdichtungsschwelle. Die separate Schwelle stammt
|
||||
aus den Modellparametern; sie beschreibt den konfigurierten Wert, nicht den
|
||||
Erfolg einer Verdichtung oder deren globale Aktivierung. Profilkontext ist
|
||||
bei Athena als gemeinsames Fenster (`context_scope=shared`) angegeben;
|
||||
Parallelbetrieb, Ausgabereserven und Worker-Slotgrenzen können das praktisch
|
||||
verfügbare Budget einer einzelnen Anfrage einschränken. Keine Garantie,
|
||||
dass jede Anfrage bis exakt 100 % angenommen wird.
|
||||
|
||||
`profile-windows.json` wurde aus den acht aktuellen Chat-Profilen in Decks
|
||||
`profiles.json` ausgelesen. Exakte API-IDs, keine Modellnamen-Heuristik.
|
||||
Die Valves-Zuordnung muss nach Änderungen der Profilgrößen oder API-IDs
|
||||
aktualisiert werden. Vom Anbieter im OpenWebUI-Modellobjekt übermittelte
|
||||
`context_window`/`meta.n_ctx` haben Vorrang. Neue unbekannte Profile zeigen
|
||||
Tokenzahl ohne Prozentwert. Arena und re-registry werden ausgelassen.
|
||||
|
||||
Der Filter ändert keine Nachrichten, Prompts, Modellparameter oder
|
||||
Tokenmetadaten. Kein Netzwerkzugriff, keine Credentials, kein eigener
|
||||
Request-Zustand. Hintergrundaufgaben werden ausgelassen. Fehler beim
|
||||
Anzeigen dürfen die eigentliche Antwort nicht unterbrechen.
|
||||
|
||||
## Installation, Restore und Rückfall
|
||||
|
||||
`filter.py` in OpenWebUIs Funktionen importieren, als Filter aktivieren und
|
||||
global setzen. `profile_windows` mit dem Inhalt der geprüften JSON-Datei
|
||||
befüllen; Priorität 100. Token Usage Display muss zuerst laufen und unmittelbar
|
||||
vor seinem `if stats_parts and __event_emitter__:` diese Übergabe enthalten:
|
||||
|
||||
```python
|
||||
if stats_parts and isinstance(__metadata__, dict):
|
||||
__metadata__['_athena_token_usage_status'] = v.separator.join(stats_parts)
|
||||
```
|
||||
|
||||
Keine zusätzlichen Python-Pakete über OpenWebUIs vorhandenes Pydantic hinaus.
|
||||
|
||||
`install.py` ist alternativ ein gezielter SQLite-Installer für bestehende
|
||||
OpenWebUI-Installationen. Parameter `--db` und `--backup-dir` explizit
|
||||
angeben; stdin ist JSON `{ "content": "<filter.py>", "windows": {...} }`.
|
||||
Er sichert beide betroffenen Einträge privat mit Modus 0600 und verändert nur
|
||||
den Kontextfilter und den beschriebenen Adapter im Tokenfilter. Dessen Valves
|
||||
werden auf die kompakte Anzeige eingestellt; Aktivierungsflags bleiben
|
||||
unverändert. Bei unbekanntem Upstream-Code
|
||||
bricht er ab statt blind zu verändern. Nach Tokenfilter-Updates den Adapter
|
||||
erneut prüfen/einspielen. Vor erneutem Einspielen lokale Valves-Änderungen prüfen.
|
||||
Aktuelle Sicherung:
|
||||
`/app/backend/data/backups/context-display-before-20261008T110143356480Z.json`.
|
||||
|
||||
Bei nativem Athena Deck bleibt diese Erweiterung im separat betriebenen
|
||||
OpenWebUI, ohne Abhängigkeit von einem Deck-Container. Profile über den
|
||||
konfigurierten Deck-Zustand wiederherstellen und Fensterzuordnung prüfen.
|
||||
OpenWebUI-Datenbank, Funktionsinhalt und Valves in dessen Sicherung aufnehmen.
|
||||
Eine komplette frische Debian-Installation plus Restore wurde hierfür
|
||||
nicht durchgeführt. Rückfall: ausschließlich `athena_context_display`
|
||||
deaktivieren; keine ganze Datenbank über neuere Chats zurückkopieren.
|
||||
|
||||
## Prüfung
|
||||
|
||||
Zwölf Tests in der Python-Umgebung des laufenden OpenWebUI bestanden:
|
||||
Tool-Loop-Summe vs. letzter Prompt, Cache einmalig, unbekannte kanonische
|
||||
Daten, Ollama, gleichzeitige unterschiedliche Profile, Hintergrundaufgaben
|
||||
defekter Event-Emitter und Erhalt der Statistik im abschließenden Status.
|
||||
Beide installierten Module anschließend über den Original-Plugin-Lader geladen
|
||||
und ihre Outlets in echter Reihenfolge mit gemeinsamem Metadatenobjekt geprüft:
|
||||
letzte Meldung enthält `⏱ 1.9s · ⚡ 67.8 t/s` sowie `21.310 / 160.000`.
|
||||
Der Original-Plugin-Lader lädt die installierte
|
||||
Funktion erfolgreich; aktiv/global zurückgelesen. Status-Events für alle
|
||||
acht Fenster geprüft. Mit den am Vortag aus dem ARR-Chat gelesenen Zahlen
|
||||
entsteht exakt die oben gezeigte Zeile. Der Originalchat war bei der
|
||||
Nachprüfung bereits gelöscht; keine neue Modellinferenz ausgeführt.
|
||||
Darstellung im echten Browserchat noch nicht Ende zu Ende beobachtet.
|
||||
Zusätzlich installiertes Modul mit zwei simulierten Modellrunden geprüft:
|
||||
10,0 s Gesamt, 3,4 s gemeldete Modellzeit, 6,6 s Rest. Bestehende Tokenstatistik
|
||||
und Kontextzeile bleiben in derselben letzten Meldung erhalten. Keine echte
|
||||
Werkzeugausführung oder Modellinferenz für diese Zeitprüfung.
|
||||
1.2.0: Beide installierten Outlets mit synthetischen Screenshot-Zahlen geprüft:
|
||||
32,4 t/s, 65.702/131.072 Token, 50,1 %, 16,2 s Gesamt und 12,8 s Modell.
|
||||
Verbrauchszahlen, Cache, Rest und Schwelle fehlen wie gewünscht.
|
||||
|
||||
Offizielle Schnittstelle:
|
||||
https://docs.openwebui.com/features/extensibility/plugin/functions/filter/
|
||||
|
||||
2026-10-13: active Strata IQ3 mapping corrected131072→262144 in both Context
|
||||
Display and Tool Context Guard; native model compaction threshold222822 set.
|
||||
`update-strata-context.py` performs the targeted correction and saves private
|
||||
before-values. Other model thresholds, prompts, credentials, and chats are not
|
||||
changed.512K metadata/threshold remain pending (see Strata512K preparation docs).
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"flash-next-strata-iq2": 262144,
|
||||
"flash-next-strata-iq3": 262144,
|
||||
"gemma4-31b-32k": 32768,
|
||||
"glm-4-7-flash-q5": 200000,
|
||||
"holo4-35b-a3b-medium": 160000,
|
||||
"qwen3-8-27b-fast": 76800,
|
||||
"qwen3-8-27b-large": 192000,
|
||||
"qwen3-8-27b-lukes-devlab": 131072,
|
||||
"qwen3-8-27b-medium": 160000,
|
||||
"qwen3-8-27b-ultra": 262144,
|
||||
"qwen3-8-27b-unzensiert": 131072
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
"""Targeted live correction; run inside OpenWebUI. Never reads chats or logs."""
|
||||
import datetime,json,os,sqlite3,time
|
||||
from pathlib import Path
|
||||
c=sqlite3.connect('/app/backend/data/webui.db');c.row_factory=sqlite3.Row
|
||||
c.execute('BEGIN IMMEDIATE')
|
||||
model=c.execute('select params from model where id=?',('flash-next-strata-iq3',)).fetchone();assert model,'IQ3 model missing'
|
||||
params=json.loads(model['params'] or '{}');threshold=262144*85//100
|
||||
before={'model_params':params.copy(),'functions':{}}
|
||||
changes=[]
|
||||
for ident in ('athena_context_display','athena_tool_context_guard'):
|
||||
row=c.execute('select valves from function where id=?',(ident,)).fetchone()
|
||||
if not row:continue
|
||||
valves=json.loads(row['valves'] or '{}');before['functions'][ident]=dict(valves)
|
||||
raw=valves.get('profile_windows',{})
|
||||
windows=json.loads(raw) if isinstance(raw,str) else dict(raw)
|
||||
windows['flash-next-strata-iq3']=262144
|
||||
valves['profile_windows']=json.dumps(windows,sort_keys=True) if isinstance(raw,str) else windows
|
||||
changes.append((ident,valves))
|
||||
folder=Path('/app/backend/data/settings-backups');folder.mkdir(exist_ok=True)
|
||||
p=folder/('strata-context-'+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)
|
||||
params['compact_token_threshold']=threshold
|
||||
c.execute('update model set params=?,updated_at=? where id=?',(json.dumps(params),int(time.time()),'flash-next-strata-iq3'))
|
||||
for ident,valves in changes:c.execute('update function set valves=?,updated_at=? where id=?',(json.dumps(valves),int(time.time()),ident))
|
||||
c.commit()
|
||||
assert json.loads(c.execute('select params from model where id=?',('flash-next-strata-iq3',)).fetchone()[0])['compact_token_threshold']==threshold
|
||||
for ident,valves in changes:
|
||||
assert json.loads(c.execute('select valves from function where id=?',(ident,)).fetchone()[0])==valves
|
||||
print(json.dumps({'model':'flash-next-strata-iq3','context':262144,'compact_token_threshold':threshold,'updated_filters':[i for i,v in changes],'saved_and_verified':True,'backup':str(p)}))
|
||||
Reference in new issue
Block a user