运行inference_with_vllm.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.
运行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}
Could you please share the version of your vLLM? This will help us better diagnose the issue.
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.
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.
Hi, @Tinyyuumi. To ensure proper evaluation environment setup, please update your environment by running:
cd Skywork-R1V bash ./eval/vlmevalkit/build_env.shThis 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.