Skip to content

fix(studio): include loaded llama extra args in active model baseline - #10870

Merged
danielhanchen merged 10 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-active-model-llama-extra-args-cf2c
Oct 1, 2026
Merged

danielhanchen merged 10 commits into
unslothai:mainfrom
Souravrajvi0:feat/studio-active-model-llama-extra-args-cf2c

Conversation

@Souravrajvi0

@Souravrajvi0 Souravrajvi0 commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

useActiveModelConfig now copies loadedLlamaExtraArgs from the chat runtime store into llamaExtraArgs on the active-model baseline, so resident-process extra args match what is loaded.

Split from #10851 per maintainer review.

Test plan

  • tests/studio/test_model_picker_contracts.py::test_active_model_config_round_trips_gpu_fields

Also fixed here

  • A stored Auto speculative mode is kept as null (follow the global mode) while the runtime reports the mode it resolved, so the active-model comparison read null against "auto" and left "Reload model" enabled for every model on the default Auto setting, hiding the fix above. Only that comparison now resolves null to the global mode; presets and the Reset check keep null distinct from an explicit mode.
  • The settings editor re-seeds when only the running arguments change, so Apply cannot resend a stale list.
  • A status from a backend that does not report the running arguments now clears them on a model change instead of handing the previous model's list to the new one.

Before / after

A GGUF model (unsloth/Qwen3-0.6B-GGUF Q8_0) loaded with --no-warmup, the same arguments saved for the model, speculative mode on the default Auto, Run settings opened with nothing edited.

Before, "Reload model" is enabled although nothing changed; after, it is disabled.

Reload model enabled before, disabled after, with unchanged settings

Unticking "Remember for this model" with nothing else changed: before, the primary action is still "Reload model"; after, it is "Forget settings", with no reload.

Unticking Remember: Reload model before, Forget settings after

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Populate llamaExtraArgs from chat runtime loadedLlamaExtraArgs in
useActiveModelConfig so resident-process extra args match the live model.
@Souravrajvi0
Souravrajvi0 force-pushed the feat/studio-active-model-llama-extra-args-cf2c branch from 5bd0064 to 0b37397 Compare September 17, 2026 04:39
@danielhanchen danielhanchen self-assigned this Oct 1, 2026
@unslothai unslothai deleted a comment from chatgpt-codex-connector Bot Oct 1, 2026
@unslothai unslothai deleted a comment from Souravrajvi0 Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
danielhanchen pushed a commit to danielhanchen/unsloth-staging-2 that referenced this pull request Oct 1, 2026
@danielhanchen

Copy link
Copy Markdown
Member

pre-commit.ci run

@danielhanchen
danielhanchen merged commit a7d24c8 into unslothai:main Oct 1, 2026
47 of 50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants