Skip to content

Use dynamic device count instead of hardcoded num_devices=2#18

Open
Tauheed-Elahee wants to merge 1 commit intoJoshEngels:mainfrom
Tauheed-Elahee:dynamic-num-devices
Open

Use dynamic device count instead of hardcoded num_devices=2#18
Tauheed-Elahee wants to merge 1 commit intoJoshEngels:mainfrom
Tauheed-Elahee:dynamic-num-devices

Conversation

@Tauheed-Elahee
Copy link

Replace hardcoded num_devices=2 for Mistral with
max(1, t.cuda.device_count()) to support single-GPU and CPU-only machines while using all available GPUs when present.

Replace hardcoded num_devices=2 for Mistral with
max(1, t.cuda.device_count()) to support single-GPU and CPU-only
machines while using all available GPUs when present.
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.

1 participant