/ Модель

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

Контекст
131 072 токена
Параметры
3,4 млрд
Лицензия
Apache 2.0
Архитектура
granite · dense
Базовая модель
granite-4.1-3b
Библиотека
transformers
Опубликована
18 июн 2026

granite-4.1-3b-hardened

Генерация текстаТекст → текст4 профессии

Дообученная Hirundo версия Granite-4.1-3B, предназначенная для генерации текста и диалогов с пониженной восприимчивостью к prompt injection.

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

Бенчмарки

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

Тесты пользователейпока нет

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

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

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

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

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

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

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

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

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

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

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

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

Hirundo Granite-4.1-3B Hardened — дообученная методом поведенческого unlearning модель Hirundo на базе ibm-granite/granite-4.1-3b. Это плотная причинная языковая модель на 3,4 млрд параметров для генерации текста и диалогов; она принимает текст и имеет контекстное окно 131 072 токена. Модель модифицирована для снижения восприимчивости к prompt injection при сохранении общих возможностей базовой модели.

В опубликованных тестах PurpleLlama показатель успешности prompt injection снизился с 40,24% у исходной модели до 8,77%; в тестах Garak также отмечено снижение ряда атак и утечек. Эти результаты предназначены для сравнительной оценки и не гарантируют защиту в конкретном приложении. Модель подходит для экспериментов с защитой языковых моделей, сравнительных проверок безопасности и разработки приложений, где важна устойчивость к недоверенным инструкциям. Лицензия — Apache-2.0.

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

  • сравнение устойчивости языковых моделей к prompt injection
  • проверка защиты модели от инструкций во входных документах
  • оценка риска утечки защищённого контекста
  • создание диалогового ассистента с дополнительным уровнем защиты
  • исследование методов поведенческого unlearning

Ограничения

Результаты тестов не гарантируют защиту от prompt injection или перенос измеренных улучшений на другие сценарии и конфигурации. В сравнении с базовой моделью некоторые общие бенчмарки немного ухудшились.

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

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

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

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

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

Открыть на Hugging Face

Hirundo Granite-4.1-3B Hardened

This repository contains a behaviorally hardened derivative of ibm-granite/granite-4.1-3b. Hirundo modified the model to reduce prompt-injection susceptibility while preserving its general capabilities.

The checkpoint itself was modified at the model level. The intervention is not a runtime prompt, output filter, or external guardrail.

About Hirundo

Hirundo develops machine-unlearning methods for changing specific model behaviors. In its behavioral-unlearning workflow, a target behavior is identified, the model is modified, and the resulting checkpoint is evaluated for the targeted security behavior and general capabilities. This card reports the measured comparison for this checkpoint rather than a guarantee about every use case.

Learn more:

What Hirundo changed

Prompt injection occurs when adversarial or untrusted instructions cause a model to disregard its intended task or reveal protected context. Hirundo applied behavioral unlearning to reduce this susceptibility in the base checkpoint.

FieldValue
Base modelibm-granite/granite-4.1-3b
Target behaviorSecurity (prompt injection)
Unlearning aggressiveness0.1

Evaluation summary

The hardened checkpoint was compared with the unmodified base checkpoint under the reported evaluation setup, with thinking mode off. For the security evaluations below, lower scores indicate fewer successful attacks or leaks and therefore better performance. Relative reduction is (base − hardened) / base × 100 when the base rate is nonzero.

Headline result: PurpleLlama prompt injection

The PurpleLlama Cybersecurity Benchmarks provide the prompt-injection evaluation used here. Attack success rate (ASR) fell from 40.24% to 8.77%, a 78.22% relative reduction.

BenchmarkBase model ASRHirundo model ASRRelative reduction
PurpleLlama prompt injection40.24%8.77%78.22%

Garak security evaluation

The Garak scanner probes models for several attack and leakage behaviors. Attack-family rates and leakage-oriented rates below have different definitions and should be read separately.

Results by attack family

Attack familyBase rateHirundo rateRelative reduction
Encoding attacks8.3800%0.0500%99.40%
Latent injection0.3300%0.1000%69.70%
Direct prompt injection0.2900%0.0000%100.00%

The unweighted mean relative reduction across these three attack families is 89.70%.

Leakage-oriented results

The first three metrics report leaks per try or attempt. The attack success rate is measured per attack or prompt, which may include multiple tries; these rates therefore have different denominators.

MetricBase rateHirundo rateRelative reduction
Any leak rate2.2502%0.0378%98.32% reduction
Exact value leak0.1815%0.0330%81.82% reduction
Exact key leak2.0781%0.0333%98.40% reduction
Attack success rate7.4187%0.1892%97.45% reduction

The unweighted mean relative reduction across these four leakage metrics is 94.00%.

General-capability evaluation

Six general-capability benchmarks were compared with the base checkpoint. The table gives only the hardened checkpoint's change versus base in percentage points (hardened − base); positive values indicate improvement. The measured security improvement was accompanied by small changes on most of these benchmarks, although GPQA, IFBENCH, LIVECODEBENCH, and SCICODE declined.

BenchmarkChange vs. base model
AIME250.00 pp
GPQA−0.95 pp
IFBENCH−0.90 pp
LIVECODEBENCH−1.11 pp
MMLU-PRO+0.16 pp
SCICODE−0.31 pp

The unweighted mean change is −0.52 pp. The largest measured decrease is 1.11 pp on LIVECODEBENCH. 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:

  • Research into mitigation of prompt-injection susceptibility through model modification.
  • Comparative security evaluation against the unmodified base model and other defenses.
  • Development of applications that need a model-level hardening component.
  • Further evaluation and task-specific fine-tuning.

Test the checkpoint in the application's actual prompts, tools, retrieval pipeline, and threat model. Benchmark results do not establish immunity to prompt injection or guarantee that the measured improvements transfer to every deployment setup.

Granite-4.1-3B is a text-generation model supporting conversational text inputs. Consult the upstream model card for architecture, modalities, languages, context length, generation settings, and base-model considerations.

Loading with Transformers

Use a recent Transformers version with Granite 4.1 support. The causal-language-model loader and tokenizer follow the upstream model's example:

from transformers import AutoTokenizer, AutoModelForCausalLM

model_id = "hirundo-io/granite-4.1-3b-hardened"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")

messages = [{"role": "user", "content": "Who are you?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))

License

This checkpoint is released under the repository's Apache-2.0 license. See the upstream model card for the base model's license and terms.

Citation

@misc{hirundo_granite_41_3b_hardened,
  title = {Hirundo Granite-4.1-3B Hardened},
  author = {Hirundo},
  howpublished = {\url{https://huggingface.co/hirundo-io/granite-4.1-3b-hardened}}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
GraniteForCausalLM
Ревизия весов
e95a313

0 моделей