-
Notifications
You must be signed in to change notification settings - Fork 216
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
Add support for cross-gpu device mapping #462
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Code Metrics Report=============================================================================== Language Files Lines Code Comments Blanks =============================================================================== Dockerfile 1 34 25 0 9 Happy 1 442 369 0 73 JSON 9 21 21 0 0 Python 32 1256 1075 37 144 TOML 16 444 403 1 40 ------------------------------------------------------------------------------- Jupyter Notebooks 1 0 0 0 0 |- Markdown 1 60 30 22 8 |- Python 1 96 87 1 8 (Total) 156 117 23 16 ------------------------------------------------------------------------------- Markdown 17 1297 0 965 332 |- BASH 5 100 97 0 3 |- Python 6 122 110 0 12 |- Rust 3 151 135 6 10 (Total) 1670 342 971 357 ------------------------------------------------------------------------------- Rust 119 36082 32630 629 2823 |- Markdown 59 659 13 609 37 (Total) 36741 32643 1238 2860 =============================================================================== Total 197 39576 34523 1632 3421 =============================================================================== |
mistral.rs/mistralrs-core/src/models/llama.rs Lines 302 to 303 in e04f840
I think maybe this line copy the entire weights.. It does cost serious memory usage problem, can not even start a 7b llama model in 4090 GPU... |
@chenwanqq can you please raise an issue about this? |
The problem is that I can not track this problem again.. after using memory usage to check: println!("vb.device: {:?}", vb.device());
println!("memory usage: {:?}", memory_track.get_memory_available(vb.device()));
let vb = vb.set_dtype(mapper.get_min_dtype()?);
println!("memory usage: {:?}", memory_track.get_memory_available(vb.device())); It is same before and after. And I did not encounter oom problem today... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Refs #395.