/ Модель

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

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

IBM-granite-4.1-8b-heretic

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

Abliterated-версия Granite-4.1-8B для диалога и генерации текста с заметно сниженной склонностью отказывать в ответах.

100скачиваний за 30 дней9лайковвеса обновлены4 мая 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

heretic-org/IBM-granite-4.1-8b-heretic — производная модель на базе IBM Granite-4.1-8B, созданная методом abliteration, который резко снижает склонность модели отказывать в ответах. В сравнении с исходной моделью в карточке указаны 5 отказов из 416 запросов против 409 из 416; также приведено значение KL divergence 0,0285. Это плотный decoder-only трансформер Granite с 8,4 млрд параметров и контекстом до 131 072 токенов, доступный в формате safetensors для Transformers.

Модель предназначена для диалога и генерации текста: она может следовать инструкциям, отвечать на вопросы, суммировать и извлекать информацию, классифицировать текст, помогать с кодом и использовать вызов инструментов, унаследованные от Granite-4.1-8B. Заявлена поддержка английского, немецкого, испанского, французского, японского, португальского, арабского, чешского, итальянского, корейского, нидерландского и китайского языков; качество на других языках может отличаться от английского.

Модель опубликована heretic-org под лицензией Apache 2.0. Снижение числа отказов не гарантирует точности или безопасности ответов: модель может выдавать ошибочную, предвзятую или небезопасную информацию, поэтому её следует проверять и настраивать для целевого применения.

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

  • ответы на вопросы и диалог с ассистентом
  • суммаризация длинных текстов
  • извлечение и классификация текстовой информации
  • генерация и дополнение кода
  • многоязычные диалоги
  • создание агентов с вызовом инструментов

Ограничения

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

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

This is a decensored version of ibm-granite/granite-4.1-8b, made using Heretic v1.2.0 with the Self-Organizing Maps (SOM) method (with row-norm preservation and orthogonalize direction)

Abliteration parameters

ParameterValue
direction_index27.37
attn.o_proj.max_weights.00: 1.23
attn.o_proj.max_weights.11: 0.78
attn.o_proj.max_weights.22: 0.58
attn.o_proj.max_weights.33: 1.23
attn.o_proj.max_weights.44: 1.49
attn.o_proj.max_weight_position25.25
attn.o_proj.min_weights.00: 0.68
attn.o_proj.min_weights.11: 0.77
attn.o_proj.min_weights.22: 0.18
attn.o_proj.min_weights.33: 0.45
attn.o_proj.min_weights.44: 1.01
attn.o_proj.min_weight_distance3.64
mlp.down_proj.max_weights.00: 1.33
mlp.down_proj.max_weights.11: 1.15
mlp.down_proj.max_weights.22: 0.62
mlp.down_proj.max_weights.33: 1.28
mlp.down_proj.max_weights.44: 0.57
mlp.down_proj.max_weight_position33.88
mlp.down_proj.min_weights.00: 0.00
mlp.down_proj.min_weights.11: 0.65
mlp.down_proj.min_weights.22: 0.15
mlp.down_proj.min_weights.33: 0.52
mlp.down_proj.min_weights.44: 0.32
mlp.down_proj.min_weight_distance2.95

Performance

MetricThis modelOriginal model (ibm-granite/granite-4.1-8b)
KL divergence0.02850 (by definition)
Refusals5/416409/416

Appendix

   [Trial 141] Refusals:  0/416, KL divergence: 0.1352
   [Trial  74] Refusals:  1/416, KL divergence: 0.0946
   [Trial 346] Refusals:  2/416, KL divergence: 0.0695
   [Trial 393] Refusals:  3/416, KL divergence: 0.0546
 » [Trial 376] Refusals:  5/416, KL divergence: 0.0285
   [Trial 274] Refusals: 10/416, KL divergence: 0.0272
   [Trial 245] Refusals: 29/416, KL divergence: 0.0240
   [Trial 351] Refusals: 36/416, KL divergence: 0.0235
   [Trial 229] Refusals: 43/416, KL divergence: 0.0213
   [Trial 290] Refusals: 90/416, KL divergence: 0.0196
   [Trial 303] Refusals: 91/416, KL divergence: 0.0192
   [Trial 302] Refusals: 131/416, KL divergence: 0.0186
   [Trial 210] Refusals: 184/416, KL divergence: 0.0156
   [Trial 171] Refusals: 270/416, KL divergence: 0.0137
   [Trial 252] Refusals: 288/416, KL divergence: 0.0129
   [Trial 114] Refusals: 299/416, KL divergence: 0.0117
   [Trial 240] Refusals: 333/416, KL divergence: 0.0097
   [Trial 246] Refusals: 377/416, KL divergence: 0.0053
   [Trial 380] Refusals: 393/416, KL divergence: 0.0047
   [Trial 249] Refusals: 395/416, KL divergence: 0.0046
   [Trial 304] Refusals: 398/416, KL divergence: 0.0042
   [Trial 276] Refusals: 400/416, KL divergence: 0.0038
   [Trial 144] Refusals: 403/416, KL divergence: 0.0036
   [Trial 230] Refusals: 407/416, KL divergence: 0.0022
   [Trial   6] Refusals: 410/416, KL divergence: 0.0010
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric               ┃    T376    ┃      Base      ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA      │ acc,none             │     0.7856 │         0.7873 │
│           │ acc_stderr,none      │     0.0096 │         0.0095 │
│           │ acc_norm,none        │     0.7867 │         0.7851 │
│           │ acc_norm_stderr,none │     0.0096 │         0.0096 │
└───────────┴──────────────────────┴────────────┴────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric               ┃    T393    ┃      Base      ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA      │ acc,none             │     0.7884 │         0.7873 │
│           │ acc_stderr,none      │     0.0095 │         0.0095 │
│           │ acc_norm,none        │     0.7840 │         0.7851 │
│           │ acc_norm_stderr,none │     0.0096 │         0.0096 │
└───────────┴──────────────────────┴────────────┴────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric               ┃    T141    ┃      Base      ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA      │ acc,none             │     0.7878 │         0.7873 │
│           │ acc_stderr,none      │     0.0095 │         0.0095 │
│           │ acc_norm,none        │     0.7862 │         0.7851 │
│           │ acc_norm_stderr,none │     0.0096 │         0.0096 │
└───────────┴──────────────────────┴────────────┴────────────────┘
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━┓
┃ Benchmark ┃ Metric               ┃    T245    ┃      Base      ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━┩
│ PIQA      │ acc,none             │     0.7862 │         0.7873 │
│           │ acc_stderr,none      │     0.0096 │         0.0095 │
│           │ acc_norm,none        │     0.7845 │         0.7851 │
│           │ acc_norm_stderr,none │     0.0096 │         0.0096 │
└───────────┴──────────────────────┴────────────┴────────────────┘

mof-class3-qualified

Granite-4.1-8B

Model Summary: Granite-4.1-8B is a 8B parameter long-context instruct model finetuned from Granite-4.1-8B-Base using a combination of open source instruction datasets with permissive license and internally collected synthetic datasets. Granite 4.1 models have gone through an improved post-training pipeline, including supervised finetuning and reinforcement learning alignment, resulting in enhanced tool calling, instruction following, and chat capabilities.

Supported Languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 4.1 models for languages beyond these languages.

Intended use: The model is designed to follow general instructions and can serve as the foundation for AI assistants across diverse domains, including business applications, as well as for LLM agents equipped with tool-use capabilities.

Capabilities

  • Summarization
  • Text classification
  • Text extraction
  • Question-answering
  • Retrieval Augmented Generation (RAG)
  • Code related tasks
  • Function-calling tasks
  • Multilingual dialog use cases
  • Fill-In-the-Middle (FIM) code completions

Generation: This is a simple example of how to use Granite-4.1-8B model.

Install the following libraries:

pip install torch torchvision torchaudio
pip install accelerate
pip install transformers

Then, copy the snippet from the section that is relevant for your use case.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"
model_path = "ibm-granite/granite-4.1-8b"
tokenizer = AutoTokenizer.from_pretrained(model_path)
# drop device_map if running on CPU
model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
model.eval()
# change input text as desired
chat = [
    { "role": "user", "content": "Please list one IBM Research laboratory located in the United States. You should only output its name and location." },
]
chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
# tokenize the text
input_tokens = tokenizer(chat, return_tensors="pt").to(device)
# generate output tokens
output = model.generate(**input_tokens, 
                        max_new_tokens=100)
# decode output tokens into text
output = tokenizer.batch_decode(output)
# print output
print(output[0])

Expected output:

<|start_of_role|>user<|end_of_role|>Please list one IBM Research laboratory located in the United States. You should only output its name and location.<|end_of_text|>
<|start_of_role|>assistant<|end_of_role|>IBM Almaden Research Laboratory, San Jose, California, United States.<|end_of_text|>

Tool-calling: Granite-4.1-8B comes with enhanced tool calling capabilities, enabling seamless integration with external functions and APIs. To define a list of tools please follow OpenAI's function definition schema.

This is an example of how to use Granite-4.1-8B model tool-calling ability:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"
model_path = "ibm-granite/granite-4.1-8b"
tokenizer = AutoTokenizer.from_pretrained(model_path)
# drop device_map if running on CPU
model = AutoModelForCausalLM.from_pretrained(model_path, device_map=device)
model.eval()

tools = [
    {
        "type": "function",
        "function": {
            "name": "get_current_weather",
            "description": "Get the current weather for a specified city.",
            "parameters": {
                "type": "object",
                "properties": {
                    "city": {
                        "type": "string",
                        "description": "Name of the city"
                    }
                },
                "required": ["city"]
            }
        }
    }
]

# change input text as desired
chat = [
    { "role": "user", "content": "What's the weather like in Boston right now?" },
]
chat = tokenizer.apply_chat_template(chat, \
                                     tokenize=False, \
                                     tools=tools, \
                                     add_generation_prompt=True)
# tokenize the text
input_tokens = tokenizer(chat, return_tensors="pt").to(device)
# generate output tokens
output = model.generate(**input_tokens, 
                        max_new_tokens=100)
# decode output tokens into text
output = tokenizer.batch_decode(output)
# print output
print(output[0])

Expected output:

<|start_of_role|>system<|end_of_role|>You are a helpful assistant with access to the following tools. You may call one or more tools to assist with the user query.
You are provided with function signatures within <tools></tools> XML tags:
<tools>
{"type": "function", "function": {"name": "get_current_weather", "description": "Get the current weather for a specified city.", "parameters": {"type": "object", "properties": {"city": {"type": "string", "description": "Name of the city"}}, "required": ["city"]}}}
</tools>
For each tool call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:
<tool_call>
{"name": <function-name>, "arguments": <args-json-object>}
</tool_call>. If a tool does not exist in the provided list of tools, notify the user that you do not have the ability to fulfill the request.<|end_of_text|>
<|start_of_role|>user<|end_of_role|>What's the weather like in Boston right now?<|end_of_text|>
<|start_of_role|>assistant<|end_of_role|><tool_call>
{"name": "get_current_weather", "arguments": {"city": "Boston"}}
</tool_call><|end_of_text|>

Evaluation Results:

Model Architecture:

Granite-4.1-8B baseline is built on a decoder-only dense transformer architecture. Core components of this architecture are: GQA, RoPE, MLP with SwiGLU, RMSNorm, and shared input/output embeddings.

Training Data: Overall, our SFT data is largely comprised of three key sources: (1) publicly available datasets with permissive license, (2) internal synthetic data targeting specific capabilities, and (3) a select set of human-curated data.

Supervised Fine-Tuning and Reinforcement Learning: Instruct model has been fine tuned with significantly improved SFT-pipeline and Reinforcement learning pipelines with high quality mix of various datasets as mentioned above. With rigorous SFT-RL cycles we have improved Granite-4.1 model's tool calling, instruction following and chat capabilities. For further details please check our Granite-4.1 Blog.

Infrastructure: We trained the Granite 4.1 Language Models utilizing an NVIDIA GB200 NVL72 cluster hosted in CoreWeave. Intra-rack communication occurs via the 72-GPU NVLink domain, and a non-blocking, full Fat-Tree NDR 400 Gb/s InfiniBand network provides inter-rack communication. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs.

Ethical Considerations and Limitations: Granite 4.1 Instruction Models are primarily finetuned using instruction-response pairs mostly in English, but also multilingual data covering multiple languages. Although this model can handle multilingual dialog use cases, its performance might not be similar to English tasks. In such cases, introducing a small number of examples (few-shot) can help the model in generating more accurate outputs. While this model has been aligned by keeping safety in consideration, the model may in some cases produce inaccurate, biased, or unsafe responses to user prompts. We urge the community to use this model with proper safety testing and tuning tailored for their specific tasks. To enhance safety in enterprise deployments, we recommend using Granite 4.1 Language models alongside Granite Guardian, a model designed to detect and flag risks in inputs and outputs across key dimensions outlined in the IBM AI Risk Atlas.

Resources

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей