运行实例报错

#5
by kklots - opened

File "/root/.cache/huggingface/modules/transformers_modules/modeling_cogvlm.py", line 452, in llm_forward
past_key_values_length = past_key_values[0][0].shape[2]
AttributeError: 'str' object has no attribute 'shape'

How to solve this problem? thx.

Knowledge Engineering Group (KEG) & Data Mining at Tsinghua University org

downgrade transformer lib to 4.40

Sign up or log in to comment