Skip to content

Comments

fix checkpoint loading for electra, return attentions#157

Merged
sfluegel05 merged 1 commit intodevfrom
fix/load-electra-checkpoints
Feb 24, 2026
Merged

fix checkpoint loading for electra, return attentions#157
sfluegel05 merged 1 commit intodevfrom
fix/load-electra-checkpoints

Conversation

@sfluegel05
Copy link
Collaborator

I had trouble loading an ELECTRA checkpoint with the new prediction pipeline. If the checkpoint contains a pretrained_checkpoint argument (but the pretrained checkpoint doesn't exist at that location), it raises an error. This is pointless since we don't need the pretrained checkpoint anymore.

@aditya0by0 Did I miss something here? Otherwise, this is the easiest fix imo.

@aditya0by0
Copy link
Member

@sfluegel05 I don’t think you missed anything. Yes the fix is correct.

@sfluegel05 sfluegel05 merged commit 5243e02 into dev Feb 24, 2026
4 checks passed
@sfluegel05 sfluegel05 deleted the fix/load-electra-checkpoints branch February 24, 2026 12:50
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.

2 participants