Commit
·
cf79504
1
Parent(s):
092d0bc
Update README.md
Browse files
README.md
CHANGED
|
@@ -27,7 +27,7 @@ from deepsparse import TextGeneration
|
|
| 27 |
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="hf:
|
| 31 |
print(model(formatted_prompt, max_new_tokens=500).generations[0].text)
|
| 32 |
|
| 33 |
"""
|
|
@@ -76,7 +76,7 @@ from deepsparse import TextGeneration
|
|
| 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:
|
| 80 |
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
| 81 |
|
| 82 |
"""
|
|
|
|
| 27 |
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="hf:neuralmagic/TinyLlama-1.1B-Chat-v0.4-pruned50-quant")
|
| 31 |
print(model(formatted_prompt, max_new_tokens=500).generations[0].text)
|
| 32 |
|
| 33 |
"""
|
|
|
|
| 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 |
"""
|