johnrachwanpruna
commited on
Update README.md
Browse files
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")
|