mirror of
https://github.com/p-e-w/heretic.git
synced 2026-12-03 18:42:57 +07:00
[GH-ISSUE #295] Multi-GPU has some problem #166
Labels
No labels
bug
enhancement
enhancement
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
p-e-w/heretic#166
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Vinay-Umrethe on GitHub (Apr 13, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/295
One GPU is not being utilized
hereticauto-detects all accelerator devices and use all by default for compute, but forgoogle/gemma-4-E2B-itmodel it looks like DDP is not working well, one is idle.Stats
Details:
cd422bbb9906b06f36284a04b386cb877eb016c1heretic-llmdependencies@p-e-w commented on GitHub (Apr 14, 2026):
We use Accelerate with
auto, which is the officially blessed solution that should do the right thing in all cases. If that doesn't happen, it's an upstream bug. I don't think there is anything to do here. Of course, you can always pass in a manual device map.@Vinay-Umrethe commented on GitHub (Apr 14, 2026):
Sure, but what does
hereticdo actually? DDP OR FSDP? Igacclerate's default behavior with "auto" is DDP@p-e-w commented on GitHub (Apr 14, 2026):
Heretic doesn't do anything in that regard. It fully outsources multi-GPU management to Accelerate. There is no multi-GPU-aware code in Heretic at all, beyond making sure that tensors are on the same device for computations.
@Vinay-Umrethe commented on GitHub (Jul 2, 2026):
Closing this as completed.
False Positive
What Heretic do is inference only, using
transformers. So DDP and FSDP are conceptually irrelevant as no training is happening at all.accelerate/transformersutilize based on which works best: If the model fits in a Single-GPU, use it. If not, only then use rest of the available GPUs.