MCPcopy
hub / github.com/mudler/LocalAI / ShutdownModel

Method ShutdownModel

pkg/model/loader.go:407–412  ·  view source on GitHub ↗
(modelName string)

Source from the content-addressed store, hash-verified

405}
406
407func (ml *ModelLoader) ShutdownModel(modelName string) error {
408 ml.mu.Lock()
409 defer ml.mu.Unlock()
410
411 return ml.deleteProcess(modelName)
412}
413
414func (ml *ModelLoader) CheckIsLoaded(s string) *Model {
415 ml.mu.Lock()

Callers 1

LoadMethod · 0.95

Calls 3

deleteProcessMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected