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

Autotune: fix inputs #926

Merged
merged 3 commits into from
Nov 6, 2023
Merged

Autotune: fix inputs #926

merged 3 commits into from
Nov 6, 2023

Conversation

louisfd
Copy link
Member

@louisfd louisfd commented Nov 2, 2023

Batch sizes
At first we thought batch sizes would have no incidence on kernels, i.e. the time taken for many batches would just be proportional to the time for one batch. So for autotune, to run faster, we had reduced the number of batches to a constant. However, our tests have shown that the matmul algorithms have different behaviours on different batch sizes, therefore it is important to keep them into the computations.

Random inputs
Before, we had only tensors of ones in autotune. It is possible that there will someday exist algorithms that have a biased behaviour on such trivial inputs, so it has to be replaced by random inputs. I chose uniform in [-10., 10.] but that's arbitrary.

Copy link

codecov bot commented Nov 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (dddc138) 86.43% compared to head (4afb255) 86.43%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #926      +/-   ##
==========================================
- Coverage   86.43%   86.43%   -0.01%     
==========================================
  Files         471      470       -1     
  Lines       44309    44326      +17     
==========================================
+ Hits        38300    38314      +14     
- Misses       6009     6012       +3     
Files Coverage Δ
burn-wgpu/src/kernel/matmul/tune/base.rs 90.19% <100.00%> (-2.20%) ⬇️
burn-wgpu/src/kernel/prng/uniform.rs 100.00% <100.00%> (ø)

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

@nathanielsimard nathanielsimard merged commit a029753 into main Nov 6, 2023
9 checks passed
@nathanielsimard nathanielsimard deleted the fix/wgpu/autotune_batches branch November 6, 2023 13:59
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