Abhinav Kulkarni
commited on
Commit
•
7b72eba
1
Parent(s):
62e2cab
Updated README
Browse files
README.md
CHANGED
@@ -55,7 +55,10 @@ model_name = "abhinavkulkarni/psmathur-orca_mini_v2_7b-w4-g128-awq"
|
|
55 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
56 |
|
57 |
# Tokenizer
|
58 |
-
|
|
|
|
|
|
|
59 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
60 |
|
61 |
# Model
|
|
|
55 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
56 |
|
57 |
# Tokenizer
|
58 |
+
try:
|
59 |
+
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name, trust_remote_code=True)
|
60 |
+
except:
|
61 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, trust_remote_code=True)
|
62 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
63 |
|
64 |
# Model
|