transformers4.42.3版本,使用opencompass评估报错

#63
by amaing1 - opened

报错信息如下:
File "xxx/.cache/huggingface/modules/transformers_modules/glm-4-9b-chat/modeling_chatglm.py", line 891, in forward
full_attention_mask = self.get_masks(input_ids, past_key_values, padding_mask=attention_mask)
File "xxx/.cache/huggingface/modules/transformers_modules/glm-4-9b-chat/modeling_chatglm.py", line 783, in get_masks
past_length = past_key_values[0][0].shape[2]
AttributeError: 'str' object has no attribute 'shape'
这是否是因为和transformers版本冲突导致呢?

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

是,下降到4.40

zRzRzRzRzRzRzR changed discussion status to closed

Sign up or log in to comment