Skip to content

baichuan-inc/Baichuan-7B加载推理报错 #1860

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

Closed
xuhangscut opened this issue Dec 10, 2024 · 1 comment · Fixed by #1872
Closed

baichuan-inc/Baichuan-7B加载推理报错 #1860

xuhangscut opened this issue Dec 10, 2024 · 1 comment · Fixed by #1872
Labels
bug Something isn't working

Comments

@xuhangscut
Copy link
Contributor

xuhangscut commented Dec 10, 2024

Describe the bug/ 问题描述 (Mandatory / 必填)
baichuan-inc/Baichuan-7B加载推理报错

  • Hardware Environment(Ascend/GPU/CPU) / 硬件环境:

Please delete the backend not involved / 请删除不涉及的后端:
device ascend

  • Software Environment / 软件环境 (Mandatory / 必填):
    -- MindSpore version (e.g., 1.7.0.Bxxx) :2.3.1
    -- Python version (e.g., Python 3.7.5) :3.9
    -- OS platform and distribution (e.g., Linux Ubuntu 16.04):
    -- GCC/Compiler version (if compiled from source):

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

Please delete the mode not involved / 请删除不涉及的模式:
/mode pynative

To Reproduce / 重现步骤 (Mandatory / 必填)
Steps to reproduce the behavior:
推理代码来自:https://github.com/ResDream/BaichuanEval
运行gsm8k.py mmlu_eval.py 或者C-Eval.py
Expected behavior / 预期结果 (Mandatory / 必填)
A clear and concise description of what you expected to happen.

Screenshots/ 日志 / 截图 (Mandatory / 必填)
aad0f08a03f8f87787545e42162394b
从cumsum开始报错,修改成int() 报错full()takes 2 positional arguments but 3 were given然后删除了ops.full中的dtype报下图中的错误,不确定需要在value中添加什么tensor:
5eec41ad2ad02ec65bbcbc52c637d28

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

@xuhangscut xuhangscut added the bug Something isn't working label Dec 10, 2024
@lvyufeng
Copy link
Collaborator

大概知道是啥问题了,我修一下

@lvyufeng lvyufeng linked a pull request Dec 19, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants