You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(refactor): track grpcProcess in the model structure (#3663)
* chore(refactor): track grpcProcess in the model structure
This avoids to have to handle in two parts the data relative to the same
model. It makes it easier to track and use mutex with.
This also fixes races conditions while accessing to the model.
Signed-off-by: Ettore Di Giacinto <[email protected]>
* chore(tests): run protogen-go before starting aio tests
Signed-off-by: Ettore Di Giacinto <[email protected]>
* chore(tests): install protoc in aio tests
Signed-off-by: Ettore Di Giacinto <[email protected]>
---------
Signed-off-by: Ettore Di Giacinto <[email protected]>
Copy file name to clipboardExpand all lines: pkg/model/loader.go
+14-18Lines changed: 14 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -13,28 +13,25 @@ import (
13
13
14
14
"github.com/mudler/LocalAI/pkg/utils"
15
15
16
-
process "github.com/mudler/go-processmanager"
17
16
"github.com/rs/zerolog/log"
18
17
)
19
18
20
19
// new idea: what if we declare a struct of these here, and use a loop to check?
21
20
22
21
// TODO: Split ModelLoader and TemplateLoader? Just to keep things more organized. Left together to share a mutex until I look into that. Would split if we seperate directories for .bin/.yaml and .tmpl
0 commit comments