error for the latest commit in modeling_minicpmv.py

#60
by safavakili - opened

latest commit (July 18th) in modeling_minicpmv.py returns error even after calling "chat" with list:

Traceback (most recent call last):
File "/home/summit/Storage/work/MiniCPM-V/web_demo_2.5.py", line 161, in chat
answer = model.chat(
File "/home/summit/.cache/huggingface/modules/transformers_modules/openbmb/MiniCPM-Llama3-V-2_5/86720f9af48d5c1cce1909b883a2869638d15b56/modeling_minicpmv.py", line 467, in chat
res, vision_hidden_states = self.generate(
File "/home/summit/.cache/huggingface/modules/transformers_modules/openbmb/MiniCPM-Llama3-V-2_5/86720f9af48d5c1cce1909b883a2869638d15b56/modeling_minicpmv.py", line 338, in generate
model_inputs = self._process_list(tokenizer, input_id_list, max_inp_length)
File "/home/summit/.cache/huggingface/modules/transformers_modules/openbmb/MiniCPM-Llama3-V-2_5/86720f9af48d5c1cce1909b883a2869638d15b56/modeling_minicpmv.py", line 212, in _process_list
padded[key], padding_length = pad(input_tensors, key, padding_side="left", device=self.device)
ValueError: not enough values to unpack (expected 2, got 1)

OpenBMB org

fixed, please try again

finalf0 changed discussion status to closed
Your need to confirm your account before you can post a new comment.

Sign up or log in to comment