Merge pull request #6 from janmaltel/janmaltel/input-bug

Fix bug in generate promp using 'instruction' instead of 'input'
This commit is contained in:
Eric J. Wang 2023-03-14 08:42:13 -07:00 committed by GitHub
commit 1193c63833
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ data = load_dataset("json", data_files="alpaca_data.json")
def generate_prompt(data_point): def generate_prompt(data_point):
# sorry about the formatting disaster gotta move fast # sorry about the formatting disaster gotta move fast
if data_point["instruction"]: if data_point["input"]:
return f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. return f"""Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction: ### Instruction: