Update check_loss utility for loss extraction#4759
Merged
zjjlivein merged 1 commit intoJul 10, 2026
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
PaddleFormers Log Analysis
日志分析报告
失败的测试case: 根本原因分析: 修复建议:
🔄 每次 Re-run 后自动更新 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动内容
更新
tests/integration_test/check_loss.py:write_loss_file辅助函数,统一写出 loss 文件的逻辑--extract_loss_only参数:仅从日志中提取 loss 值并写出,不依赖 ground truth 文件--gt_file改为非必填(--extract_loss_only模式下可不传)loss_pattern正则测试
本地
python -m py_compile通过,未做行为破坏性改动,其余分支逻辑保持一致。🤖 Generated with Claude Code