Skip to content

Conversation

@YanhuiDua
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@HAOCHENYE HAOCHENYE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

後続で PR を提出して train_step のロジックを整理し、ログ関連のコードを抽出することを提案します。現在の内容が多すぎて、重要なコードが見つからなくなっています。

mini_batch_metrics.setdefault(k, []).append(cast(float, v))

for key, value in mini_batch_metrics.items():
avg_value = sum(value) / len(value)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

の値が空のリストになる可能性はあり、0除算エラーが発生することはありますか

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, done

@YanhuiDua
Copy link
Collaborator Author

後続で PR を提出して train_step のロジックを整理し、ログ関連のコードを抽出することを提案します。現在の内容が多すぎて、重要なコードが見つからなくなっています。

是的 ,后面rl trainer考虑单独处理日志

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants