Abhinav Kulkarni
commited on
Commit
•
72bb1ba
1
Parent(s):
2b9fd89
Updated README
Browse files
README.md
CHANGED
@@ -52,7 +52,10 @@ model_name = "abhinavkulkarni/VMware-open-llama-7b-v2-open-instruct"
|
|
52 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
53 |
|
54 |
# Tokenizer
|
55 |
-
|
|
|
|
|
|
|
56 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
57 |
|
58 |
# Model
|
|
|
52 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
53 |
|
54 |
# Tokenizer
|
55 |
+
try:
|
56 |
+
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name, trust_remote_code=True)
|
57 |
+
except:
|
58 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, trust_remote_code=True)
|
59 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
60 |
|
61 |
# Model
|