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
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#141
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 @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 = falseinside 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 = falseas workaround.@p-e-w commented on GitHub (Mar 23, 2026):
Yes, I'm aware of this. I suspect the problem might be the
PeftModelwrapper.@p-e-w commented on GitHub (Jun 16, 2026):
I fixed this a while ago.