Inoichan commited on
Commit
7093f08
1 Parent(s): fa34885

Update README.md

Browse files

Fix a tokenizer failure

Files changed (1) hide show
  1. README.md +7 -0
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