cache loaded model

This commit is contained in:
Jeffrey Morgan
2023-07-31 21:35:18 -04:00
parent 81f75696e2
commit 528bafa585
4 changed files with 30 additions and 42 deletions

View File

@@ -32,6 +32,7 @@ type Model struct {
ModelPath string
Template string
System string
Digest string
Options api.Options
}
@@ -135,6 +136,7 @@ func GetModel(name string) (*Model, error) {
model := &Model{
Name: mp.GetFullTagname(),
Digest: manifest.Config.Digest,
}
for _, layer := range manifest.Layers {