Skip to content

Is it ok to directly modify model.cfg.n_ctx? #961

@notoookay

Description

@notoookay

Hi, I have a question about model configuration. I want to use the model with a longer context. As most of the models' default context window is set to 2048, is it okay to change to a larger value below the original model context window, like 4096? Will it affect something like performance?
Btw, I saw a similar issue #491, it may help clarify my question.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions