mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-12 00:37:04 +00:00
cache loaded model
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user