evan-nexusflow
commited on
Commit
•
242c9fd
1
Parent(s):
e71206c
Update README.md
Browse files
README.md
CHANGED
@@ -75,8 +75,21 @@ pipe = pipeline(
|
|
75 |
model=self.model,
|
76 |
tokenizer=self.tokenizer,
|
77 |
pipeline_class=AtheneRewardPipeline,
|
|
|
78 |
)
|
79 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
|
82 |
```
|
|
|
75 |
model=self.model,
|
76 |
tokenizer=self.tokenizer,
|
77 |
pipeline_class=AtheneRewardPipeline,
|
78 |
+
device_map="auto",
|
79 |
)
|
80 |
|
81 |
+
messages = [
|
82 |
+
{
|
83 |
+
"role": 'user',
|
84 |
+
"content": "What is an Athene Noctura? Explain one sentence."
|
85 |
+
},
|
86 |
+
{
|
87 |
+
"role": "assistant",
|
88 |
+
"content": "The Athene noctua, also known as the little owl, is a small, nocturnal owl species native to Europe, Asia, and North Africa, characterized by its distinctive facial disk and piercing yellow eyes."
|
89 |
+
}
|
90 |
+
]
|
91 |
+
|
92 |
+
print(pipe([messages])) # Print the reward!
|
93 |
|
94 |
|
95 |
```
|