jaz240201 commited on
Commit
04f6823
1 Parent(s): 36e52e5

Create README.md (#1)

Browse files

- Create README.md (1c87830d61f81a0ebebf46c537c950818b63308f)

Files changed (1) hide show
  1. README.md +8 -0
README.md ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ from transformers import pipeline
3
+
4
+ messages = [
5
+ {"role": "user", "content": "Who are you?"},
6
+ ]
7
+ pipe = pipeline("text-generation", model="mistralai/Mixtral-8x7B-Instruct-v0.1")
8
+ pipe(messages)