mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-22 16:48:57 +00:00
Merge pull request #324 from DeVikingMark/fix/gradient-quantile-prefix
fix: use correct prefix for gradient quantiles with NaN/Inf
This commit is contained in:
commit
b8ec055942
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ class LogTrainingStats(Callback):
|
|||
and grad_data.size().numel() < 10000000
|
||||
):
|
||||
for q_idx, _ in enumerate(q):
|
||||
stats[f"param/{name}/quantile-{q[q_idx]}"] = -10
|
||||
stats[f"grad/{name}/quantile-{q[q_idx]}"] = -10
|
||||
|
||||
stats[f"grad/{name}/mean"] = grad_data.mean().item()
|
||||
if len(grad_data.shape) > 1 or grad_data.shape[0] > 1:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue