MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / unload

Method unload

core/loader_v2.py:343–349  ·  view source on GitHub ↗

Unload (stop) the current model server.

(self)

Source from the content-addressed store, hash-verified

341 return False
342
343 def unload(self):
344 """Unload (stop) the current model server."""
345 if self._server:
346 info("Stopping model server...")
347 self._server.stop()
348 self._server = None
349 self._loaded = False
350
351 def ensure_model(self, model_type: str = "primary") -> bool:
352 """Ensure the model is loaded and running."""

Callers 4

shutdownFunction · 0.80
reset_loaderFunction · 0.80
swap_to_finetuned_modelFunction · 0.80
rollback_to_backupFunction · 0.80

Calls 2

infoFunction · 0.90
stopMethod · 0.45

Tested by

no test coverage detected