-
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.
Stylized responses (aka responses with custom system prompt).
- Loading branch information
Showing
26 changed files
with
249 additions
and
46 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,9 +1,9 @@ | ||
from airoboros.instructors.inline_qa import generate as generate_inline | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for agent/router training data.""" | ||
async for item in generate_inline( | ||
instructor, "agent", start_key="PROMPT", filter_response=False | ||
instructor, "agent", start_key="PROMPT", filter_response=False, **kwargs | ||
): | ||
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from airoboros.instructors.inline_qa import generate as generate_inline | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for model/scenario card training data.""" | ||
async for item in generate_inline(instructor, "card", start_key="PROMPT"): | ||
async for item in generate_inline(instructor, "card", start_key="PROMPT", **kwargs): | ||
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
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,7 +1,9 @@ | ||
from airoboros.instructors.simple_task import generate as generate_simple | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for chain-of-thought training data.""" | ||
async for item in generate_simple(instructor, "cot", filter_response=False): | ||
async for item in generate_simple( | ||
instructor, "cot", filter_response=False, **kwargs | ||
): | ||
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
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
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,7 +1,7 @@ | ||
from airoboros.instructors.inline_qa import generate as generate_inline | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for joke training data.""" | ||
async for item in generate_inline(instructor, "joke"): | ||
async for item in generate_inline(instructor, "joke", **kwargs): | ||
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
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,7 @@ | ||
from airoboros.instructors.inline_qa import generate as generate_inline | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for orca training data.""" | ||
async for item in generate_inline(instructor, "orca"): | ||
async for item in generate_inline(instructor, "orca", **kwargs): | ||
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
from airoboros.instructors.simple_task import generate as generate_simple | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for rewoo style planning.""" | ||
async for item in generate_simple(instructor, "plan", filter_response=False): | ||
async for item in generate_simple( | ||
instructor, "plan", filter_response=False, **kwargs | ||
): | ||
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from airoboros.instructors.inline_qa import generate as generate_inline | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for riddle training data.""" | ||
async for item in generate_inline(instructor, "riddle"): | ||
async for item in generate_inline(instructor, "riddle", **kwargs): | ||
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from airoboros.instructors.simple_task import generate as generate_simple_task | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for roleplay training data.""" | ||
async for item in generate_simple_task(instructor, "roleplay"): | ||
async for item in generate_simple_task(instructor, "roleplay", **kwargs): | ||
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
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,7 @@ | ||
from airoboros.instructors.simple_task import generate as generate_simple_task | ||
|
||
|
||
async def generate(instructor): | ||
async def generate(instructor, **kwargs): | ||
"""Generator for song training data.""" | ||
async for item in generate_simple_task(instructor, "song"): | ||
async for item in generate_simple_task(instructor, "song", **kwargs): | ||
yield item |
Oops, something went wrong.