Abhinav Kulkarni commited on
Commit
1c84c10
1 Parent(s): d795ddd

Updated README

Browse files
Files changed (1) hide show
  1. README.md +4 -1
README.md CHANGED
@@ -52,7 +52,10 @@ model_name = "abhinavkulkarni/VMware-open-llama-7b-open-instruct"
52
  config = AutoConfig.from_pretrained(model_name, trust_remote_code=True)
53
 
54
  # Tokenizer
55
- tokenizer = AutoTokenizer.from_pretrained(config.tokenizer_name)
 
 
 
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