Abhinav Kulkarni commited on
Commit
24a5819
1 Parent(s): 1c78c94

Updated README

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -51,7 +51,10 @@ model_name = "abhinavkulkarni/mosaicml-mpt-30b-chat-w4-g128-awq"
51
  config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
52
 
53
  # Tokenizer
54
- tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name)
 
 
 
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