Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Conversation

kainoj
Copy link

@kainoj kainoj commented Nov 9, 2021

Until now: the library supports pruning for BertFor* (AutoModelFor*).
Now: you can load both BertFor* and BertModel (or just use AutoModel).

What's new: I upgraded the pattern prefix regexp so it optionally captures bert. (or model. for Bart).

  • Pattern prefixes for BertFor* start with bert.encoder.layer..
  • Pattern prefixes for vanila BertModel start with just encoder.layer..

1. Bert:  `bert.` -> optional `bert.`
2. Bart: `model.` -> optional `model.`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant