Create auto tokenizer
#6
by
deleted
- opened
- 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")
|