leslyarun commited on
Commit
86c41d1
1 Parent(s): 90e4d55

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +3 -3
README.md CHANGED
@@ -19,9 +19,9 @@ from optimum.pipelines import pipeline
19
 
20
  tokenizer = AutoTokenizer.from_pretrained("leslyarun/grammatical-error-correction-quantized")
21
  model = ORTModelForSeq2SeqLM.from_pretrained("leslyarun/grammatical-error-correction-quantized",
22
- encoder_file_name="encoder_model_quantized.onnx",
23
- decoder_file_name="decoder_model_quantized.onnx",
24
- decoder_with_past_file_name="decoder_with_past_model_quantized.onnx")
25
 
26
  text2text_generator = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
27
  output = text2text_generator("grammar: " + sentence)
 
19
 
20
  tokenizer = AutoTokenizer.from_pretrained("leslyarun/grammatical-error-correction-quantized")
21
  model = ORTModelForSeq2SeqLM.from_pretrained("leslyarun/grammatical-error-correction-quantized",
22
+ encoder_file_name="encoder_model_quantized.onnx",
23
+ decoder_file_name="decoder_model_quantized.onnx",
24
+ decoder_with_past_file_name="decoder_with_past_model_quantized.onnx")
25
 
26
  text2text_generator = pipeline("text2text-generation", model=model, tokenizer=tokenizer)
27
  output = text2text_generator("grammar: " + sentence)