mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
self-gen train runs
This commit is contained in:
parent
3eb9fda2bf
commit
a555a3666b
1 changed files with 1 additions and 2 deletions
|
|
@ -37,7 +37,6 @@ def get_repeat_prompt():
|
|||
return random.choice(REPEAT_PROMPTS)
|
||||
|
||||
|
||||
# TODO: dont use closed_qa_prompting when training on self-generated responses
|
||||
def get_preprocessing_fn(
|
||||
ds_name: str, is_eval: bool
|
||||
) -> Callable[[dict[str, Any]], dict[str, Any]]:
|
||||
|
|
@ -77,7 +76,7 @@ def get_preprocessing_fn(
|
|||
"response": sample["answer"],
|
||||
}
|
||||
|
||||
elif "squad" in ds_name:
|
||||
elif ds_name.startswith("squad"):
|
||||
|
||||
def f(sample):
|
||||
q = sample["question"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue