Commit
·
92b3c79
1
Parent(s):
708fd99
Update README.md
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ tags:
|
|
| 11 |
- deepsparse
|
| 12 |
---
|
| 13 |
# Llama-2-7b-chat-hf - DeepSparse
|
| 14 |
-
This repo contains model files for [Llama-2-7b-hf](https://huggingface.co/NousResearch/Llama-2-7b-chat-hf) optimized for [DeepSparse](https://github.com/neuralmagic/deepsparse), a CPU inference runtime for sparse models.
|
| 15 |
|
| 16 |
This model was quantized and pruned with [SparseGPT](https://arxiv.org/abs/2301.00774), using [SparseML](https://github.com/neuralmagic/sparseml).
|
| 17 |
|
|
@@ -31,7 +31,23 @@ model = TextGeneration(model_path="hf:nm-testing/Llama2-7b-chat-pruned50-qunat-d
|
|
| 31 |
|
| 32 |
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
| 33 |
"""
|
|
|
|
|
|
|
| 34 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 35 |
"""
|
| 36 |
```
|
| 37 |
|
|
|
|
| 11 |
- deepsparse
|
| 12 |
---
|
| 13 |
# Llama-2-7b-chat-hf - DeepSparse
|
| 14 |
+
This repo contains model files for [Llama-2-7b-chat-hf](https://huggingface.co/NousResearch/Llama-2-7b-chat-hf) optimized for [DeepSparse](https://github.com/neuralmagic/deepsparse), a CPU inference runtime for sparse models.
|
| 15 |
|
| 16 |
This model was quantized and pruned with [SparseGPT](https://arxiv.org/abs/2301.00774), using [SparseML](https://github.com/neuralmagic/sparseml).
|
| 17 |
|
|
|
|
| 31 |
|
| 32 |
print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
|
| 33 |
"""
|
| 34 |
+
Banana bread is a delicious and easy-to-make treat that can be enjoyed year-round.
|
| 35 |
+
Here is a basic recipe for banana bread that you can try at home:
|
| 36 |
|
| 37 |
+
Ingredients:
|
| 38 |
+
|
| 39 |
+
* 3 ripe bananas, peeled and sliced
|
| 40 |
+
* 1/2 cup (120 ml) vegetable oil
|
| 41 |
+
* 2 tbsp (30 ml) sugar
|
| 42 |
+
* 2 tbsp (30 ml) water
|
| 43 |
+
* 2 tbsp (30 ml) all-purpose flour
|
| 44 |
+
* 1 tsp (2.5 ml) baking powder
|
| 45 |
+
* 1 tsp (2.5 ml) salt
|
| 46 |
+
* 1 tbsp (30 ml) vanilla extract
|
| 47 |
+
|
| 48 |
+
Instructions:
|
| 49 |
+
|
| 50 |
+
1. Preheat the oven to 3500°F (
|
| 51 |
"""
|
| 52 |
```
|
| 53 |
|