-
Notifications
You must be signed in to change notification settings - Fork 598
Report serverless metrics #424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/art/serverless/backend.py
Outdated
| self._wandb_runs: dict[str, Run] = {} | ||
| self._weave_clients: dict[str, WeaveClient] = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need this
src/art/serverless/backend.py
Outdated
| from wandb.sdk.wandb_run import Run | ||
| from weave.trace.weave_client import WeaveClient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need this
src/art/client.py
Outdated
| async def report_metrics( | ||
| self, *, model_id: str, step: int | Literal["latest"], metrics: dict[str, float] | ||
| ) -> ReportMetricsResponse: | ||
| return await self._post( | ||
| f"/preview/models/{model_id}/checkpoints/{step}/report_metrics", | ||
| body={"metrics": metrics}, | ||
| cast_to=ReportMetricsResponse, | ||
| options=dict(max_retries=0), | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need this
src/art/client.py
Outdated
| class ReportMetricsResponse(BaseModel): | ||
| success: bool |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we need this
No description provided.