Deleting a branch is permanent. It CANNOT be undone. Continue?
Dear OpenI User
Thank you for your continuous support to the Openl Qizhi Community AI Collaboration Platform. In order to protect your usage rights and ensure network security, we updated the Openl Qizhi Community AI Collaboration Platform Usage Agreement in January 2024. The updated agreement specifies that users are prohibited from using intranet penetration tools. After you click "Agree and continue", you can continue to use our services. Thank you for your cooperation and understanding.
For more agreement content, please refer to the《Openl Qizhi Community AI Collaboration Platform Usage Agreement》
问题描述
运行mindspore.load_param_into_net,加载 checkpoint 文件,报错:ValueError: not enough values to unpack (expected 2, got 0)
相关环境(GPU/NPU)
智算集群 NPU
相关集群(启智/智算)
智算
任务类型(调试/训练/推理)
调试
任务名
lld20202306201028412
日志说明或问题截图
ValueError Traceback (most recent call last)
in
5 param_dict = mindspore.load_checkpoint("gpt_answer_epoch_0_checkpoint_3.0_0.15903999.ckpt")
6
----> 7 param_not_load, _ = mindspore.load_param_into_net(model, param_dict)
8 print(param_not_load)
9
ValueError: not enough values to unpack (expected 2, got 0)
gpt_answer_epoch_0_checkpoint_3.0_0.15903999.ckpt文件大小为400M,是文件太大,无法在调式时加载吗?
期望的解决方案或建议
找出解决办法或原因
文件大小400M文件不大,可以在调试环境下加载。请检查你的代码。
ValueError: not enough values to unpack (expected 2, got 0)
这个错误可能的原因,不是无数据吗
ValueError: not enough values to unpack (expected 2, got 0)
这个错误可能的原因,不是无数据吗
ValueError: not enough values to unpack (expected 2, got 0)
这个错误可能的原因有哪些呢?
给的日志信息太少,无法判断具体是什么问题