Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Pass opt and kwargs all the way through transformer #3708

Merged
merged 3 commits into from
Jun 14, 2021
Merged

Conversation

spencerp
Copy link
Contributor

Patch description
Looking at the hash_ladder code, it's apparent there are some more optimizations I could make to the transformer code. This PR:

  • Passes opt through to all components that are defined in our codebase
  • Passes kwargs to all forward functions
  • Adds a build_layers function to TransformerDecoder and TransformerEncoder that allows for per-layer modifications

Testing steps
working with @jaseweston to make sure I didn't mess anything up; will paste commands ran

Copy link
Contributor

@jaseweston jaseweston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs dat autoformat

amazing stuff!

@spencerp spencerp marked this pull request as ready for review June 11, 2021 18:36
@spencerp spencerp merged commit 4014ae9 into master Jun 14, 2021
@spencerp spencerp deleted the transformer-opt branch June 14, 2021 16:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants