-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
cache_length
an argument from the Sampler
`max_cache_length` is currently defined in the `TransformerConfig` but this really should be a sampler argument. This would allow to use the same transformer instance for both training and inference. PiperOrigin-RevId: 708307065
- Loading branch information
1 parent
0d6ae85
commit 3c46b31
Showing
2 changed files
with
26 additions
and
3 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