jaz240201 commited on
Commit
7f1de1c
1 Parent(s): 04f6823

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -1
README.md CHANGED
@@ -5,4 +5,9 @@ messages = [
5
  {"role": "user", "content": "Who are you?"},
6
  ]
7
  pipe = pipeline("text-generation", model="mistralai/Mixtral-8x7B-Instruct-v0.1")
8
- pipe(messages)
 
 
 
 
 
 
5
  {"role": "user", "content": "Who are you?"},
6
  ]
7
  pipe = pipeline("text-generation", model="mistralai/Mixtral-8x7B-Instruct-v0.1")
8
+ pipe(messages)
9
+ # Load model directly
10
+ from transformers import AutoTokenizer, AutoModelForCausalLM
11
+
12
+ tokenizer = AutoTokenizer.from_pretrained("mistralai/Mixtral-8x7B-Instruct-v0.1")
13
+ model = AutoModelForCausalLM.from_pretrained("mistralai/Mixtral-8x7B-Instruct-v0.1")