Skip to content

mlx_lm.server: how to set context size? #1170

Description

@chigkim

It looks like I can set context size on mlx_lm.generate with --max-kv-size.
However, mlx_lm.server doesn't seem to have that option from command line nor api via http request.
Does it just allocate the maximum context size for the loaded model?
Or, max-kv-size is not what I'm thinking?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions