Skywork-R1V icon indicating copy to clipboard operation
Skywork-R1V copied to clipboard

运行inference_with_vllm.py报错

Open Tinyyuumi opened this issue 1 year ago • 5 comments

You are using a model of type skywork_chat to instantiate a model of type internvl_chat. This is not supported for all configurations of models and can yield errors.

Tinyyuumi avatar Jul 14 '25 02:07 Tinyyuumi

运行inference_with_transformer.py同样会报错。运行到该部分 outputs = self.language_model.generate( inputs_embeds=input_embeds, attention_mask=attention_mask, generation_config=generation_config, output_hidden_states=output_hidden_states, use_cache=True, **generate_kwargs, ) 报错:TypeError: 'NoneType' object is not callable. 只要加入了参数 **generate_kwargs就会报该错误,但该参数是正常的 generate_kwargs {'max_new_tokens': 64000, 'do_sample': True, 'temperature': 0.6, 'top_p': 0.95, 'repetition_penalty': 1.05, 'eos_token_id': 151645}

Tinyyuumi avatar Jul 14 '25 03:07 Tinyyuumi

Could you please share the version of your vLLM? This will help us better diagnose the issue.

fakerbaby avatar Jul 14 '25 04:07 fakerbaby

My vLLM version is 0.9.2rc2.dev208+g247102f07.d20250713.cu122. I change every "block_shape: Optional[list[int]]" to "block_shape: Optional[List[int]]" in the file "fused_moe.py" and then my code run well. Although the warning still emerged, it does not affect the operation.

But I can't fix the error in "inference_with_transformer.py".

You are using a model of type skywork_chat to instantiate a model of type internvl_chat. This is not supported for all configurations of models and can yield errors.

Tinyyuumi avatar Jul 14 '25 05:07 Tinyyuumi

Hi, @Tinyyuumi. To ensure proper evaluation environment setup, please update your environment by running:

cd Skywork-R1V
bash ./eval/vlmevalkit/build_env.sh

This will configure all necessary dependencies for the benchmark evaluation and inference. If you encounter any issues during setup, please let us know.

fakerbaby avatar Jul 14 '25 08:07 fakerbaby

Hi, @Tinyyuumi. To ensure proper evaluation environment setup, please update your environment by running:

cd Skywork-R1V
bash ./eval/vlmevalkit/build_env.sh

This will configure all necessary dependencies for the benchmark evaluation and inference. If you encounter any issues during setup, please let us know.

Thanks a lot. As the code can run for now, I won't reconfigure the environment. If there are still any questions, we can study them further.

Tinyyuumi avatar Jul 14 '25 11:07 Tinyyuumi