-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Igor Gitman <[email protected]>
- Loading branch information
Showing
13 changed files
with
41 additions
and
66 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,16 +1,14 @@ | ||
few_shot_examples: | ||
template: "Question:\n{question}\n\n{context}My solution:\n{generation}\n\n\n\n\n\n" | ||
template: "Question:\n{question}{context}\n\nMy solution:\n{generation}\n\n\n\n\n\n" | ||
|
||
system: "" | ||
user: |- | ||
Here are some examples of questions and solutions followed by a new question that you need to solve. | ||
Make sure to put the answer (and only answer) inside \boxed{{}}. | ||
{examples}Question: | ||
{question} | ||
{question}{context} | ||
{context} | ||
prompt_template: "<|begin_of_text|>{user}My solution:\n{generation}" | ||
prompt_template: "<|begin_of_text|>{user}\n\nMy solution:\n{generation}" | ||
|
||
stop_phrases: ["\n\n\n\n\n\n"] |
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 |
---|---|---|
@@ -1,23 +1,22 @@ | ||
few_shot_examples: | ||
template: "Question:\n{question}\n\n{context}My solution:\n{generation}\n\n\n\n\n\n" | ||
template: "Question:\n{question}{context}\n\nMy solution:\n{generation}\n\n\n\n\n\n" | ||
|
||
system: |- | ||
You are Meta AI, a sophisticated and energetic AI Assistant. You excel at solving mathematical problems. | ||
system: "" | ||
|
||
user: |- | ||
Here are some examples of questions and solutions followed by a new question that you need to solve. | ||
Make sure to put the answer (and only answer) inside \boxed{{}}. | ||
{examples}Question: | ||
{question} | ||
{context} | ||
{question}{context} | ||
prompt_template: |- | ||
<|begin_of_text|><|start_header_id|>system<|end_header_id|> | ||
{system}<|eot_id|><|start_header_id|>user<|end_header_id|> | ||
{user}<|eot_id|><|start_header_id|>assistant<|end_header_id|>{generation} | ||
{user} | ||
<|eot_id|><|start_header_id|>assistant<|end_header_id|>{generation} | ||
stop_phrases: ["<|eot_id|>"] |
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 |
---|---|---|
@@ -1,7 +1,3 @@ | ||
few_shot_examples: | ||
template: "" | ||
num_few_shots: 0 | ||
|
||
system: "" | ||
|
||
user: "{question}{context}" | ||
|
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
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
few_shot_examples: | ||
template: "Question:\n{question}\n\n{context}My solution:\n{generation}\n\n\n\n\n\n" | ||
template: "Question:\n{question}{context}\n\nMy solution:\n{generation}\n\n\n\n\n\n" | ||
system: "" | ||
user: |- | ||
Here are some examples of questions and solutions followed by a new question that you need to solve. | ||
Make sure to put the answer (and only answer) inside \boxed{{}}. | ||
{examples}Question: | ||
{question} | ||
{question}{context} | ||
{context} | ||
prompt_template: "{system}{user}My solution:\n{generation}" | ||
prompt_template: "{system}{user}\n\nMy solution:\n{generation}" | ||
stop_phrases: ["\n\n\n\n\n\n"] |
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 |
---|---|---|
@@ -1,14 +1,12 @@ | ||
few_shot_examples: | ||
template: "Question:\n{question}\n\n{context}My solution:\n{reference_solution}\n\n\n\n\n\n" | ||
template: "Question:\n{question}{context}\n\nMy solution:\n{reference_solution}\n\n\n\n\n\n" | ||
system: "" | ||
user: |- | ||
Here are some examples of questions and solutions followed by a new question that you need to solve. | ||
Make sure to put the answer (and only answer) inside \boxed{{}}. | ||
{examples}Question: | ||
{question} | ||
{question}{context} | ||
{context} | ||
prompt_template: "{system}{user}My solution:\n{generation}" | ||
prompt_template: "{system}{user}\n\nMy solution:\n{generation}" | ||
stop_phrases: ["\n\n\n\n\n\n"] |
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 |
---|---|---|
@@ -1,13 +1,9 @@ | ||
few_shot_examples: | ||
template: "" | ||
num_few_shots: 0 | ||
|
||
system: >- # no line breaks! | ||
You're an expert Python programmer and mathematician. | ||
Help the user to solve this problem using code when necessary. | ||
Make sure to put the answer (and only answer) inside \boxed{}. | ||
user: "{question}\n\n{context}" | ||
user: "{question}{context}\n\n" | ||
|
||
prompt_template: "System:\n{system}\n\nUser:\n{user}Assistant:\n{generation}" | ||
stop_phrases: [] |
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
10 changes: 5 additions & 5 deletions
10
nemo_skills/inference/prompt/question_generation/augmentation.yaml
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
few_shot_examples: | ||
template: "Question:\n{question}\n\n{context}Write another question similar to this one:\n{augmented_question}\n\n\n\n\n\n" | ||
template: "Question:\n{question}{context}\n\nWrite another question similar to this one:\n{augmented_question}\n\n\n\n\n\n" | ||
|
||
system: "" | ||
|
||
user: |- | ||
You are an AI assistant that excels at creating similar questions. Follow the given examples. | ||
{examples}Question: | ||
{question} | ||
{context} | ||
{question}{context} | ||
prompt_template: |- | ||
{system}{user}Write another question similar to this one: | ||
{system}{user} | ||
Write another question similar to this one: | ||
{generation} | ||
stop_phrases: ["\n\n\n\n\n\n"] |
10 changes: 5 additions & 5 deletions
10
nemo_skills/inference/prompt/question_generation/rephrasing.yaml
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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
few_shot_examples: | ||
template: "Question:\n{question}\n\n{context}Rephrase the above question:\n{rephrased_question}\n\n\n\n\n\n" | ||
template: "Question:\n{question}{context}\n\nRephrase the above question:\n{rephrased_question}\n\n\n\n\n\n" | ||
|
||
system: "" | ||
|
||
user: |- | ||
You are an AI assistant that excels at rephrasing questions. Follow the given examples. | ||
{examples}Question: | ||
{question} | ||
{context} | ||
{question}{context} | ||
prompt_template: |- | ||
{system}{user}Rephrase the above question: | ||
{system}{user} | ||
Rephrase the above question: | ||
{generation} | ||
stop_phrases: ["\n\n\n\n\n\n"] |
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