mwitiderrick
commited on
Commit
·
fb0385b
1
Parent(s):
267ec00
Update README.md
Browse files
README.md
CHANGED
@@ -11,38 +11,46 @@ prompt = "How to make banana bread?"
|
|
11 |
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
|
12 |
|
13 |
model = TextGeneration(model="hf:nm-testing/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
|
14 |
-
print(model(formatted_prompt, max_new_tokens=
|
15 |
|
16 |
"""
|
17 |
-
Banana bread is a delicious and
|
18 |
|
19 |
Ingredients:
|
20 |
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
"""
|
47 |
```
|
48 |
```python
|
@@ -55,16 +63,17 @@ model = TextGeneration(model="hf:nm-testing/TinyLlama-1.1B-Chat-v0.4-pruned50-qu
|
|
55 |
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
56 |
|
57 |
"""
|
58 |
-
There are
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
|
60 |
-
|
61 |
-
2. Faculty: What faculty members are teaching at the university? Is there a specialty you want to pursue?
|
62 |
-
3. Tuition: How much does the university cost?
|
63 |
-
4. Amenities: What amenities does the university offer? Is there a library, a gym, or other resources?
|
64 |
-
5. Communication: How easy is it to get to campus? Is there a campus-wide bus system?
|
65 |
-
6. Jobs: What jobs are available at the university? Is there a job market?
|
66 |
|
67 |
-
|
68 |
"""
|
69 |
```
|
70 |
## One-shot and Export
|
|
|
11 |
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
|
12 |
|
13 |
model = TextGeneration(model="hf:nm-testing/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
|
14 |
+
print(model(formatted_prompt, max_new_tokens=500).generations[0].text)
|
15 |
|
16 |
"""
|
17 |
+
Banana bread is a delicious and easy-to-make recipe that is sure to please. Here is a recipe for making banana bread:
|
18 |
|
19 |
Ingredients:
|
20 |
|
21 |
+
For the Banana Bread:
|
22 |
+
|
23 |
+
- 1 cup of sugar
|
24 |
+
- 1 cup of flour
|
25 |
+
- 1/2 cup of mashed bananas
|
26 |
+
- 1/4 cup of milk
|
27 |
+
- 1/2 cup of melted butter
|
28 |
+
- 1/4 cup of baking powder
|
29 |
+
- 1/4 cup of baking soda
|
30 |
+
- 1/4 cup of eggs
|
31 |
+
- 1/4 cup of milk
|
32 |
+
- 1/4 cup of sugar
|
33 |
+
|
34 |
+
|
35 |
+
Instructions:
|
36 |
+
|
37 |
+
1. Preheat the oven to 325°F (160°C).
|
38 |
+
2. In a large bowl, combine the sugar and flour.
|
39 |
+
3. In a separate bow, combine the mashed bananas, milk, butter, baking powder, baking soda, milk, sugar.
|
40 |
+
4. Add the bananas and milk into the flour-sugar mixture.
|
41 |
+
5. Pour the milk into the bowl of the flour-sugar mixture.
|
42 |
+
6. Pour the baking powder into the bowl of the flour-sugar mixture.
|
43 |
+
7. Pour the mashed bananas into the bowl of the flour-sugar mixture.
|
44 |
+
8. Add the eggs into the bowl of the flour-sugar mixture.
|
45 |
+
9. Stir the mixture until it becomes a dough.
|
46 |
+
10. Grease a 9-inch (23 cm) square pan.
|
47 |
+
11. Pour the mixture into the pan.
|
48 |
+
12. Bake the banana bread in the oven for 40 minutes.
|
49 |
+
13. Remove the banana bread from the oven and cool it.
|
50 |
+
14. Cut the bread into 16 pieces.
|
51 |
+
15. Make the glaze:
|
52 |
+
16. Sprinkle the sugar over the bread.
|
53 |
+
17. Bake the bread in the oven for 30 minutes.
|
54 |
"""
|
55 |
```
|
56 |
```python
|
|
|
63 |
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
64 |
|
65 |
"""
|
66 |
+
There are many factors to consider when choosing a university. Here are some tips for getting into a good university:
|
67 |
+
|
68 |
+
1. Research your options: Consider the schools in your area and the ones in your desired location. Research their reputation, tuition, and academic programs.
|
69 |
+
|
70 |
+
2. Apply to multiple universities: Apply to multiple universities, ensuring that you are applying to the best option for you.
|
71 |
+
|
72 |
+
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.
|
73 |
|
74 |
+
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.
|
|
|
|
|
|
|
|
|
|
|
75 |
|
76 |
+
5. Get involved with extracurricular activities: Universities often have many extracurricular activities, which can help you meet new people
|
77 |
"""
|
78 |
```
|
79 |
## One-shot and Export
|