/ Модель

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

Лицензия
Apache 2.0
Базовая модель
gemma-4-E4B-it
Библиотека
transformers
Опубликована
16 апр 2026

gemma-4-E4B-it-hardened

Мультимодальная модель

Мультимодальная модель Hirundo на базе Gemma 4 E4B Instruct, дообученная для снижения восприимчивости к prompt injection и сравнительных оценок безопасности.

0скачиваний за 30 дней6лайковвеса обновлены30 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

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

Hirundo Gemma 4 E4B IT Hardened — дообученная компанией Hirundo мультимодальная модель на базе google/gemma-4-E4B-it. С помощью поведенческого unlearning её настроили реже поддаваться prompt injection — вредоносным инструкциям во входных данных, которые пытаются подменить задачу или вызвать раскрытие защищённого контекста.

Модель предназначена для исследований защиты от prompt injection, сравнительной оценки безопасности и разработки приложений на её основе. В оценке PurpleLlama доля успешных атак снизилась с 18,73% у базовой модели до 4,78%; на шести тестах общих возможностей среднее изменение составило −0,15 процентного пункта. Эти результаты относятся к описанным тестам и не доказывают устойчивость к атакам в других сценариях. Базовая модель принимает текст, изображения, аудио и видео и генерирует текст, однако приведённые оценки не проверяют все модальности.

Модель распространяется в формате safetensors через Transformers по лицензии Apache-2.0. README рекомендует отдельно проверять её в реальных промптах, с инструментами и поисковыми системами приложения, прежде чем применять в конкретной среде.

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

  • сравнение устойчивости модели к prompt injection с базовой Gemma 4 E4B
  • оценка успешности атак prompt injection на контрольных наборах
  • исследование поведенческого unlearning для снижения уязвимости к вредоносным инструкциям
  • прототипирование приложений с моделью, устойчивость которой к prompt injection требует дополнительной проверки

Ограничения

Снижение успешности атак показано на конкретной оценке и не гарантирует защиты от prompt injection в других условиях. Приведённые тесты не оценивают безопасность и общие возможности модели при вводе изображений, аудио или видео.

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

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

Открыть на Hugging Face

Hirundo Gemma 4 E4B IT Hardened

This repository contains a behaviorally hardened derivative of google/gemma-4-E4B-it. Hirundo modified the model to reduce prompt-injection susceptibility while preserving its general capabilities.

The checkpoint itself changed; this is not a runtime prompt, output filter, or external guardrail.

About Hirundo

Hirundo develops machine-unlearning technology to remove unwanted data and reduce unwanted behaviors in trained AI models. Its behavioral-unlearning workflow identifies a target behavior, modifies the checkpoint, and evaluates the result on both behavior-specific and general-capability benchmarks.

Learn more:

What Hirundo changed

The target behavior was prompt injection: adversarial or untrusted instructions that cause a model to disregard its intended task or reveal protected context. Hirundo applied behavioral unlearning to the Gemma 4 E4B instruction-tuned checkpoint with this run configuration:

FieldValue
Base modelgoogle/gemma-4-E4B-it
Target behaviorSecurity (prompt injection)
Unlearning aggressiveness0.1

Evaluation summary

Hirundo compared the hardened checkpoint with the unmodified base checkpoint with thinking mode off. The reported prompt-injection and general-capability evaluations do not establish security or utility performance for image, audio, or video inputs. For the security evaluations below, lower scores indicate fewer successful attacks or leaks and therefore better performance. Relative reduction is (base − hardened) / base × 100.

Headline result: PurpleLlama prompt injection

PurpleLlama's Cybersecurity Benchmarks measure prompt-injection attack success. The measured attack success rate (ASR) fell from 18.73% to 4.78% in this evaluation.

BenchmarkBase model ASRHirundo model ASRRelative reduction
PurpleLlama prompt injection18.73%4.78%74.47%

General-capability evaluation

Six general-capability benchmarks were measured with thinking mode off. The table shows only the change from the base checkpoint, calculated as hardened minus base in percentage points. Positive values indicate improvement. In this evaluation, prompt-injection susceptibility decreased while general capabilities were broadly preserved.

BenchmarkChange vs. base model
AIME25−0.83 pp
GPQA+0.76 pp
IFBench−0.26 pp
LiveCodeBench−0.20 pp
MMLU-Pro−0.36 pp
SciCode0.00 pp

The unweighted mean change is −0.15 pp. The largest measured decrease is 0.83 pp on AIME25. The mean is descriptive rather than a standardized aggregate score: the benchmarks measure different capabilities and may use different scoring procedures.

Intended use

This checkpoint is intended for:

  • mitigation research on prompt injection;
  • comparative security evaluation against the base model;
  • development of applications that need a hardened checkpoint; and
  • further evaluation or fine-tuning for a specific deployment.

Test the checkpoint in the application's actual prompt, tools, retrieval pipeline, and threat model before deployment. These benchmark results do not establish immunity to prompt injection or guarantee the same performance in a different setting. The upstream Gemma 4 E4B model accepts text, image, audio, and video input and generates text; the evaluations above do not assess every modality. For architecture, supported languages, context length, generation parameters, and base-model considerations, see the upstream Google model card.

Loading with Transformers

The upstream multimodal model uses AutoProcessor and AutoModelForMultimodalLM. The example below uses a text prompt; follow the upstream usage examples for image, audio, and video inputs. Use a compatible Transformers release and suitable hardware.

from transformers import AutoProcessor, AutoModelForMultimodalLM

model_id = "hirundo-io/gemma-4-E4B-it-hardened"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
    model_id, dtype="auto", device_map="auto"
)

messages = [{"role": "user", "content": "Hello!"}]
inputs = processor.apply_chat_template(
    messages,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
    add_generation_prompt=True,
    enable_thinking=False,
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
response = processor.decode(
    outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=False
)
print(processor.parse_response(response, prefix=inputs["input_ids"]))

License

This derivative is released under the repository's applicable license. The upstream Gemma 4 model is listed under Apache 2.0; review its license and usage terms before deployment.

Citation

@misc{hirundo_gemma_4_e4b_it_hardened,
  title = {Hirundo Gemma 4 E4B IT Hardened},
  author = {Hirundo},
  howpublished = {\url{https://huggingface.co/hirundo-io/gemma-4-E4B-it-hardened}}
}

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

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

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
29011af

0 моделей