Skip to content
Discussion options

You must be logged in to vote

The startup flags are only defaults — sampling is per-request, so nothing stops you sending different values for the two modes.

/completion takes them in the body (tools/server/README.md):

temperature: Adjust the randomness of the generated text. Default: 0.8
top_p: Limit the next token selection to a subset of tokens with a cumulative probability above a threshold P. Default: 0.95
presence_penalty: Repeat alpha presence penalty. Default: 0.0, which is disabled.

and the OpenAI-compatible endpoints accept the same, so any client that lets you save two presets gives you exactly what Qwen recommends without restarting anything.

What doesn't exist is a runtime switch on the server side. POST…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@dagbdagb
Comment options

@MLuc24
Comment options

@dagbdagb
Comment options

@MLuc24
Comment options

Answer selected by dagbdagb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants