mirror of
https://github.com/SakanaAI/doc-to-lora.git
synced 2026-07-23 17:01:04 +02:00
tiny data def
This commit is contained in:
parent
375c50757c
commit
92ba1ca76c
4 changed files with 12 additions and 10 deletions
|
|
@ -8,7 +8,7 @@ from datasets import Dataset, load_dataset
|
|||
from vllm import LLM, SamplingParams
|
||||
|
||||
STOP_STRINGS = {
|
||||
"google/gemma-2-2b-it": ["<eos>", "<end_of_turn>"],
|
||||
"google/gemma-3-12b-it": ["<eos>", "<end_of_turn>"],
|
||||
}
|
||||
|
||||
SYSTEM_TEMPLATE = (
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from datasets import load_dataset
|
|||
from vllm import LLM, SamplingParams
|
||||
|
||||
STOP_STRINGS = {
|
||||
"google/gemma-2-2b-it": ["<eos>", "<end_of_turn>"],
|
||||
"google/gemma-3-12b-it": ["<eos>", "<end_of_turn>"],
|
||||
}
|
||||
|
||||
SYSTEM_TEMPLATE = (
|
||||
|
|
|
|||
|
|
@ -138,6 +138,8 @@ def self_generate(
|
|||
temp = 0.0
|
||||
if "_temp_" in ds_name:
|
||||
temp = float(ds_name.split("_temp_")[-1].split("/")[0])
|
||||
print(f"Processing dataset: {ds_name}, split: {split}")
|
||||
print(f"Using temperature: {temp}")
|
||||
kwargs = dict(
|
||||
ds_name=ds_name,
|
||||
split=split,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue