Skip to content

Layer extensions#11

Open
con-bren wants to merge 9 commits intomainfrom
loader
Open

Layer extensions#11
con-bren wants to merge 9 commits intomainfrom
loader

Conversation

@con-bren
Copy link
Copy Markdown

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