Skip to content

[Bug]: Conversation roles must alternate user/assistant/user/assistant/... in vllm for non-openai models in GroupChat #3597

Description

@xymou

Describe the bug

Hi!
Thanks for your excellent project! But I have encountered some bugs, when using vllm to serve local open-sourced llms for GroupChat, such as Llama2-7b-chat-hf and Mistral, there are messages like:

  1. role sequence like ['system','assistant','user'...] for the first speaker in the group
  2. role sequence like ['system','user','user'...] for other speakers
    and this would cause error " Conversation roles must alternate user/assistant/user/assistant/..."

I guess it is the result of chat template and I have read the case in https://microsoft.github.io/autogen/docs/topics/non-openai-models/local-vllm#chat-template. I tried the provided template for Mistral but the errors still exist.
I want to know how to solve this problem. Thank you!

Steps to reproduce

No response

Model Used

No response

Expected Behavior

No response

Screenshots and logs

No response

Additional Information

No response

Metadata

Metadata

Labels

0.2Issues which are related to the pre 0.4 codebasemodelsPertains to using alternate, non-GPT, models (e.g., local models, llama, etc.)

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions