Skip to content
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

Merged
merged 2 commits into from
Dec 12, 2024

Conversation

skshetry
Copy link
Member

No description provided.

@skshetry skshetry requested a review from a team December 12, 2024 06:43
@@ -69,6 +69,7 @@ def forward(self, x):
ds.to_pytorch(transform=transform),
batch_size=25,
num_workers=4,
persistent_workers=True,
Copy link
Member Author

@skshetry skshetry Dec 12, 2024

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",
Copy link
Member Author

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.

Copy link

codecov bot commented Dec 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.34%. Comparing base (250ce97) to head (b92a9dd).
Report is 1 commits behind head on main.

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     
Flag Coverage Δ
datachain 87.28% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

cloudflare-workers-and-pages bot commented Dec 12, 2024

Deploying datachain-documentation with  Cloudflare Pages  Cloudflare Pages

Latest commit: b92a9dd
Status: ✅  Deploy successful!
Preview URL: https://c1f94822.datachain-documentation.pages.dev
Branch Preview URL: https://torch-persistent-workers.datachain-documentation.pages.dev

View logs

@skshetry skshetry merged commit eaf0412 into main Dec 12, 2024
34 checks passed
@skshetry skshetry deleted the torch-persistent-workers branch December 12, 2024 07:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants