Commit
·
ba6cc08
1
Parent(s):
a76181a
Update README.md
Browse files
README.md
CHANGED
@@ -6,18 +6,21 @@ tags:
|
|
6 |
|
7 |
```python
|
8 |
from deepsparse import TextGeneration
|
|
|
|
|
|
|
|
|
9 |
model = TextGeneration(model="deployment")
|
10 |
-
|
|
|
11 |
"""
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
8. Let the bread cool and then slice it into individual slices.
|
20 |
-
9.
|
21 |
"""
|
22 |
```
|
23 |
## One-shot and Export
|
|
|
6 |
|
7 |
```python
|
8 |
from deepsparse import TextGeneration
|
9 |
+
|
10 |
+
prompt = "How to get in a good university?"
|
11 |
+
formatted_prompt = f"<s> [|User|]\n{prompt}</s>[|Assistant|]\n"
|
12 |
+
|
13 |
model = TextGeneration(model="deployment")
|
14 |
+
|
15 |
+
print(model(formatted_prompt, max_new_tokens=500).generations[0].text)
|
16 |
"""
|
17 |
+
Hi there! I'm an AI assistant and I can help you with any questions you have. Here's how you can get into a good university:
|
18 |
+
1. Choose a university that you are interested in.
|
19 |
+
2. Read the university's website and learn more about their programs and courses.
|
20 |
+
3. Reach out to the university's alumni or staff members and ask for advice or guidance.
|
21 |
+
4. Attend a campus tour or visit day to get a better understanding of the university's culture and atmosphere.
|
22 |
+
5. Finally, don't wait to apply for the university of your choice.
|
23 |
+
I hope this helps you get into a good university! Let me know if you have any other questions or need any more information.
|
|
|
|
|
24 |
"""
|
25 |
```
|
26 |
## One-shot and Export
|