-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for modified config attributes during HuggingFace conversion (#104
) Adds a more robust check for modified config attributes when converting a HuggingFace model to a Penzai model. This can be used to prevent loading a model whose architecture Penzai does not yet support. The check works by enumerating all differences between the model's config and a known-convertible config, and ensuring the only changes are to attributes that we can correctly handle during conversion.
- Loading branch information
1 parent
e23bfed
commit 6a96d6b
Showing
3 changed files
with
140 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters