obsidian_backup/InterestingStuffs/本地知识库+大模型/ollama 设置模型上下文大小.md

263 B

https://github.com/cline/cline/discussions/241

terminal

touch modelfile 打开modelfile vim modelfile

粘贴 (类似)

FROM qwen2.5:14b
PARAMETER num_ctx 65536

wq

ollama create -f modelfile qwen2.5:14b:custom

ollama show qwen2.5:14b:custom