Abhinav Kulkarni
commited on
Commit
•
c891381
1
Parent(s):
3fd13f5
Updated README
Browse files
README.md
CHANGED
@@ -55,7 +55,10 @@ model_name = "abhinavkulkarni/meta-llama-Llama-2-7b-chat-hf-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
|