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

fix GPU mapping error for Horovod + finetune #3048

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Dec 10, 2023

When fine-tuning with Horovod, the same error as #2712 is thrown at the place I modified in this PR.

It seems tf.test.is_gpu_available will try to use all GPUs, but tf.config.get_visible_devices won't.

When doing finetune with Horovod, the same error as deepmodeling#2712 throws at what I modified in this PR.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Copy link

codecov bot commented Dec 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (0547940) 75.73% compared to head (6b09197) 75.73%.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel    #3048   +/-   ##
=======================================
  Coverage   75.73%   75.73%           
=======================================
  Files         245      245           
  Lines       24685    24686    +1     
  Branches     1591     1591           
=======================================
+ Hits        18696    18697    +1     
  Misses       5054     5054           
  Partials      935      935           

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

@wanghan-iapcm wanghan-iapcm merged commit 2204ec1 into deepmodeling:devel Dec 11, 2023
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants