RAFT attempts and fixes

This commit is contained in:
2026-02-08 16:41:24 +01:00
parent ef99f152ac
commit e3c9b7286f
2 changed files with 680 additions and 2 deletions

View File

@@ -29,8 +29,9 @@ from peft import PeftModel
from transformers import AutoModelForCausalLM
# Paths
DATA_JSONL = Path("./outputs/raft_dataset.jsonl") # change if different
RUN_NAME = "raft_qlora_tourist_0.2"
# DATA_JSONL = Path("./outputs/raft_dataset.jsonl") # change if different
DATA_JSONL = Path("../raft/bali_culture_raft_dataset.jsonl")
RUN_NAME = "raft_qlora_tourist"
OUTPUT_DIR = Path(f"./finetuned/{RUN_NAME}")
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
ADAPTER_DIR = OUTPUT_DIR / "lora_adapter"