Skip to content

[Tracking] Fix the context length fetching in local mode #1013

@tqchen

Description

@tqchen

We compile different libraries using separate max-context-length parameter to limit the amount of memory used. After the recent distributed support we switched to read max-ctx-len from mlc-chat-config.json.

While this change is necessary for distributed (since it is harder to fetch meta-data in host), it is still useful for local-mode where some truncated limit be applied in the libraries.

When there is inconsistency in the config, the app can crash instead of truncating input correctly

Action Items

Links to Related Issues and PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions