File size: 277 Bytes
e2b2525
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
# Run Flan-T5 model on sample text using promting

python3 translate.py \
--sentences_path sample_text/en.txt \
--output_path sample_text/en2es.FlanT5.translation.txt \
--model_name google/flan-t5-large \
--prompt "Translate English to Spanish: %%SENTENCE%%" \
--precision bf16