You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Software Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :2.4.0daily
-- Python version (e.g., Python 3.7.5) :Python 3.9
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):euler_2.10.7
-- GCC/Compiler version (if compiled from source):
**Describe the bug/ 问题描述 (Mandatory / 必填)**past_key_values 的数据类型上,模型期望 past_key_values 是一个具有 get_seq_length() 方法的对象,但实际上它是一个元组(tuple),BloomModel 的 forward 方法中,模型现在期望 past_key_values 是一个 Cache 类的实例,而不是元组(tuple)
Hardware Environment(
Ascend
/GPU
/CPU
) / 硬件环境:AscendSoftware Environment / 软件环境 (Mandatory / 必填):
-- MindSpore version (e.g., 1.7.0.Bxxx) :2.4.0daily
-- Python version (e.g., Python 3.7.5) :Python 3.9
-- OS platform and distribution (e.g., Linux Ubuntu 16.04):euler_2.10.7
-- GCC/Compiler version (if compiled from source):
Excute Mode / 执行模式 (Mandatory / 必填)(
PyNative
/Graph
): > /mode graphTo Reproduce / 重现步骤 (Mandatory / 必填)
将数据集进行配置后并训练
报错AttributeError: 'tuple' object has no attribute 'get_seq_length'
**Expected behavior / 预期结果 (Mandatory /
/ 截图 (Mandatory / 必填)**
Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: