Abhinav Kulkarni
commited on
Commit
•
b2ff941
1
Parent(s):
39a9c2c
Updated README
Browse files
README.md
CHANGED
@@ -48,7 +48,10 @@ model_name = "abhinavkulkarni/tiiuae-falcon-7b-instruct-w4-g64-awq"
|
|
48 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
49 |
|
50 |
# Tokenizer
|
51 |
-
|
|
|
|
|
|
|
52 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
53 |
|
54 |
# Model
|
|
|
48 |
config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
|
49 |
|
50 |
# Tokenizer
|
51 |
+
try:
|
52 |
+
tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name, trust_remote_code=True)
|
53 |
+
except:
|
54 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False, trust_remote_code=True)
|
55 |
streamer = TextStreamer(tokenizer, skip_special_tokens=True)
|
56 |
|
57 |
# Model
|