johnrachwanpruna commited on
Commit
ee40e2f
·
verified ·
1 Parent(s): 9b4b6aa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -58,7 +58,7 @@ You can run the smashed model with these steps:
58
 
59
  model_id = "PrunaAI/c4ai-command-r-plus-bnb-4bit-smashed"
60
  tokenizer = AutoTokenizer.from_pretrained(model_id)
61
- model = AutoModelForCausalLM.from_pretrained(model_id)
62
 
63
  messages = [{"role": "user", "content": "Hello, how are you?"}]
64
  input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
 
58
 
59
  model_id = "PrunaAI/c4ai-command-r-plus-bnb-4bit-smashed"
60
  tokenizer = AutoTokenizer.from_pretrained(model_id)
61
+ model = AutoModelForCausalLM.from_pretrained(model_id, device_map='auto')
62
 
63
  messages = [{"role": "user", "content": "Hello, how are you?"}]
64
  input_ids = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")