Skip to content

Instantly share code, notes, and snippets.

View ayush714's full-sized avatar
🎯
Focusing

Ayush Singh ayush714

🎯
Focusing
View GitHub Profile
class SquadModule(pl.LightningDataModule):
def __init__(
self,
train_df: pd.DataFrame,
test_df: pd.DataFrame,
tokenizer:T5Tokenizer,
batch_size: int = 8,
source_max_token_len: int = 396,
target_max_token_len: int = 32,
):