Update README.md
Browse files
README.md
CHANGED
|
@@ -34,8 +34,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 34 |
device = "cuda" # the device to load the model onto
|
| 35 |
|
| 36 |
# Load the model and tokenizer
|
| 37 |
-
model = AutoModelForCausalLM.from_pretrained("
|
| 38 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 39 |
|
| 40 |
# Define the conversation messages
|
| 41 |
messages = [
|
|
|
|
| 34 |
device = "cuda" # the device to load the model onto
|
| 35 |
|
| 36 |
# Load the model and tokenizer
|
| 37 |
+
model = AutoModelForCausalLM.from_pretrained("cognitivecomputations/DeepMixtral-8x7b-Instruct", trust_remote_code=True, device_map="auto")
|
| 38 |
+
tokenizer = AutoTokenizer.from_pretrained("cognitivecomputations/DeepMixtral-8x7b-Instruct")
|
| 39 |
|
| 40 |
# Define the conversation messages
|
| 41 |
messages = [
|