Merge pull request #76 from KoalaTrapLord/fix/distillation-results-dir
fix: distillation loop uses wrong results_dir path
This commit is contained in:
2 files changed
+6
-6
No files matched your search
@@ -62,10 +62,10 @@ class DistillationConfig:
|
||||
convergence_threshold: float = 0.01 # Min win-rate improvement to not plateau
|
||||
|
||||
# --- Paths ---
|
||||
results_dir: str = "data/results"
|
||||
results_dir: str = "results"
|
||||
models_dir: str = "ml/models"
|
||||
checkpoint_dir: str = "ml/models/checkpoints"
|
||||
history_dir: str = "data/results/distillation-history"
|
||||
history_dir: str = "results/distillation-history"
|
||||
|
||||
# --- Supervised training ---
|
||||
supervised_epochs: int = 30
|
||||
|
||||
+4
-4
@@ -800,10 +800,10 @@ def _run_distillation_pipeline(
|
||||
opponent=opponent,
|
||||
playstyle=playstyle,
|
||||
min_ppo_win_rate=min_win_rate,
|
||||
results_dir=os.path.join(project_root, "data", "results"),
|
||||
results_dir=os.path.join(project_root, "results"),
|
||||
models_dir=os.path.join(project_root, "ml", "models"),
|
||||
checkpoint_dir=os.path.join(project_root, "ml", "models", "checkpoints"),
|
||||
history_dir=os.path.join(project_root, "data", "results", "distillation-history"),
|
||||
history_dir=os.path.join(project_root, "results", "distillation-history"),
|
||||
)
|
||||
|
||||
loop = DistillationLoop(cfg)
|
||||
@@ -925,8 +925,8 @@ async def ml_stop_distillation():
|
||||
async def ml_distillation_history():
|
||||
"""Get distillation generation history from disk."""
|
||||
project_root = Path(__file__).resolve().parent.parent
|
||||
history_path = project_root / "data" / "results" / "distillation-history" / "generations.json"
|
||||
summary_path = project_root / "data" / "results" / "distillation-history" / "summary.json"
|
||||
history_path = project_root / "results" / "distillation-history" / "generations.json"
|
||||
summary_path = project_root / "results" / "distillation-history" / "summary.json"
|
||||
|
||||
result = {"generations": [], "summary": None}
|
||||
|
||||
|
||||
Reference in new issue
Block a user