test flan-t5

pull/672/head
wanghh2000 2023-12-29 23:00:21 +08:00
parent b0edfbcbe3
commit c1df27a472
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import torch
device = torch.device("cpu")
checkpoint = "/Users/hhwang/models/t5-small"
# checkpoint = "/Users/hhwang/models/flan-t5-small"
checkpoint = "/Users/hhwang/models/flan-t5-small"
prompt = "translate English to German: That is good"
print('********* before finetune ***********')
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM