Repository navigation
vLLM generating repeated/duplicate responses #12276
Replies: 7 comments 1 reply
|
Facing the same issue - tried the same change or parameters removing |
|
This is a really serious issue. Have you tried turning off APC using the following option? |
|
Any update on how to avoid this issue? |
|
I have this same problem with Qwen 0.6B, the default vLLM model. I am serving it with vLLM on an NVIDIA GeForce RTX 3060 12 GB with Docker Compose. Here is the PowerShell script I use to generate completions: And the output looks like this (I inserted |
|
Have you found a good solution? |
|
After a lot of debugging I checked the params file in hugging face and discovered I forgot to set the stop parameter ( https://docs.vllm.ai/en/v0.8.4/api/inference_params.html ) and this is what caused the repetition in future replies. It worked the same as llama.cpp once I set it. I hope this helps unblock you. |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am trying to serve a LLAMA 70B fine tuned model using vLLM on A100 80GB GPU. The model is fine tuned for chat assistant use case. I notice after 10-15 message conversation, the LLM response start to repeat itself. Below is an example:
User: Hello
Assistant: How are you ?
.
// assume 10 - 15 messages in between
.
.
User: How bad is world economy?
Assistant: World economy is really bad these days due to war.
User: What about US economy?
Assistant: World economy is really bad these days due to war.
User: Why are some people good and bad?
Assistant: World economy is really bad these days due to war.
User: Why do men earn higher than women?
Assistant: World economy is really bad these days due to war.
Currently, I want the server to handle 10 concurrent requests, each having a fixed prompt with 1350 token length. Therefore, I set the following arguments as
--max-model-len 4096,--max-seq-len 10,--max-num-batched-tokens 40960bitsandbytesquantization, I still get the repeated response.vllm/vllm-openai:latest--enable-prefix-cachingas well but still no effectrepetition_penalty,frequency_penalty,presence_penaltybut still not effect.Note: I don't get this problem when I deploy the model using llama.cpp, everything seems to work fine.
How can I fix this repetition issue? Looking for some guidance here.
All reactions