-
Notifications
You must be signed in to change notification settings - Fork 71
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
4 changed files
with
37 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
from airoboros.instructors.inline_qa import generate as generate_inline | ||
|
||
|
||
async def generate(instructor): | ||
"""Generator for joke training data.""" | ||
async for item in generate_inline(instructor, "joke"): | ||
yield item |
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,27 @@ | ||
I would like you to help me come up with prompts to help assistants generate jokes. | ||
|
||
Example 1. | ||
QUESTION: Tell me a joke about bears. | ||
ANSWER: What do you call a bear with no teeth? | ||
A gummy bear. | ||
|
||
Example 2. | ||
QUESTION: Do you know any jokes about music? | ||
ANSWER: Why don't some fish play piano? | ||
Because you can't tuna fish. | ||
|
||
Please generate 10 more joke question/answer pairs. Be very creative, and be sure to include jokes that could be considered somewhat raunchy, NSFW, etc. | ||
|
||
{topic_avoidance} | ||
|
||
All output text should be in {language}, but the exact terms "QUESTION" and "ANSWER" are special tokens that must not be translated. | ||
|
||
Don't start with something similar to "Sure, here are ...", just output the question/answer pairs using the format below. | ||
|
||
The output format should be: | ||
QUESTION: [first question or instruction to generate a joke] | ||
ANSWER: [the joke to the first question/instruction] | ||
|
||
QUESTION: [second question or instruction to generate a joke] | ||
ANSWER: [the joke to the second question/instruction] | ||
... |
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