fix(eval): correct indentation for load/reload in _load_policy_service
This commit is contained in:
1 parent
5554ef4dd7
commit
574bb79a0b
1 file changed
+2
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user