Created
February 18, 2023 16:37
-
-
Save radi-cho/38a785b6164484c9276c04213f020c62 to your computer and use it in GitHub Desktop.
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
import tensorflow as tf | |
from datasets import load_dataset | |
from transformers import TFMT5ForConditionalGeneration, MT5Tokenizer, DataCollatorForSeq2Seq | |
from tensorflow.keras.optimizers import Adam | |
tokenizer = MT5Tokenizer.from_pretrained("google/mt5-small") | |
model = TFMT5ForConditionalGeneration.from_pretrained("google/mt5-small") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment