mirror of
https://github.com/ollama/ollama-python.git
synced 2026-07-21 09:05:23 -04:00
Setting up top k , Max tokens , context length ? #51
Reference in New Issue
Block a user
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 @timtensor on GitHub (Mar 10, 2024).
Hi I am using an ollama chat model to call Mistral-model . How can one set the different parameters such as top k , top p, context, length and temperature ?
T
@mxyng commented on GitHub (Mar 19, 2024):
You can set it with the
optionskeyword parameter, e.g.ollama.chat(..., options={...}). There's an example here