]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : fix incorrect model type for Gemma 270M (#15764)
authorDaniel Bevenius <redacted>
Wed, 3 Sep 2025 11:35:49 +0000 (13:35 +0200)
committerGitHub <redacted>
Wed, 3 Sep 2025 11:35:49 +0000 (13:35 +0200)
commit2c8dac72eb6acd4e20c0da251535dfc46d35178b
treeadaee43904e29bb074db004e472b00e2743d54f8
parent40a751ea9a94364da73537b86502a808ebe1fc3a
llama : fix incorrect model type for  Gemma 270M (#15764)

This commit fixes the model type for the Gemma 270M model in
llama_model.cpp which should be LLM_TYPE_270M. I incorrectly added this
previously as LLM_TYPE_537M which was wrong.

The motivation for this is that it causes the model to not be identified
properly when using tools like llama-bench. For example:
```console
$ ./build/bin/llama-bench -m models/gemma-3-270m-Q8_0.gguf
| model                          |       size | ...
| ------------------------------ | ---------: | ...
| gemma3 ?B Q8_0                 | 271.81 MiB | ...
| gemma3 ?B Q8_0                 | 271.81 MiB | ...
```

With the changes in this commit the output will be:
```console
$ ./build/bin/llama-bench -m models/gemma-3-270m-Q8_0.gguf
| model                          |       size | ...
| ------------------------------ | ---------: | ...
| gemma3 270M Q8_0               | 271.81 MiB | ...
| gemma3 270M Q8_0               | 271.81 MiB | ...
```
src/llama-model.cpp
src/llama-model.h