[GH-ISSUE #229] [Feature]: Decouple model parameters from individual chats #88

Closed
opened 2026-10-20 17:25:00 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @rgwb10 on GitHub (Apr 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/229

Preface: Thank you for creating Marinara-Engine.

What problem does this solve?

Many LLM models have recommended parameters for best results (e.g. Temperature, TopP, MinP, TopK, presence_penalty, etc).
I could only find those settings associated with individual chats under "Chat Settings" -> "Advanced Parameters".
If you change models in the middle of a chat, you must adjust those settings each time.
Also those settings must be copied to any other chats when you use the model.
I swap between models a lot.

Proposed solution

Option 1: Keep the parameters independent from the connection and the chat. Greatest flexibility, but another dimension of settings to juggle.

Option 2: Move the parameters under the connection. Not quite as flexible, but I assume most people don't have a dozen different endpoints they juggle.

Alternatives considered

I'm not familiar enough with the whole program to really recommend anything concrete.

Additional context

I run LLMs in 3 ways:

  • locally (less VRAM, smaller models) with Oobabooga, maybe Koboldcpp or tabbyapi
  • remotely through rented cloud servers (more VRAM, bigger models) with Oobabooga, maybe Koboldcpp, tabbyapi or vLLM
  • Deepseek

I regularly swap between my models in the middle of chats (e.g. more creative vs. thinking), which involves unloading and loading a new one.
The endpoint stays the same, and the back-end program (Oobabooga/Koboldcpp/tabbyapi) controls what model is loaded.
All connected with Chat Completion.

Many LLM have recommended settings in their specification. For example, QwQ-32B recommends these parameters: Temperature=0.6, TopP=0.95, MinP=0, TopK=20-40, presence_penalty=0-2 (https://huggingface.co/Qwen/QwQ-32B)

Also, each model has different constraints on context size.
Deepseek claims 128k+ context window (but in practice it's smaller).
Local/cloud models have smaller context sizes by design, or are limited by VRAM.

At the individual chat level, some work better with lower temperature (e.g. logical discussion), others with higher temperature (e.g. creative writing).

So the endpoint, the model, and individual chats can each have some impact on the settings.

SillyTavern keeps the "Connection Profile" and the "Chat Completion Presets" separate.
That allowed me to leave the connection to my local LLM untouched when I swapped models in the backend.
When swapping a model on the back-end, I would then change the Chat Completion Preset to match the model's context size and parameters.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @rgwb10 on GitHub (Apr 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/229 Preface: Thank you for creating Marinara-Engine. ## What problem does this solve? Many LLM models have recommended parameters for best results (e.g. Temperature, TopP, MinP, TopK, presence_penalty, etc). I could only find those settings associated with individual chats under "Chat Settings" -> "Advanced Parameters". If you change models in the middle of a chat, you must adjust those settings each time. Also those settings must be copied to any other chats when you use the model. I swap between models a lot. ## Proposed solution Option 1: Keep the parameters independent from the connection and the chat. Greatest flexibility, but another dimension of settings to juggle. Option 2: Move the parameters under the connection. Not quite as flexible, but I assume most people don't have a dozen different endpoints they juggle. ## Alternatives considered I'm not familiar enough with the whole program to really recommend anything concrete. ## Additional context I run LLMs in 3 ways: * locally (less VRAM, smaller models) with Oobabooga, maybe Koboldcpp or tabbyapi * remotely through rented cloud servers (more VRAM, bigger models) with Oobabooga, maybe Koboldcpp, tabbyapi or vLLM * Deepseek I regularly swap between my models in the middle of chats (e.g. more creative vs. thinking), which involves unloading and loading a new one. The endpoint stays the same, and the back-end program (Oobabooga/Koboldcpp/tabbyapi) controls what model is loaded. All connected with Chat Completion. Many LLM have recommended settings in their specification. For example, QwQ-32B recommends these parameters: Temperature=0.6, TopP=0.95, MinP=0, TopK=20-40, presence_penalty=0-2 (https://huggingface.co/Qwen/QwQ-32B) Also, each model has different constraints on context size. Deepseek claims 128k+ context window (but in practice it's smaller). Local/cloud models have smaller context sizes by design, or are limited by VRAM. At the individual chat level, some work better with lower temperature (e.g. logical discussion), others with higher temperature (e.g. creative writing). So the **endpoint**, the **model**, and **individual chats** can each have some impact on the settings. SillyTavern keeps the "Connection Profile" and the "Chat Completion Presets" separate. That allowed me to leave the connection to my local LLM untouched when I swapped models in the backend. When swapping a model on the back-end, I would then change the Chat Completion Preset to match the model's context size and parameters. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:25:00 +07:00
Author
Owner

@DarkPulse commented on GitHub (Apr 25, 2026):

I think the best way to go for this would be as follows:

  1. Each model that gets loaded in is given a storage space by value. We do some kind of hash to account for users that might have renamed their models or whatever and to avoid having tons of pointless entries and/or mistakes (if Marinara isn't aware of the model swap, etc.). Admittedly not sure how to wrangle this for remote/API-based models though.
  2. The user is able to set pre-defined values for each of those models. Essentially, any new chat with this model will take those values and use them as the defaults.
  3. User is then able to tweak the parameters on a per-chat basis. Those get stored with the chats themselves; one chat won't affect another and new chats, as above, still pull the baseline values.
<!-- gh-comment-id:4320243785 --> @DarkPulse commented on GitHub (Apr 25, 2026): I think the best way to go for this would be as follows: 1. Each model that gets loaded in is given a storage space by value. We do some kind of hash to account for users that might have renamed their models or whatever and to avoid having tons of pointless entries and/or mistakes (if Marinara isn't aware of the model swap, etc.). Admittedly not sure how to wrangle this for remote/API-based models though. 2. The user is able to set pre-defined values for each of those models. Essentially, any new chat with this model will take those values and use them as the defaults. 3. User is then able to tweak the parameters on a per-chat basis. Those get stored with the chats themselves; one chat won't affect another and new chats, as above, still pull the baseline values.
Author
Owner

@SpicyMarinara commented on GitHub (Apr 28, 2026):

We already save parameters per connection; this feature was added recently. You can create a connection for a separate model and save the new parameters as its default.

<!-- gh-comment-id:4333953349 --> @SpicyMarinara commented on GitHub (Apr 28, 2026): We already save parameters per connection; this feature was added recently. You can create a connection for a separate model and save the new parameters as its default.
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
Pasta-Devs/Marinara-Engine#88
No description provided.