Update README.md
Browse files
README.md
CHANGED
@@ -44,4 +44,16 @@ generator = pipeline(
|
|
44 |
torch_dtype=torch.bfloat16,
|
45 |
device_map={"": 0},
|
46 |
)
|
47 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
torch_dtype=torch.bfloat16,
|
45 |
device_map={"": 0},
|
46 |
)
|
47 |
+
```
|
48 |
+
|
49 |
+
An example out is:
|
50 |
+
|
51 |
+
```python
|
52 |
+
question="How can I apply to SUNY Brockport?"
|
53 |
+
|
54 |
+
output=generator(prompt(question), do_sample=True, temperature=0.7, max_new_tokens=512)
|
55 |
+
output[0]["generated_text"].split("[/INST]\n")[1]
|
56 |
+
```
|
57 |
+
|
58 |
+
>"Applying to SUNY Brockport is a straightforward process. You can start by selecting the 'Apply Now' button on our homepage, which will guide you through the application process. Our Admissions Team is always available to assist you with any questions or concerns you may have. We can't wait to welcome you to our community of Golden Eagles!"
|
59 |
+
|