-
Notifications
You must be signed in to change notification settings - Fork 94
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
torch-loader(example): use persistent workers to reduce test time #694
Conversation
@@ -69,6 +69,7 @@ def forward(self, x): | |||
ds.to_pytorch(transform=transform), | |||
batch_size=25, | |||
num_workers=4, | |||
persistent_workers=True, |
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.
With persistent_workers
set, it takes much less time to run 3 epochs than before (when we ran just a single epoch).
@@ -81,6 +81,8 @@ def examples(session: nox.Session) -> None: | |||
session.install(".[examples]") | |||
session.run( | |||
"pytest", | |||
"--durations=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.
This will be useful to know how much each tests take.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #694 +/- ##
==========================================
+ Coverage 87.31% 87.34% +0.02%
==========================================
Files 113 113
Lines 10796 10796
Branches 1480 1480
==========================================
+ Hits 9427 9430 +3
+ Misses 991 989 -2
+ Partials 378 377 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Deploying datachain-documentation with Cloudflare Pages
|
No description provided.