mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5374] [GUI] show saved KV format for packaged Qwen3.8 models #5408
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5408
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5374
Author: @zapabob
Created: 11/6/2026
Status: 🔄 Open
Base:
main← Head:codex/fix-native-kv-label📝 Commits (1)
340b96c[GUI] show saved KV format for packaged native models📊 Changes
2 files changed (+101 additions, -2 deletions)
View changed files
📝
apps/host/server/native-control.mjs(+12 -2)➕
apps/host/tests/native-installed-kv.test.mjs(+89 -0)📄 Description
Problem and result
A packaged Swift IQ2_XS run configuration saved with
--kv k8v4was shown asINT8in Models → Expert mode. The installed-model response omittedkv, so the existing selector used its fallback. The response now carries the recognised saved format for ordinary Flash-Next families, allowing the selector to restore that choice.Related discussion
Related saved-KV metadata work appeared in #4606, which consolidated #4436. The author withdrew the mixed branch in favour of focused submissions. This is an independently implemented and tested two-file fix against current main
9f7d977d220e9fdf2ec53cf2620cdadac1cfb24e.Approach
Read the selected run configuration using the same
captureUserArgsthenmergeUserArgsprecedence as a Host load, including removal throughargs_written; the last repeated--kvwins. Project only exactfp16,int8,q4_0andk8v4values for a matching ordinary Qwen3.8 catalog family. Missing, malformed or unknown values remain absent. Source-checkout metadata retains its existing behaviour.The production change is 12 additions and 2 deletions in one file. The regression test exercises
createNativeControl.refresh, verifies the serialised DTO and checks that reading metadata neither rewrites the configuration nor creates a model operation. The current refresh's catalog is passed explicitly so the first read works.Compatibility consequence: the existing direct-load shortcut compares
installed.kv. Once that value is known, choosing a different format can enter the existing preparation path. This PR does not establish that a changed selector value takes effect in a running engine.Validation
Passed:
340b96cf4ee164d3008f73a2a5f000a09f9e948d, Windows / Node 26.10.0, fromapps/host:node --test tests/native-installed-kv.test.mjs tests/user-args.test.mjs tests/native-control.test.mjs tests/native-checking-0213.test.mjs tests/native-settings-file.test.mjs tests/native-settings.test.mjs— 35 passed, 0 failed/skipped/cancelled.node --checkfor the changed server module and new test;git diff --check.K8 / V4, withmetadata.kv=k8v4; the saved configuration bytes stayed unchanged. No mocked routes/responses/DOM, model loading, preparation, apply operation or download was used.Failed:
Not run:
Limits
The real GUI runs use the official Host/React source with an existing fork-provided Control and signed component 0.5.1, copied and verified in private isolated state. They do not use a wholly official installer stack. Two existing top-level per-side cache keys in the unchanged input configuration remain visibly warned as unknown by the official Host; they are separate from its ordinary
--kv k8v4argument. No model was loaded, and no effective engine precision, speed or long-context capability is claimed. Private paths and raw configuration are not included in this PR.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.