Abhinav Kulkarni
commited on
Commit
•
2e559ce
1
Parent(s):
271b620
Updated README
Browse files
README.md
CHANGED
@@ -56,7 +56,10 @@ model_name = "abhinavkulkarni/meta-llama-Llama-2-13b-chat-hf-w4-g128-awq"
|
|
56 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
57 |
|
58 |
# Tokenizer
|
59 |
-
|
|
|
|
|
|
|
60 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
61 |
|
62 |
# Model
|
|
|
56 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
57 |
|
58 |
# Tokenizer
|
59 |
+
try:
|
60 |
+
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name, trust_remote_code=True)
|
61 |
+
except:
|
62 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, trust_remote_code=True)
|
63 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
64 |
|
65 |
# Model
|