Skip to content

Add a --max-tokens parameter #175

Description

@ecky-l

A max_tokens value is usually sent from the client to indicate how many tokens are to be expected maximally in a prompt. Models can use it to allocate space on device for the prompt processing. If ommited, the current behavior of OpenArc is to set a default of 16k, which might be too high.

This feature request is about providing a parameter --max-tokens to the openarc add ... command to configure the default max_tokens value if clients ommit it. With this option the value can be set to a lower value, i.e. 1024, if the prompts are expected to never be larger than 1024, which leads to a more gentle space allocation on device.

Note:

I have implemented this in my fork here. Unfortunately I mixed it up with another story (which I will write shortly) in the same commit... but will provide a PR shortly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions