Update README.md
Browse files
README.md
CHANGED
@@ -89,7 +89,7 @@ pipeline = transformers.pipeline(
|
|
89 |
|
90 |
</details>
|
91 |
|
92 |
-
###
|
93 |
|
94 |
```python
|
95 |
question = "The bakers at the Beverly Hills Bakery baked 200 loaves of bread on Monday morning. They sold 93 loaves in the morning and 39 loaves in the afternoon. A grocery store then returned 6 unsold loaves back to the bakery. How many loaves of bread did the bakery have left?\nRespond as succinctly as possible. Format the response as a completion of this table.\n|step|subquestion|procedure|result|\n|:---|:----------|:--------|:-----:|."
|
@@ -105,6 +105,7 @@ outputs = pipeline(prompt, max_new_tokens=1000, do_sample=True, temperature=0.7,
|
|
105 |
print("***Generation:\n", outputs[0]["generated_text"][len(prompt):])
|
106 |
```
|
107 |
|
|
|
108 |
***Prompt:
|
109 |
<|im_start|>system
|
110 |
You are a helpful assistant.<|im_end|>
|
@@ -114,14 +115,15 @@ Respond as succinctly as possible. Format the response as a completion of this t
|
|
114 |
|step|subquestion|procedure|result|
|
115 |
|:---|:----------|:--------|:-----:|.<|im_end|>
|
116 |
<|im_start|>assistant
|
|
|
117 |
|
118 |
-
|
119 |
|
120 |
-
|
121 |
-
|
122 |
|1|Calculate total loaves sold|Add morning and afternoon sales|132|
|
123 |
|2|Calculate remaining loaves after sales|Subtract total sold from total baked|68|
|
124 |
|3|Calculate final number of loaves|Add returns to remaining loaves|74|
|
125 |
-
|
126 |
|
127 |
|
|
|
89 |
|
90 |
</details>
|
91 |
|
92 |
+
### Run
|
93 |
|
94 |
```python
|
95 |
question = "The bakers at the Beverly Hills Bakery baked 200 loaves of bread on Monday morning. They sold 93 loaves in the morning and 39 loaves in the afternoon. A grocery store then returned 6 unsold loaves back to the bakery. How many loaves of bread did the bakery have left?\nRespond as succinctly as possible. Format the response as a completion of this table.\n|step|subquestion|procedure|result|\n|:---|:----------|:--------|:-----:|."
|
|
|
105 |
print("***Generation:\n", outputs[0]["generated_text"][len(prompt):])
|
106 |
```
|
107 |
|
108 |
+
```
|
109 |
***Prompt:
|
110 |
<|im_start|>system
|
111 |
You are a helpful assistant.<|im_end|>
|
|
|
115 |
|step|subquestion|procedure|result|
|
116 |
|:---|:----------|:--------|:-----:|.<|im_end|>
|
117 |
<|im_start|>assistant
|
118 |
+
```
|
119 |
|
120 |
+
### Output
|
121 |
|
122 |
+
```
|
123 |
+
***Generation:
|
124 |
|1|Calculate total loaves sold|Add morning and afternoon sales|132|
|
125 |
|2|Calculate remaining loaves after sales|Subtract total sold from total baked|68|
|
126 |
|3|Calculate final number of loaves|Add returns to remaining loaves|74|
|
127 |
+
```
|
128 |
|
129 |
|