summaryrefslogtreecommitdiff
path: root/gguf-py
diff options
context:
space:
mode:
authorKawrakow <iwankawrakow@gmail.com>2025-03-22 08:05:10 +0100
committerGitHub <noreply@github.com>2025-03-22 08:05:10 +0100
commitd8584a1bbe561f681d55830688eef33f43155af6 (patch)
tree21e092dcd1d77367b1fb01a14b7dd4d4dcd8afb4 /gguf-py
parent3d6e25c82db5510df483185b8a20f0ce01136dd7 (diff)
Add Gemma3 support (text only) (#276)
* WIP Gemma3: not working * gemma3: build_gemma3 seems to be working now * Revert changes to convert_hf_to_gguf.py It wasn't working, so I guess, it is better to leave the conversion up tp upstream. --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
Diffstat (limited to 'gguf-py')
-rw-r--r--gguf-py/gguf/constants.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gguf-py/gguf/constants.py b/gguf-py/gguf/constants.py
index 037837da..93c614d6 100644
--- a/gguf-py/gguf/constants.py
+++ b/gguf-py/gguf/constants.py
@@ -207,6 +207,7 @@ class MODEL_ARCH(IntEnum):
MINICPM = auto()
GEMMA = auto()
GEMMA2 = auto()
+ GEMMA3 = auto()
STARCODER2 = auto()
MAMBA = auto()
XVERSE = auto()
@@ -338,6 +339,7 @@ MODEL_ARCH_NAMES: dict[MODEL_ARCH, str] = {
MODEL_ARCH.MINICPM: "minicpm",
MODEL_ARCH.GEMMA: "gemma",
MODEL_ARCH.GEMMA2: "gemma2",
+ MODEL_ARCH.GEMMA3: "gemma3",
MODEL_ARCH.STARCODER2: "starcoder2",
MODEL_ARCH.MAMBA: "mamba",
MODEL_ARCH.XVERSE: "xverse",