File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ test = [
50
50
" pyspark" ,
51
51
" pyod" ,
52
52
" transformers" ,
53
+ " protobuf==3.20.3" , # See GH #3046
53
54
" torch" ,
54
55
" torchvision" ,
55
56
" tensorflow" ,
Original file line number Diff line number Diff line change @@ -11,8 +11,11 @@ def basic_translation_scenario():
11
11
AutoTokenizer = pytest .importorskip ("transformers" ).AutoTokenizer
12
12
AutoModelForSeq2SeqLM = pytest .importorskip ("transformers" ).AutoModelForSeq2SeqLM
13
13
14
- tokenizer = AutoTokenizer .from_pretrained ("Helsinki-NLP/opus-mt-en-es" )
15
- model = AutoModelForSeq2SeqLM .from_pretrained ("Helsinki-NLP/opus-mt-en-es" )
14
+ # Use a *tiny* tokenizer model, to keep tests running as fast as possible.
15
+ # Nb. At time of writing, this pretrained model requires "protobuf==3.20.3".
16
+ name = "mesolitica/finetune-translation-t5-super-super-tiny-standard-bahasa-cased"
17
+ tokenizer = AutoTokenizer .from_pretrained (name )
18
+ model = AutoModelForSeq2SeqLM .from_pretrained (name )
16
19
17
20
# define the input sentences we want to translate
18
21
data = [
You can’t perform that action at this time.
0 commit comments