[GH-ISSUE #4048] [Engine] Defaults per model alias (alias_sampling) #1752

Closed
opened 2026-11-04 01:53:44 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @furkangkhsn on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4048

Area

Engine

What do you want to do?

One loaded model that answers two ways depending on the model name, without a restart. My case: the engine runs with a refusal-direction control vector (--control-vector-scaled ... --cvec-mode project) and "sampling": {"experimental_speed_projection": false}. Clients should choose per request: qwen gets the plain model, qwen-uncensored gets the vector. Most clients, including the agent harness I use, can change the model name but cannot add a custom field like experimental_speed_projection.

Proposal, opt-in:

"alias_sampling": {"qwen-uncensored": {"experimental_speed_projection": true}}
  • A request whose model is that alias gets those settings where it does not set them itself, and the alias is listed as a model name.
  • Allowed settings: the keys and checks of POST /settings (clean_shared_defaults): reasoning_effort, temperature, top_p, top_k, seed, max_tokens, reasoning_budget_tokens, experimental_speed_projection.
  • Refused at start: a bad value, or the model's own name used as an alias.
  • Precedence: request > the shared Chat settings (POST /settings) > alias > the config's sampling and reasoning_effort.
  • Equivalent request fields count as set by the request:
    • max_completion_tokens for max_tokens;
    • reasoning, chat_template_kwargs or Anthropic thinking / output_config for the effort;
    • thinking_budget_tokens or Anthropic thinking.budget_tokens for the budget.
  • Where it applies: where the shared settings apply today (Service.with_shared: OpenAI chat and Anthropic messages), not /v1/responses.

The branch is ready (parse_alias_sampling and a few lines in with_shared, with tests). I'm opening it as a draft PR.

What do you do today instead?

A local patch of serve/server.py, re-applied after every update, or two servers with two run configs (twice the memory).

Originally created by @furkangkhsn on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4048 ### Area Engine ### What do you want to do? One loaded model that answers two ways depending on the model name, without a restart. My case: the engine runs with a refusal-direction control vector (`--control-vector-scaled ... --cvec-mode project`) and `"sampling": {"experimental_speed_projection": false}`. Clients should choose per request: `qwen` gets the plain model, `qwen-uncensored` gets the vector. Most clients, including the agent harness I use, can change the model name but cannot add a custom field like `experimental_speed_projection`. Proposal, opt-in: ```json "alias_sampling": {"qwen-uncensored": {"experimental_speed_projection": true}} ``` - A request whose `model` is that alias gets those settings where it does not set them itself, and the alias is listed as a model name. - **Allowed settings:** the keys and checks of POST /settings (`clean_shared_defaults`): `reasoning_effort`, `temperature`, `top_p`, `top_k`, `seed`, `max_tokens`, `reasoning_budget_tokens`, `experimental_speed_projection`. - **Refused at start:** a bad value, or the model's own name used as an alias. - **Precedence:** request > the shared Chat settings (POST /settings) > alias > the config's `sampling` and `reasoning_effort`. - **Equivalent request fields count as set by the request:** - `max_completion_tokens` for `max_tokens`; - `reasoning`, `chat_template_kwargs` or Anthropic `thinking` / `output_config` for the effort; - `thinking_budget_tokens` or Anthropic `thinking.budget_tokens` for the budget. - **Where it applies:** where the shared settings apply today (`Service.with_shared`: OpenAI chat and Anthropic messages), not `/v1/responses`. The branch is ready (`parse_alias_sampling` and a few lines in `with_shared`, with tests). I'm opening it as a draft PR. ### What do you do today instead? A local patch of `serve/server.py`, re-applied after every update, or two servers with two run configs (twice the memory).
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659905858 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1752
No description provided.