Skip to content

Add context window size to Custom Model #418

Description

@ackalker

Is your feature request related to a problem? Please describe.
The current documentation in https://github.com/logancyang/obsidian-copilot/blob/master/local_copilot.md instructs Ollama users to use ollama run <model> and /set parameter num_ctx <value> to change the context window size for Ollama models. This is IMHO way too cumbersome and hardly necessary, as the desired context size can be specified in each API request. The Ollama server will (re)initialize the model with new parameter values (including num_ctx) when it detects a change from their default or previous values.

Describe the solution you'd like

Describe alternatives you've considered
Explain to users how they can create their own Ollama models derived from base models using ollama create <model> with a Modelfile containing the desired changes. This can even be done programmatically, instead of running each and every model in turn using ollama run <model> to set parameters.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions