Update README.md
Browse filesFix a tokenizer failure
README.md
CHANGED
@@ -41,6 +41,13 @@ model.to(device)
|
|
41 |
|
42 |
# prepare a processor
|
43 |
processor = AutoProcessor.from_pretrained(MODEL_NAME)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
import requests
|
46 |
from PIL import Image
|
|
|
41 |
|
42 |
# prepare a processor
|
43 |
processor = AutoProcessor.from_pretrained(MODEL_NAME)
|
44 |
+
tokenizer = LlamaTokenizer.from_pretrained(
|
45 |
+
"novelai/nerdstash-tokenizer-v1",
|
46 |
+
padding_side="right",
|
47 |
+
additional_special_tokens=["▁▁"],
|
48 |
+
)
|
49 |
+
processor.tokenizer = tokenizer
|
50 |
+
|
51 |
|
52 |
import requests
|
53 |
from PIL import Image
|