InternVL icon indicating copy to clipboard operation
InternVL copied to clipboard

AttributeError: 'InternVLChatModel' object has no attribute 'batch_chat'

Open longgb246 opened this issue 1 year ago • 0 comments

      3 prompts = ['帮我提取图中的信息,以json的格式直接返回内容'] * len(image_counts)
      4 responses = model.batch_chat(tokenizer, pixel_values,
      5                              image_counts=image_counts,
      6                              questions=prompts,
      7                              generation_config=generation_config)

File /usr/local/lib/python3.8/site-packages/torch/nn/modules/module.py:1688, in Module.getattr(self, name) 1686 if name in modules: 1687 return modules[name] -> 1688 raise AttributeError(f"'{type(self).name}' object has no attribute '{name}'")

AttributeError: 'InternVLChatModel' object has no attribute 'batch_chat'

你好,请问一下,使用官网给的例子报错了,没有 batch_chat 这个是什么原因呢?

longgb246 avatar May 23 '24 11:05 longgb246