Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document Request #1900

Closed
oroojlooy opened this issue May 15, 2024 · 2 comments
Closed

Document Request #1900

oroojlooy opened this issue May 15, 2024 · 2 comments

Comments

@oroojlooy
Copy link

oroojlooy commented May 15, 2024

Feature request

In Text-Generation-Inference (TGI), I see that there is a parameter of --max-batch-total-tokens, indicating that there is a batch request capability available via TGI. But, when I see the API guide, I cannot find anything related to that. For example, for /generate, the input is

{
  "inputs": "My name is Olivier and I",
  "parameters": {
    "best_of": 1,
    "decoder_input_details": false,
    "details": true,
    "do_sample": true,
    "frequency_penalty": 0.1,
    "grammar": null,
    "max_new_tokens": 20,
    "repetition_penalty": 1.03,
    "return_full_text": false,
    "seed": null,
    "stop": [
      "photographer"
    ],
    "temperature": 0.5,
    "top_k": 10,
    "top_n_tokens": 5,
    "top_p": 0.95,
    "truncate": null,
    "typical_p": 0.95,
    "watermark": true
  }
}

which cannot handle batch requests. I was wondering if there is a batch-request support, and if so, it would be great to add some API guideline/documentation for that.

Motivation

N/A

Your contribution

N/A

@ktrapeznikov
Copy link

you can just send multiple simultaneous requests and the TGI will automatically batch them up

@oroojlooy
Copy link
Author

you can just send multiple simultaneous requests and the TGI will automatically batch them up

Oh OK. That makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants