mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #229] [Feature]: Decouple model parameters from individual chats #88
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#88
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?
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:
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:
@DarkPulse commented on GitHub (Apr 25, 2026):
I think the best way to go for this would be as follows:
@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.