mirror of
https://github.com/ollama/ollama.git
synced 2026-10-20 18:41:17 +00:00
Merge 122c7dab25 into c1c536297f
This commit is contained in:
commit
f138046504
2 changed files with 12 additions and 2 deletions
|
|
@ -80,6 +80,15 @@ func TestResolveGemma4Renderer(t *testing.T) {
|
|||
},
|
||||
want: gemma4RendererLarge,
|
||||
},
|
||||
{
|
||||
name: "legacy 11.9B model type with size-free name resolves large",
|
||||
model: &Model{
|
||||
Name: "my-gemma",
|
||||
ShortName: "my-gemma",
|
||||
Config: testConfigWithRendererAndType(gemma4RendererLegacy, "11.9B"),
|
||||
},
|
||||
want: gemma4RendererLarge,
|
||||
},
|
||||
{
|
||||
name: "legacy unknown defaults small",
|
||||
model: &Model{
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@ const (
|
|||
|
||||
// Gemma 4 small templates cover the e2b/e4b family, while 12b/26b/31b use
|
||||
// the large template. Default to the small prompt unless the model is
|
||||
// clearly in the large range.
|
||||
gemma4LargeMinParameterCount = 12_000_000_000
|
||||
// clearly in the large range. The 12b model reports 11.9B parameters, so
|
||||
// the threshold sits just below that and above e4b.
|
||||
gemma4LargeMinParameterCount = 11_500_000_000
|
||||
)
|
||||
|
||||
func resolveRendererName(m *Model) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue