megatron.data.t5_dataset#
Description
T5 Style dataset.
Classes
|
Functions
|
Build training sample. |
|
Returns a 2-dimensional (2-D) attention mask :param source_block: 1-D array :param target_block: 1-D array |
|
Returns a 3-dimensional (3-D) attention mask :param source_block: 1-D array :param target_block: 1-D array |
|
|
|
|
|
Pad sequences and convert them to numpy. |