Skip to content

feat: remember each model's settings in Set Model; 11669:1 → 11669:2 - #42

Merged
MattDHill merged 1 commit into
Start9Labs:masterfrom
13Homer13:feat/remember-model-settings
Oct 26, 2026
Merged

MattDHill merged 1 commit into
Start9Labs:masterfrom
13Homer13:feat/remember-model-settings

Conversation

@13Homer13

Copy link
Copy Markdown
Contributor

Problem

In Set Model, you pick Custom with a repo, context size and extra flags, then switch to another model. When you go back, the model shows up as a downloaded entry. That entry has no fields and runs at a fixed -c 8192 -ngl 999 with no extra flags. Every non-Custom submit also cleared modelSelection.custom, so the only way back was to retype everything in Custom. Known limitation 9 in the README documented this.

Change

  • Per-model settings. Each preset and each downloaded entry now has Context size / GPU layers / Extra arguments, the same fields and i18n keys as Custom, defined once in settingsFields. They are prefilled from a new store.json modelSettings list.
  • How entries are matched. An entry is found by the weights it resolves to: the same cached file, or the same quant tag before download. This reuses targetFile through a sameModel helper extracted from matchingPreset. A Custom repo:QUANT therefore keeps its settings once it appears as a downloaded entry.
  • Older stores. Stores from before this change fall back to modelSelection.custom, so no migration is needed.
  • Custom stays prefilled. modelSelection.custom is no longer cleared when you pick another entry.
  • The running model is selectable so you can change its settings in place. When the selected entry is the running model, its original -hf/-hff arguments are kept. Unchanged settings then produce identical serveArgs, and the deep-equal .const() in main doesn't restart.
  • README, instructions and release notes (5 locales) are updated. Known limitation 9 and the "fixed settings" caveat in instructions.md are gone.

Verified (dev box, generic x86, sideloaded over 11669:1)

  • npx tsc --noEmit and VARIANT=generic make arches ARCHES=x86 both pass.
  • Update from 11669:1: the running preset is the form's default and is no longer disabled. Every entry shows its fields.
  • I ran Custom unsloth/Llama-3.2-1B-Instruct-GGUF:Q2_K with ctx 4096 and --temp 0.5, then switched to the 1B preset with ctx 2048. The form now shows the downloaded Q2_K entry prefilled with 4096 and --temp 0.5, the preset with 2048, and Custom still prefilled.
  • Selecting the Q2_K entry gives -hf … -hff Llama-3.2-1B-Instruct-Q2_K.gguf -c 4096 --temp 0.5. I read that from the llama-server /proc cmdline.
  • Re-submitting the running entry unchanged doesn't restart it (process elapsed time 260 s → 280 s). Changing ctx to 3072 restarts it with -c 3072.
  • With Custom repo:Q2_K running, re-submitting through its downloaded entry keeps -hf repo:Q2_K and doesn't restart.
  • modelSettings keeps one entry per model.

Not verified

  • GPU variants: -ngl is only passed there, and the dev box is CPU-only.
  • The modelSelection.custom fallback on a real 11669:1 store that had Custom selected: the dev box had a preset running before the update.
  • How the dashboard renders the new fields. I checked the form spec and values through start-cli, not in the UI.

🤖 Generated with Claude Code

A Custom model with its own context size and flags lost them once the
user switched away: it came back as a downloaded entry with no fields,
fixed at -c 8192 -ngl 999 and no extra flags, and every non-Custom
submit cleared modelSelection.custom.

Every preset and downloaded entry now carries Context size / GPU layers
/ Extra arguments, prefilled from a new store.json `modelSettings` list
(one entry per model, matched by the weights it resolves to, falling
back to modelSelection.custom for older stores). The running model is
selectable so its settings can be changed in place; submitting it
unchanged keeps its original -hf/-hff arguments, so serveArgs are
identical and the daemon does not restart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MattDHill
MattDHill requested a review from helix-white October 26, 2026 15:14

@helix-white helix-white left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved. No correctness regressions found in the settings persistence, target matching, prefill, or argument-generation changes. The PR merges cleanly into master, and the SDK pin matches the latest published version (3.1.0).

Verification: npm install --ignore-scripts and npx tsc --noEmit passed. A temporary harness exercising the actual action code with mocked SDK/storage/cache dependencies passed for both CPU and GPU argument paths: per-model defaults and retention, Custom-to-downloaded matching, settings-entry deduplication, unchanged submissions preserving serveArgs, and the older-store Custom fallback. All five CI checks passed, including generic, NVIDIA, ROCm, and Vulkan builds.

I did not rebuild the package, install it, or test dashboard rendering or GPU execution; the harness checks action behavior, not those runtime surfaces.

Helix-Harness: pi
Helix-Model: openai-codex/gpt-6.1-sol

@MattDHill
MattDHill merged commit df9d099 into Start9Labs:master Oct 26, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants