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

[Usage]: how to let vllm use the generation_config.json as the default generation config #8664

Open
chiaitian opened this issue Sep 20, 2024 · 2 comments
Labels
usage How to use vllm

Comments

@chiaitian
Copy link

chiaitian commented Sep 20, 2024

Your current environment

The output of `python collect_env.py`

vLLM Version: 0.6.1.post2@9ba0817ff1eb514f51cc6de9cb8e16c98d6ee44f
model: Qwen2-VL-7B-Instruct

How would you like to use vllm

My starting cmd python -m vllm.entrypoints.openai.api_server --served-model-name Qwen2-VL-7B-Instruct --model /data/modelscope_cache/Qwen/Qwen2-VL-7B-Instruct

The log is showing
image
These configs are not the same as ones in the generation_config.json.

Two questions:

  1. Does vllm use the generation_config.json as the default generation config?
  2. If not, how to set?
@chiaitian chiaitian added the usage How to use vllm label Sep 20, 2024
@DarkLight1337
Copy link
Member

Sorry for late reply. vLLM does use generation config, as shown in https://github.com/vllm-project/vllm/blob/main/vllm/transformers_utils/config.py#L386

However I'm not sure whether this works for modelscope.

@hdnh2006
Copy link

Your current environment

The output of `python collect_env.py`

vLLM Version: 0.6.1.post2@9ba0817ff1eb514f51cc6de9cb8e16c98d6ee44f model: Qwen2-VL-7B-Instruct

How would you like to use vllm

My starting cmd python -m vllm.entrypoints.openai.api_server --served-model-name Qwen2-VL-7B-Instruct --model /data/modelscope_cache/Qwen/Qwen2-VL-7B-Instruct

The log is showing image These configs are not the same as ones in the generation_config.json.

Two questions:

  1. Does vllm use the generation_config.json as the default generation config?
  2. If not, how to set?

I was facing the same issue and this is how I solved it: #11861 (comment)

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

No branches or pull requests

3 participants