From 4b6252151e8d1c48f1d0527aac3df882fed5d98d Mon Sep 17 00:00:00 2001 From: codingma Date: Thu, 1 Aug 2024 13:45:48 +0800 Subject: [PATCH] support gemma-2-2b Former-commit-id: 7037192cf6049fd7d675aed4a6237ed929c6b170 --- src/llamafactory/extras/constants.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/llamafactory/extras/constants.py b/src/llamafactory/extras/constants.py index 45145886..c413c51d 100644 --- a/src/llamafactory/extras/constants.py +++ b/src/llamafactory/extras/constants.py @@ -531,6 +531,14 @@ register_model_group( "Gemma-1.1-7B-Chat": { DownloadSource.DEFAULT: "google/gemma-1.1-7b-it", }, + "Gemma-2-2B": { + DownloadSource.DEFAULT: "google/gemma-2-2b", + DownloadSource.MODELSCOPE: "LLM-Research/gemma-2-2b", + }, + "Gemma-2-2B-Chat": { + DownloadSource.DEFAULT: "google/gemma-2-2b-it", + DownloadSource.MODELSCOPE: "LLM-Research/gemma-2-2b-it", + }, "Gemma-2-9B": { DownloadSource.DEFAULT: "google/gemma-2-9b", DownloadSource.MODELSCOPE: "LLM-Research/gemma-2-9b",