Commit
·
133c04d
1
Parent(s):
3bb5aae
Update README.md
Browse files
README.md
CHANGED
|
@@ -70,29 +70,6 @@ Instructions:
|
|
| 70 |
17. Bake the bread in the oven for 30 minutes.
|
| 71 |
"""
|
| 72 |
```
|
| 73 |
-
```python
|
| 74 |
-
from deepsparse import TextGeneration
|
| 75 |
-
|
| 76 |
-
prompt = "How to get in a good university?"
|
| 77 |
-
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
|
| 78 |
-
|
| 79 |
-
model = TextGeneration(model="hf:neuralmagic/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
|
| 80 |
-
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
| 81 |
-
|
| 82 |
-
"""
|
| 83 |
-
There are many factors to consider when choosing a university. Here are some tips for getting into a good university:
|
| 84 |
-
|
| 85 |
-
1. Research your options: Consider the schools in your area and the ones in your desired location. Research their reputation, tuition, and academic programs.
|
| 86 |
-
|
| 87 |
-
2. Apply to multiple universities: Apply to multiple universities, ensuring that you are applying to the best option for you.
|
| 88 |
-
|
| 89 |
-
3. Get a job: If you are applying to a university, you will need to find a job to support your studies. This will help you budget and manage your time.
|
| 90 |
-
|
| 91 |
-
4. Get involved with your community: Your university will likely have a community of students and faculty. Engage with this community by volunteering, participating in clubs, and engaging with others in your community.
|
| 92 |
-
|
| 93 |
-
5. Get involved with extracurricular activities: Universities often have many extracurricular activities, which can help you meet new people
|
| 94 |
-
"""
|
| 95 |
-
```
|
| 96 |
## Prompt template
|
| 97 |
|
| 98 |
```
|
|
|
|
| 70 |
17. Bake the bread in the oven for 30 minutes.
|
| 71 |
"""
|
| 72 |
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
## Prompt template
|
| 74 |
|
| 75 |
```
|