mwitiderrick
commited on
Commit
•
857ba1a
1
Parent(s):
32bd3e0
Update README.md
Browse files
README.md
CHANGED
@@ -28,10 +28,29 @@ prompt = "How to make banana bread?"
|
|
28 |
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
|
29 |
|
30 |
model = TextGeneration(model_path="hf:nm-testing/TinyLlama-1.1B-Chat-v1.0-pruned50-quant-ds")
|
31 |
-
print(model(formatted_prompt, max_new_tokens=
|
32 |
|
33 |
"""
|
|
|
34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
|
36 |
"""
|
37 |
```
|
|
|
28 |
formatted_prompt = f"<|im_start|>user\n{prompt}<|im_end|>\n<|im_start|>assistant\n"
|
29 |
|
30 |
model = TextGeneration(model_path="hf:nm-testing/TinyLlama-1.1B-Chat-v1.0-pruned50-quant-ds")
|
31 |
+
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
32 |
|
33 |
"""
|
34 |
+
Sure, here's a recipe for making banana bread:
|
35 |
|
36 |
+
Ingredients:
|
37 |
+
- 1 cup of all-purpose flour
|
38 |
+
- 1 cup of instant potatoes
|
39 |
+
- 1 cup of unsalted instant potatoes
|
40 |
+
- 1/2 cup of instant potatoes
|
41 |
+
- 1/2 cup of instant potatoes
|
42 |
+
- 1/2 cup of instant potatoes
|
43 |
+
- 1/2 cup of instant potatoes
|
44 |
+
- 1/2 cup of instant potatoes
|
45 |
+
- 1/2 cup of instant potatoes
|
46 |
+
- 1/2 cup of instant potatoes
|
47 |
+
- 1/2 cup of instant potatoes
|
48 |
+
- 1/2 cup of instant potatoes
|
49 |
+
- 1/2 cup of instant potatoes
|
50 |
+
- 1/2 cup of instant potatoes
|
51 |
+
- 1/2 cup of instant potatoes
|
52 |
+
- 1/2 cup of instant potatoes
|
53 |
+
-
|
54 |
|
55 |
"""
|
56 |
```
|