mirror of https://github.com/THUDM/ChatGLM2-6B
test flan-t5
parent
b0edfbcbe3
commit
c1df27a472
|
@ -3,7 +3,7 @@ import torch
|
||||||
device = torch.device("cpu")
|
device = torch.device("cpu")
|
||||||
|
|
||||||
checkpoint = "/Users/hhwang/models/t5-small"
|
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"
|
prompt = "translate English to German: That is good"
|
||||||
print('********* before finetune ***********')
|
print('********* before finetune ***********')
|
||||||
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
|
||||||
|
|
Loading…
Reference in New Issue