1
0
Fork 0
mirror of https://github.com/p-e-w/heretic.git synced 2026-12-03 18:42:57 +07:00

[GH-ISSUE #245] PIQA integration is 6x slower than standalone lm_eval #141

Closed
opened 2026-11-01 04:17:58 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @erm14254 on GitHub (Mar 21, 2026).
Original GitHub issue: https://github.com/p-e-w/heretic/issues/245

The new PIQA integration takes between 10 to 11 minutes per trial, making it impractical for 400-trial runs (~70 hours total).

While this would take ~8 hours for 400 trials when PIQA/lm eval Heretic integration is disabled by adding use_piqa = false inside config.toml.

Using PIQA/lm_eval standalone takes about 3 minute and 30 seconds to test a 36B model using batch size 64, while it takes about 9 minutes and 30 seconds with the PIQA/lm_eval Heretic integration at batch size 64.

Logs: Running loglikelihood requests: 3676/3676 [09:33<00:00, 6.41it/s]

Every trial takes on average 10 to 11 minutes with PIQA enabled, with PIQA disabled and KL Divergence fallback takes about 1 minutes and 20 seconds per trials, big difference.

The 3x slowdown suggests something in the integration (model reloading? device placement?) rather than lm_eval itself.
For now using use_piqa = false as workaround.

Originally created by @erm14254 on GitHub (Mar 21, 2026). Original GitHub issue: https://github.com/p-e-w/heretic/issues/245 The new PIQA integration takes between 10 to 11 minutes per trial, making it impractical for 400-trial runs (~70 hours total). While this would take ~8 hours for 400 trials when PIQA/lm eval Heretic integration is disabled by adding `use_piqa = false` inside config.toml. Using PIQA/lm_eval standalone takes about 3 minute and 30 seconds to test a 36B model using batch size 64, while it takes about 9 minutes and 30 seconds with the PIQA/lm_eval Heretic integration at batch size 64. Logs: `Running loglikelihood requests: 3676/3676 [09:33<00:00, 6.41it/s]` Every trial takes on average 10 to 11 minutes with PIQA enabled, with PIQA disabled and KL Divergence fallback takes about 1 minutes and 20 seconds per trials, big difference. The 3x slowdown suggests something in the integration (model reloading? device placement?) rather than lm_eval itself. For now using `use_piqa = false` as workaround.
Author
Owner

@p-e-w commented on GitHub (Mar 23, 2026):

Yes, I'm aware of this. I suspect the problem might be the PeftModel wrapper.

<!-- gh-comment-id:4107624808 --> @p-e-w commented on GitHub (Mar 23, 2026): Yes, I'm aware of this. I suspect the problem might be the `PeftModel` wrapper.
Author
Owner

@p-e-w commented on GitHub (Jun 16, 2026):

I fixed this a while ago.

<!-- gh-comment-id:4716197350 --> @p-e-w commented on GitHub (Jun 16, 2026): I fixed this a while ago.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
p-e-w/heretic#141
No description provided.