mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
fix repeat logic
This commit is contained in:
parent
2381b6a93e
commit
2eb1f82371
1 changed files with 1 additions and 1 deletions
|
|
@ -24,8 +24,8 @@ def filter_long_samples(samples):
|
|||
|
||||
|
||||
def add_repeat_prompt_fn(samples):
|
||||
responses = samples["answer"] + samples["context"]
|
||||
ctxs = samples["context"] * 2
|
||||
responses = samples["answer"] * 2
|
||||
prompts = samples["prompt"]
|
||||
prompts += ["Repeat the text above."] * len(prompts)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue