Abhinav Kulkarni
commited on
Commit
•
5cefb80
1
Parent(s):
c0437be
Updated README
Browse files
README.md
CHANGED
@@ -51,7 +51,10 @@ model_name = "abhinavkulkarni/mosaicml-mpt-7b-chat-w4-g128-awq"
|
|
51 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
52 |
|
53 |
# Tokenizer
|
54 |
-
|
|
|
|
|
|
|
55 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
56 |
|
57 |
# Model
|
|
|
51 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
52 |
|
53 |
# Tokenizer
|
54 |
+
try:
|
55 |
+
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name, trust_remote_code=True)
|
56 |
+
except:
|
57 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, trust_remote_code=True)
|
58 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
59 |
|
60 |
# Model
|