fix(eval): call load() for embeddings before reload() for checkpoint

This commit is contained in:
KoalaTrapLord authored and GitHub committed 2026-03-30 09:53:56 -04:00
1 parent cf2d7ed806
commit 5554ef4dd7
1 file changed
+2 -1
+2 -1
View File
@@ -219,7 +219,8 @@ class ForgeEvaluator:
embeddings_dir=self.cfg.embeddings_dir,
device=self.cfg.device,
)
# Use reload() with explicit checkpoint path (load() hardcodes best_policy.pt)
# load() initializes embeddings + encoder; reload() loads the exact checkpoint file
svc.load() # loads embeddings + encoder (checkpoint load will fail — that's OK)
ok = svc.reload(self.cfg.checkpoint_path)
if not ok:
logger.warning("[Eval] Policy service load failed — entropy/latency metrics unavailable")