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

feat: Add Envar for Setting Pytorch Expandable Segments #584

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

ishaansehgal99
Copy link
Collaborator

@ishaansehgal99 ishaansehgal99 commented Aug 30, 2024

Reason for Change:
Setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True allows PyTorch Memory Allocator to mark memory blocks as expandable for reduced peak GPU memory usage.

Copy link

codecov bot commented Aug 30, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 57.62%. Comparing base (5c30038) to head (d4ad20f).
Report is 10 commits behind head on main.

Files with missing lines Patch % Lines
pkg/tuning/preset-tuning.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #584      +/-   ##
==========================================
- Coverage   58.18%   57.62%   -0.57%     
==========================================
  Files          30       30              
  Lines        2987     2992       +5     
==========================================
- Hits         1738     1724      -14     
- Misses       1149     1168      +19     
  Partials      100      100              

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

@ishaansehgal99 ishaansehgal99 changed the title feat: Env Variable for Reduce GPU Memory Usage feat: Add Envar for Setting Pytorch Expandable Segments Aug 30, 2024
Signed-off-by: Ishaan Sehgal <ishaanforthewin@gmail.com>
@ishaansehgal99 ishaansehgal99 merged commit fd83b2a into main Sep 3, 2024
7 of 9 checks passed
@ishaansehgal99 ishaansehgal99 deleted the Ishaan/update-env-var branch September 3, 2024 21:07
smritidahal653 pushed a commit to smritidahal653/kaito that referenced this pull request Sep 18, 2024
…t#584)

**Reason for Change**:
Setting `PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True` allows
PyTorch Memory Allocator to mark memory blocks as expandable for reduced
peak GPU memory usage.

---------

Signed-off-by: Ishaan Sehgal <ishaanforthewin@gmail.com>
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