Owen Ince commited on
Commit
96bce54
1 Parent(s): 6ab2220

Create auto tokenizer

Browse files
Files changed (1) hide show
  1. auto tokenizer +5 -0
auto tokenizer ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ # Load model directly
2
+ from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
3
+
4
+ tokenizer = AutoTokenizer.from_pretrained("grammarly/coedit-large")
5
+ model = AutoModelForSeq2SeqLM.from_pretrained("grammarly/coedit-large")