Model reference · open weights
granite-4.0-h-tiny is an open-weight language model from IBM. granite-4.0-h-tiny (BF16) weighs 13.9 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.
Summary of the ibm-granite/granite-4.0-h-tiny model card, 2026-10-01
What it is
| Released by | IBM |
|---|---|
| Released | 2025-09-16 |
| Parameters | 6.9B |
| VRAM | 13.9 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | — | — | — | 11.6 GB |
| RTX 4060 Ti 16 GB | 7 | 2 | 108K | 15.4 GB |
| RTX 3090 24 GB | 71 | 27 | all 128K | 23.4 GB |
| RTX 4090 24 GB | 71 | 27 | all 128K | 23.4 GB |
| RTX 5090 32 GB | 132 | 50 | all 128K | 31.0 GB |
| L40S 48 GB | 235 | 90 | all 128K | 44.0 GB |
| A100 80 GB | 509 | 195 | all 128K | 78.2 GB |
| H100 80 GB | 482 | 184 | all 128K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 607 | 232 | all 128K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 715 | 274 | all 128K | 107 GB |
| H200 141 GB | 960 | 368 | all 128K | 138 GB |
| B200 180 GB | 1000+ | 484 | all 128K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 65 | 25 | all 128K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 126 | 48 | all 128K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 14.6 GB | 14.8 GB |
| 5 | 15.1 GB | 16.1 GB |
| 8 | 15.4 GB | 17.1 GB |
| 16 | 16.4 GB | 19.7 GB |
| 32 | 18.4 GB | 24.9 GB |
| 64 | 22.5 GB | 35.3 GB |
One card, with vLLM's small-card settings.
From the model card
📣 Update [10-07-2025]: Added a default system prompt to the chat template to guide the model towards more professional, accurate, and safe responses.
Model Summary: Granite-4.0-H-Tiny is a 7B parameter long-context instruct model finetuned from Granite-4.0-H-Tiny-Base using a combination of open source instruction datasets with permissive license and internally collected synthetic datasets. This model is developed using a diverse set of techniques with a structured chat format, including supervised finetuning, model alignment using reinforcement learning, and model merging. Granite 4.0 instruct models feature improved instruction following (IF) and tool-calling capabilities, making them more effective in enterprise applications.
Supported Languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 4.0 models for languages beyond these languages.
Intended use: The model is designed to respond to general instructions and can be used to build AI assistants for multiple domains, including business applications.
Capabilities
Generation: This is a simple example of how to use Granite-4.0-H-Tiny 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.0-h-tiny"
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:
Tool-calling: Granite-4.0-H-Tiny 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.0-H-Tiny model tool-calling ability:
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:
You are provided with function signatures within XML tags:
{"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"]}}}
For each tool call, return a json object with function name and arguments within XML tags:
{"name": , "arguments": }
{"name": "get_current_weather", "arguments": {"city": "Boston"}}
Evaluation Results:
General Tasks
Alignment Tasks
Math Tasks
Code Tasks
Tool Calling Tasks
Multilingual Tasks
Safety
Model Architecture: Granite-4.0-H-Tiny baseline is built on a decoder-only MoE transformer architecture. Core components of this architecture are: GQA, Mamba2, MoEs with shared experts, SwiGLU activation, 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.
Infrastructure: We traine
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.