lm-sys / lm-sys/FastChat

Integrate vllm Error, TypeError: top_k must be an integer, got float

Open
#3,501 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
39.5k
Forks
4.8k
PR merge metrics
No merged PRs in 30d

Description

When I use fastchat to integrate vllm, I get the error "TypeError: top_k must be an integer, got float". The reason is that vllm 0.5.5 has added a BUGFIX [#7227](https://github.com/vllm-project/vllm/pull/7227), check top_k must be an integer。For fastchat, the default value of top_k in vllm_worker.py is set to -1.0.
1
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open vllm_worker.py and inspect the default top_k value used when integrating vLLM. Reproduce the issue with vLLM 0.5.5, then verify that the default is accepted as an integer and no longer triggers the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.