-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
49 changed files
with
232 additions
and
915 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
description: Math Problems | ||
document: | ||
- read: examples/arith/example1.txt | ||
- read: examples/arith/example2.txt | ||
- "\n" | ||
- | | ||
Question: Noah charges $10 for a large box and $5 for a small box. | ||
Last month he sold four large boxes and two small boxes. | ||
If he sold half as much this month, how much is his sales for this month? | ||
- repeat: | ||
- def: REASON_OR_CALC | ||
model: ibm/granite-20b-code-instruct | ||
params: | ||
stop_sequences: | ||
- '<<' | ||
include_stop_sequence: true | ||
- if: '{{ REASON_OR_CALC.endswith("<<") }}' | ||
then: | ||
- def: EXPR | ||
model: ibm/granite-20b-code-instruct | ||
params: | ||
stop_sequences: | ||
- '=' | ||
- "\n" | ||
- "Question" | ||
include_stop_sequence: false | ||
- '= ' | ||
- def: RESULT | ||
lan: python | ||
code: result = {{ EXPR }} | ||
- ' >>' | ||
until: '{{ "The answer is" in REASON_OR_CALC }}' | ||
- "\n" |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.