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

是否能够进行多batch的推理? #338

Open
xinyinan9527 opened this issue May 13, 2024 · 0 comments
Open

是否能够进行多batch的推理? #338

xinyinan9527 opened this issue May 13, 2024 · 0 comments

Comments

@xinyinan9527
Copy link

我正在测试rwkv的推理速度,以及进行压测。
通过ab的方式确实可以进行压测,然而这些似乎都是单个batch_size的推理。如何使用多batch的推理呢
模型部署完成之后,使用

curl --location 'http://127.0.0.1:8000/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
  "messages": [
    {
      "role": "user",
      "content": "hello"
    }
  ]
}'

能够进行单batch推理。

我目前看到能够接收的input类型是:Union[str, List[str], List[List[int]], None],请问如何使用多batch的推理

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

1 participant