Per GPU fit margin#1872
Merged
Merged
Conversation
|
Many thanks, it works with i.e.: But then if I do either: or It doesn't seem to work. My idea with the latter 2 is to set a margin of 6GB for CUDA 0 and 2GB for CUDA 6. (With the first one I get OOM on CUDA 6 after initial load, while on the 2 latter ones I get OOM on CUDA 0) I also tried: GPU0,6144,GPU6,2048 and it's variants but I get the same behavior. |
Owner
Author
|
It is not |
|
Ohh I see, that worked perfectly now! |
Contributor
|
Super-useful feature for the multi-GPU setup! Here is what I am using for the |
This file contains hidden or 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
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.
This PR adds the ability to set the fit margin per GPU when auto-fitting the model.
Usage:
--fit-marginis present, it will set the fit margin for all GPUs except those listed after-gpu-fit-margin. If missing, a default fit margin of 1 GiB will be used-gpu-fit-marginargument is optional. One can also use the short form-gfmGPU1,M1,GPU2,M2,GPU3,M3etc. in the same argument. But one can also use multiple-gpu-fit-marginarguments (-gfm GPU1,M1 -gfm GPU2,M2,GPU3,M3)-gfm 0,2048 -gfm 0,1536a margin of 1536 MiB will get used for GPU 0).The feature was requested by @Panchovix
Clearly, my description was confusing. So, here is an usage example
This will result in