Update train.py
Browse files
train.py
CHANGED
@@ -17,6 +17,7 @@ tokenizer = T5Tokenizer.from_pretrained(model_name)
|
|
17 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
18 |
|
19 |
# Tokenization function
|
|
|
20 |
def tokenize_function(examples):
|
21 |
inputs = [ex["input"] for ex in examples]
|
22 |
targets = [ex["output"] for ex in examples]
|
|
|
17 |
model = T5ForConditionalGeneration.from_pretrained(model_name)
|
18 |
|
19 |
# Tokenization function
|
20 |
+
print("Sample data structure:", examples)
|
21 |
def tokenize_function(examples):
|
22 |
inputs = [ex["input"] for ex in examples]
|
23 |
targets = [ex["output"] for ex in examples]
|