Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer extensions #11

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Layer extensions #11

wants to merge 9 commits into from

Conversation

con-bren
Copy link

Sets up the basic logic for extending layers of pre-trained models.

The config file lets you specify which layers to merge by matching the names of the layers, or the types of the layers (or both). Both names and types form a hierarchical string like: GPTNeoXModel.ModuleList.GPTNeoXLayer, etc. These will string will attempt to be matched with wildcards via fnmatch. See the config.json for an example.

You can also automatically assign replacement of layers by shunting this logic to the static method: is_match, defined in the LayerExtender subclass.

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