File size: 2,339 Bytes
48e4940 1b87ada 039c3ce 1b87ada | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | ---
tags:
- mergekit
- info
---
[](https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fzelk12%2FMergekit_Gemma-4-E2B)
EN
This simply describes how the Gemma 4 E2B models were merged using Mergekit and will download the files that were used to merge.
This works for Mergekit as of May 6, 2026.
First, a `gemma4.json` file was created at `/usr/local/lib/python3.12/dist-packages/mergekit/_data/architectures/gemma4.json`. The file will be added here for downloading.
The second thing I did was modify the `common.py` file at `/usr/local/lib/python3.12/dist-packages/mergekit/common.py`. Specifically, I modified the get_config_value function so that it could look inside text_config . The modified version will also be available for download.
Not sure if both steps are needed, but this allows for merging of Gemma 4 E2B, for other Gemma 4 models these files have not been tested.
___
___
RU
Здесь просто описано, как было произведено объединение моделей Gemma 4 E2B с использованием Mergekit и будут загружены файлы, которые использовались для объединения.
Это работает для Mergekit от 6 мая 2026 года.
Первое, это был создан файл `gemma4.json` по пути `/usr/local/lib/python3.12/dist-packages/mergekit/_data/architectures/gemma4.json` файл, будет добавлен сюда, для возможности загрузки.
Второе, что было сделано, это изменён файл, `common.py` по пути `/usr/local/lib/python3.12/dist-packages/mergekit/common.py`, конкретно, была изменена функция `get_config_value`, так, чтобы она могла заглядывать внутрь `text_config`. Изменёный вариант, также будт доступен для загрузки.
Не уверен, нужны ли оба действия, но это позволяет провести объединение Gemma 4 E2B, для других моделей Gemma 4, эти файлы не проверялись. |