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

low-memory regime #172

Merged
merged 4 commits into from
Dec 9, 2024
Merged

low-memory regime #172

merged 4 commits into from
Dec 9, 2024

Conversation

arogozhnikov
Copy link
Contributor

@arogozhnikov arogozhnikov commented Nov 24, 2024

Description

reduce amount of memory allocated by moving results to CPU by default.

Effect on speed is minor, so I set this as a default behavior.

fix #6

Test plan

Tested with low_memory=True/False, and with/without ESM.

@arogozhnikov arogozhnikov requested a review from wukevin November 24, 2024 10:30
@arogozhnikov
Copy link
Contributor Author

retested only main example with low_memory = True / False.

chai_lab/chai1.py Outdated Show resolved Hide resolved
@arogozhnikov arogozhnikov merged commit 71eff6a into main Dec 9, 2024
4 checks passed
@arogozhnikov arogozhnikov deleted the alex/memory branch December 9, 2024 18:46
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.

VRAM management
2 participants