Skip to content

Commit

Permalink
Add bundles for FLAN-T5 (#2061)
Browse files Browse the repository at this point in the history
* Add initial bundles for FLAN-T5

* Fix path

* Add docstrings

* Fix transform error

* Trim whitespace

* Add modules to init
  • Loading branch information
joecummings authored Feb 17, 2023
1 parent 19f8bc9 commit 21261ea
Show file tree
Hide file tree
Showing 2 changed files with 352 additions and 92 deletions.
30 changes: 30 additions & 0 deletions torchtext/prototype/models/t5/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
from .bundler import (
FLAN_T5_SMALL_ENCODER,
FLAN_T5_SMALL,
FLAN_T5_SMALL_GENERATION,
FLAN_T5_BASE_ENCODER,
FLAN_T5_BASE,
FLAN_T5_BASE_GENERATION,
FLAN_T5_LARGE_ENCODER,
FLAN_T5_LARGE,
FLAN_T5_LARGE_GENERATION,
FLAN_T5_XL_ENCODER,
FLAN_T5_XL,
FLAN_T5_XL_GENERATION,
FLAN_T5_XXL_ENCODER,
FLAN_T5_XXL,
FLAN_T5_XXL_GENERATION,
T5_11B,
T5_11B_ENCODER,
T5_11B_GENERATION,
Expand Down Expand Up @@ -38,5 +53,20 @@
"T5_11B_ENCODER",
"T5_11B",
"T5_11B_GENERATION",
"FLAN_T5_SMALL_ENCODER",
"FLAN_T5_SMALL",
"FLAN_T5_SMALL_GENERATION",
"FLAN_T5_BASE_ENCODER",
"FLAN_T5_BASE",
"FLAN_T5_BASE_GENERATION",
"FLAN_T5_LARGE_ENCODER",
"FLAN_T5_LARGE",
"FLAN_T5_LARGE_GENERATION",
"FLAN_T5_XL_ENCODER",
"FLAN_T5_XL",
"FLAN_T5_XL_GENERATION",
"FLAN_T5_XXL_ENCODER",
"FLAN_T5_XXL",
"FLAN_T5_XXL_GENERATION",
"T5Transform",
]
Loading

0 comments on commit 21261ea

Please sign in to comment.