add grad_norm and num_tokens to TrainingProgress response object

This commit is contained in:
Roland Tannous 2026-02-03 10:35:58 +00:00
commit 7bb0aeb756

View file

@ -97,4 +97,6 @@ class TrainingProgress(BaseModel):
epoch: Optional[int] = Field(None, description="Current epoch")
elapsed_seconds: Optional[float] = Field(None, description="Time elapsed since training started")
eta_seconds: Optional[float] = Field(None, description="Estimated time remaining")
grad_norm: Optional[float] = Field(None, description="L2 norm of gradients, computed before gradient clipping")
num_tokens: Optional[int] = Field(None, description="Total number of tokens processed so far")