fix(eval): correct indentation for load/reload in _load_policy_service

This commit is contained in:
rgriffith committed 2026-03-30 10:36:43 -04:00
1 parent 5554ef4dd7
commit 574bb79a0b
1 file changed
+2 -3
+2 -3
View File
@@ -219,9 +219,8 @@ class ForgeEvaluator:
embeddings_dir=self.cfg.embeddings_dir,
device=self.cfg.device,
)
# 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)
svc.load()
ok = svc.reload(self.cfg.checkpoint_path)
if not ok:
logger.warning("[Eval] Policy service load failed — entropy/latency metrics unavailable")
return svc