-
Notifications
You must be signed in to change notification settings - Fork 19.8k
feat(model-profiles): distribute data across packages #34024
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
base: master
Are you sure you want to change the base?
Conversation
CodSpeed Performance ReportMerging #34024 will degrade performances by 23.77%Comparing
|
| Mode | Benchmark | BASE |
HEAD |
Change | |
|---|---|---|---|---|---|
| ❌ | WallTime | test_async_callbacks_in_sync |
18.4 ms | 24.2 ms | -23.77% |
| ❌ | WallTime | test_import_time[HumanMessage] |
236.9 ms | 263.6 ms | -10.11% |
Footnotes
-
No successful run was found on
master(ee3373a) during the generation of this report, so 525d5c0 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩ -
6 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩
| @model_validator(mode="after") | ||
| def _set_model_profile(self) -> Self: | ||
| """Set model profile if not overridden.""" | ||
| if not self.profile: | ||
| self.profile = MODEL_PROFILES.get(self.model) | ||
|
|
||
| return self |
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.
this should be a field validator I think?
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 think it needs to be a model validator because it relies on another field self.model for the lookup.
No description provided.