models: Move model into their own directory

This allows there to be a file that is a list of models that is
not mixed into the runner code.
This commit is contained in:
Jesse Gross 2025-02-05 11:16:28 -08:00 committed by Jesse Gross
parent 7916f55009
commit 6945617af5
14 changed files with 8 additions and 2 deletions

6
model/models/models.go Normal file
View File

@ -0,0 +1,6 @@
package models
import (
_ "github.com/ollama/ollama/model/models/llama"
_ "github.com/ollama/ollama/model/models/mllama"
)

View File

@ -11,7 +11,7 @@ import (
"github.com/ollama/ollama/api"
"github.com/ollama/ollama/llm"
"github.com/ollama/ollama/model/mllama"
"github.com/ollama/ollama/model/models/mllama"
"github.com/ollama/ollama/template"
)

View File

@ -32,7 +32,7 @@ import (
"github.com/ollama/ollama/envconfig"
"github.com/ollama/ollama/fs/ggml"
"github.com/ollama/ollama/llm"
"github.com/ollama/ollama/model/mllama"
"github.com/ollama/ollama/model/models/mllama"
"github.com/ollama/ollama/openai"
"github.com/ollama/ollama/template"
"github.com/ollama/ollama/types/errtypes"