-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
1743ee2
commit b9c1900
Showing
13 changed files
with
17,715 additions
and
4 deletions.
There are no files selected for viewing
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
data/taylor_swift_model_ouputs/llama-2-7b-chat-ft_taylor_swift-taylor-test-outputs.json
Large diffs are not rendered by default.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
data/taylor_swift_model_ouputs/llama-2-7b-chat-taylor-test-outputs.json
Large diffs are not rendered by default.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
data/taylor_swift_model_ouputs/lyre-chat-checkpoint-100-taylor-test-outputs.json
Large diffs are not rendered by default.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
data/taylor_swift_model_ouputs/lyre-chat_taylor_swift-checkpoint-10-taylor-test-outputs.json
Large diffs are not rendered by default.
Oops, something went wrong.
121 changes: 121 additions & 0 deletions
121
data/taylor_swift_model_ouputs/lyre-chat_taylor_swift-taylor-test-outputs.json
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import argparse | ||
import pandas as pd | ||
|
||
|
||
def main(args): | ||
|
||
data = pd.read_json(args.data_path, lines=True) | ||
data['conversations'] = pd.Series(list(zip(data['prompt'], data['lyrics']))).map(lambda t: [{'from': 'human', 'value': t[0]}, {'from': 'gpt', 'value': t[1]}]) | ||
data[['id', 'conversations']].to_json(args.out_path, orient='records', indent=1) | ||
|
||
return | ||
|
||
|
||
if __name__ == "__main__": | ||
parser = argparse.ArgumentParser(description='Generate Prompts') | ||
parser.add_argument('--data-path', type=str, help='Data path', required=True) | ||
parser.add_argument('--out-path', type=str, help='Out data path', required=True) | ||
|
||
|
||
args = parser.parse_args() | ||
|
||
main(args) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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