Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BloomModel 的 forward 方法中,模型现在期望 past_key_values 是一个元组(tuple) #1683

Open
1hb6s7t opened this issue Sep 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@1hb6s7t
Copy link
Contributor

1hb6s7t commented Sep 25, 2024

**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) / 硬件环境:Ascend

  • 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):

  • Excute Mode / 执行模式 (Mandatory / 必填)(PyNative/Graph): > /mode graph

To Reproduce / 重现步骤 (Mandatory / 必填)
将数据集进行配置后并训练
屏幕截图 2024-09-25 104544
报错AttributeError: 'tuple' object has no attribute 'get_seq_length'

**Expected behavior / 预期结果 (Mandatory /

/ 截图 (Mandatory / 必填)**
屏幕截图 2024-09-25 092831

屏幕截图 2024-09-25 094224

Additional context / 备注 (Optional / 选填)
Add any other context about the problem here.

@1hb6s7t 1hb6s7t added the bug Something isn't working label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant