/ Модель

Характеристики

Лицензия
Gemma
Базовая модель
gemma-4-E2B-it
Опубликована
16 сен 2026

Gemma-4-E2B-it-GGUF

Генерация текстаТекст → текст3 профессии
294скачиваний за 30 дней0лайковвеса обновлены12 ноя 2026

Описание модели

Составлено на русском по карточке модели и метаданным Hugging Face

Инструктивно дообученная Gemma 4 E2B в формате GGUF для генерации текста и диалогов на платформе Renesas R-Car X5H.

Renesas публикует Gemma-4-E2B-it в формате GGUF для запуска на платформе Renesas R-Car X5H с NPU NPX6. Это инструктивно дообученная языковая модель семейства Gemma 4 с декодерной архитектурой и примерно 2 млрд эффективных параметров; репозиторий содержит вариант FP16 GGUF и материалы для запуска на целевом устройстве.

Модель предназначена для генерации текста и диалогов. README также описывает поддержку аудиовхода при наличии весов аудиоэнкодера, однако карточка метаданных помечает модель как text-only; из-за этого аудиовозможность следует считать заявленной в README, но не отражённой в метаданных. Измерения производительности приведены для R-Car X5H, но опубликованной оценки точности нет.

Для запуска требуются плата R-Car X5H с xOS-v4.34 и NPU NPX6, а также соответствующее программное обеспечение. Репозиторий содержит файлы FP16 GGUF; лицензия указана как Gemma, для доступа к исходной модели может потребоваться принять её условия. Изображения и видео в этой версии не поддерживаются.

Сценарии применения

  • генерация ответов в диалоговом интерфейсе на устройстве Renesas
  • локальный текстовый чат на платформе R-Car X5H
  • создание текста с ускорением на NPU NPX6

Ограничения

Для запуска требуется платформа Renesas R-Car X5H с xOS-v4.34 и NPU NPX6; опубликованной оценки точности нет. Поддержка аудиовхода описана в README, но расходится с пометкой text-only в метаданных; вход изображений и видео в этой версии не поддерживается.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

Бенчмарки пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь рядом с другими моделями теста

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы по шкале 0–100.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Gemma-4-E2B-it (GGUF) – Renesas X5H

Text-only release. This version supports text input and text output only. Image, audio and video input are coming soon.

Introduction

This repository hosts Gemma-4-E2B-it, the instruction-tuned "E2B" (~2B effective parameters) model from Google's Gemma 4 family, targeting the Renesas R-Car X5H platform for text generation and chat on the NPX6 NPU.

  • Model Architecture: Gemma 4 decoder-only language model (E2B, elastic parameters).
  • Source Model: google/gemma-4-E2B-it
  • Task: Text generation / chat (text-only)

Provided Artifacts

ArtifactStatusNotes
FP16 (GGUF)✅fp16/gemma-4-E2B-it-F16.gguf — language model, text-only
FP16 X5H runner✅fp16/binaries/rcar-x5hv1/xOS-v4.34/gemma4-e2b-runner-0.1.0-Linux.sh
Tokenizer / config✅fp16/tokenizer.json, tokenizer_config.json, generation_config.json, chat_template.jinja, processor_config.json
W4A16 (quantized)⏳Coming soon — 4-bit weights, 16-bit activations
Vision projector (mmproj)⏳Coming soon with image support

Performance

Measured on Renesas R-Car X5H (xOS-v4.34, NPX Toolkit), hardware-in-the-loop.

Benchmark configuration: 1× NPU · 12 cores · 1066 MHz · Batch size: 1 · Text input

ModelPrecisionDeviceThroughput (tokens/s)Type
decodeFP16X5H · 1× NPU · 12 Core · 1066 MHz11.3Measured
decodeW4A16X5H · 1× NPU · 12 Core · 1066 MHz27.2(cold), 29.5 (warmup)Measured
prefillW4A16X5H · 1× NPU · 12 Core · 1066 MHzinput-token-len:829 0.708s@1170tps(cold), 0.577s@1436tps (warmup)Measured
audio-encodeW8A8X5H · 1× NPU · 12 Core · 1066 MHz30sec clip, 81.6msMeasured

Accuracy

TBD — not yet measured/published for this repo.

Roadmap

  • ✅ Text generation / chat, FP16 (this release)
  • ✅ W4A16 quantized model
  • ⏳ Image input — coming soon
  • ✅ Audio input
  • ⏳ Video input — coming soon

Prerequisites

To run the model, you need:

  1. Renesas R-Car X5H board (xOS-v4.34) with NPX6 NPU
  2. Hugging Face CLI to download the model and installer

Deployment

FP16

  1. Download the installer gemma4-e2b-runner-0.1.0-Linux.sh from the Files and versions tab under fp16/binaries/rcar-x5hv1/xOS-v4.34/.
  2. Copy the installer to the X5H board and run it:
    bash ./gemma4-e2b-runner-0.1.0-Linux.sh --prefix=./ --exclude-subdir --skip-license
    
  3. Download GGUF gemma-4-E2B-it-F16.gguf from the fp16/ folder and copy it into the installed directory on the X5H board.
  4. Expected directory structure on the X5H board:
    gemma4-e2b-runner/
    ├── gemma-4-E2B-it-F16.gguf
    ├── firmwares
    ├── kernel_modules
    ├── gemma4-e2b-runner
    ├── scripts
    └── setup_npu.sh
    

Inference

FP16

cd gemma4-e2b-runner
bash ./setup_npu.sh
./gemma4-e2b-runner <PROMPT>

W4A16

Contents

gemma4-e2b-runner-0.3.0-Linux.sh is a self-extracting installer. It holds the runner, the NPU graphs, the NPU firmware, the kernel modules and the NPU setup scripts, already built for the board. Nothing is compiled on the board.

gemma4-e2b-runner/
├── gemma4-e2b-runner          # the runner
├── setup_npu.sh               # NPU bring-up
├── scripts/                   # npuN_power_on.sh, npuN_run.sh
├── firmwares/npu0, npu1/      # NPU firmware (14 ELFs per NPU)
├── kernel_modules/multi_cma/  # snps_accel, snps_arcsync, snps_rproc
└── graphs/gemma4-e2b/         # NPU graphs and their int4/int8 coefficients (~2.5 GB)

What you need

BoardR-Car X5H (b001, dual NPX48K), root access
Free disk space~2 GB for the package and ~2.5 GB once it is installed
Model (text)gemma-4-E2B-it-F16.gguf, the FP16 GGUF of Gemma 4 E2B-it (9.3 GB, 601 tensors)
Model (audio, optional)gemma-4-E2B-it-audio.safetensors (~615 MB): the audio encoder weights of google/gemma-4-E2B-it, see below
Audio input (optional)a 16 kHz mono wav, up to 30 s

The runner reads the text weights from the GGUF and the audio encoder weights from the safetensors file. The int4 and int8 weights the NPU uses are already in the graphs.

Download the model files

On any machine with internet access, then copy the files to the board.

Text model, the FP16 GGUF:

curl -L -o gemma-4-E2B-it-F16.gguf \
    https://huggingface.co/SthRen0125/google_gemma-4-E2B-it/resolve/main/gemma-4-E2B-it_text_model_gguf/gemma-4-E2B-it-F16.gguf
sha256sum gemma-4-E2B-it-F16.gguf
# 69de3d48261cfa07ac2e50df5c5d1ebabb7f31f4d9725f24f083a66c357a82ec (the file this release was measured with)

Audio encoder weights (only for audio input). The runner needs only the audio tower and audio embedder of the HF checkpoint, 752 tensors (model.audio_tower.*, model.embed_audio.*), about 615 MB of the 10 GB model.safetensors. extract_audio_weights.py, next to this README, reads just those tensors from the Hub with HTTP range requests, so the 10 GB file is never downloaded:

pip install huggingface_hub
python3 extract_audio_weights.py --remote
# -> gemma-4-E2B-it-audio.safetensors, 752 tensors, 614464840 bytes
sha256sum gemma-4-E2B-it-audio.safetensors
# 7c8ce98aa51975a9ecce3ef7b48c22704f4f66b41e56230d5c03bcb71b428608 (the file this release was measured with)

If model.safetensors is already downloaded, cut the file out of it instead (pip install safetensors torch):

python3 extract_audio_weights.py --src path/to/model.safetensors

The runner also accepts the full model.safetensors as --audio-weights and reads the same tensors from it.

If Hugging Face asks for it, accept the Gemma license on the model page and log in (hf auth login, or pass -H "Authorization: Bearer <token>" to curl).

Audio input

Any recording can be converted to a 16 kHz mono wav with ffmpeg:

ffmpeg -i input.mp3 -ac 1 -ar 16000 -t 30 clip.wav

Install

bash ./gemma4-e2b-runner-0.3.0-Linux.sh --prefix=./ --exclude-subdir --skip-license
cd gemma4-e2b-runner

Run

Bring up the NPU once after each boot (NPU0, the default):

./setup_npu.sh

Text prompt:

./gemma4-e2b-runner "What is AI?" path/to/gemma-4-E2B-it-F16.gguf -n 128

Audio prompt (speech transcription):

./gemma4-e2b-runner \
    $'Transcribe the following speech segment in English into English text.\n\nFollow these specific instructions for formatting the answer:\n* Only output the transcription, with no newlines.\n* When transcribing numbers, write the digits, i.e. write 1.7 and not one point seven, and write 3 instead of three.' \
    path/to/gemma-4-E2B-it-F16.gguf -n 128 \
    --audio clip.wav --audio-weights path/to/gemma-4-E2B-it-audio.safetensors

Add --print-stats to print the timing: prefill and generation rates, time per NPU graph, and the audio encoder steps.

Options

Usage: ./gemma4-e2b-runner <prompt> [model_path] [max_tokens]
  -n, --max-tokens N    maximum generated tokens (default: fill the context)
  --print-stats         print performance metrics
  --npu-idx N           NPU cluster, 0 or 1 (default: 0); run setup_npu.sh
                        with the same --npu-idx
  --audio FILE          16 kHz mono wav
  --audio-weights FILE  gemma-4-E2B-it-audio.safetensors, or the HF model.safetensors
  --lm-head-fp16        fp16 lm_head, instead of the int4 one
  --no-rescore          int4 lm_head argmax as it is, without the fp16
                        rescoring of its top 8
  --no-batched-prefill  process the prompt one token at a time
  --no-padded-prefill   prompt tail token by token instead of one
                        padded chunk

The defaults are the configuration measured in BENCHMARK.md. The int4 LM head rescores its top 8 candidates with the fp16 weights, so the chosen token is the same as with the fp16 LM head.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

llama.cpp

Можно запустить

Подбираем GPU…

Ревизия весов
5232e7f

0 моделей