mwitiderrick commited on
Commit
0c50451
·
verified ·
1 Parent(s): 158cc34

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ```python
2
+ from deepsparse import TextGeneration
3
+
4
+ prompt = "James decides to run 3 sprints 3 times a week. He runs 60 meters each sprint. How many total meters does he run a week?"
5
+ formatted_prompt = f"Question:{prompt}\nAnswer:"
6
+
7
+ model = TextGeneration(model_path="hf:nm-testing/TinyLlama-1.1B-intermediate-step-1431k-3T-gsms8k-pruned50-quant-ds")
8
+ print(model(formatted_prompt, max_new_tokens=200).generations[0].text)
9
+ """
10
+ He runs 3*60=<<3*60=180>>180 meters a week
11
+ So he runs 180/3=<<180/3=60>>60 times a week
12
+ #### 60
13
+ """
14
+ ```