ColossalAI icon indicating copy to clipboard operation
ColossalAI copied to clipboard

[BUG]: Size mismatch is ignored when loading checkpoint

Open KimbingNg opened this issue 11 months ago • 0 comments

🐛 Describe the bug

In this code block, when size mismatch occurs, no error message is printed.

Fix: RuntimeError should be raise when len(error_msgs) > 0

Environment

No response

KimbingNg avatar Mar 22 '24 11:03 KimbingNg