Update README.md
Browse files
README.md
CHANGED
@@ -38,7 +38,7 @@ from deepsparse import TextGeneration
|
|
38 |
model = TextGeneration(model_path="hf:neuralmagic/Llama-2-7b-pruned70-retrained-ultrachat-quant-ds")
|
39 |
|
40 |
input_text = "Write me a poem about Machine Learning."
|
41 |
-
outputs = model(
|
42 |
print(outputs.generations[0].text)
|
43 |
```
|
44 |
|
|
|
38 |
model = TextGeneration(model_path="hf:neuralmagic/Llama-2-7b-pruned70-retrained-ultrachat-quant-ds")
|
39 |
|
40 |
input_text = "Write me a poem about Machine Learning."
|
41 |
+
outputs = model(input_text, max_new_tokens=100)
|
42 |
print(outputs.generations[0].text)
|
43 |
```
|
44 |
|