alt.freeweights.granite / granite-4.0-h-small
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-4.0-h-small

Date: 2026-11-14Commit: b8c0982Signed: 2DC28CC7B26A283B ✓

Text generation model with 32.2B parameters. Safetensors weights, 64.4 GB in all. Published by ibm-granite under Apache-2.0.

32.2B params64.4GBgranite-4.0-h-smallsafetensorspermissive
FactsParams32.2BSize64.4 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-4.0-h-small
# manifest sha256 a5c482297226… · 64.4 GB · 26 files
$ fw verify ./granite-4.0-h-small ibm-granite/granite-4.0-h-small
From sourceHosted (signed)ibm-granite/granite-4.0-h-smallLast check: 2026-11-14 21:16 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Works with

Overview

Size
64.4 GB
Weights
64.4 GB (safetensors)
Parameters
32.2B
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
26, each with a sha256
Publisher
ibm-granite
Added
2026-11-14
Section
alt.freeweights.granite
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:16 UTCpassed

Model card

From the publisher at commit b8c0982. Shown as plain text with links; images open at the publisher.

mof-class3-qualified

Granite-4.0-H-Small#

📣 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-Small is a 32B parameter long-context instruct model finetuned from Granite-4.0-H-Small-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

  • 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.0-H-Small 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-small"
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|>system<|end_of_role|>You are a helpful assistant. Please ensure responses are professional, accurate, and safe.<|end_of_text|>
<|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|>Almaden Research Center, San Jose, California<|end_of_text|>

Tool-calling: Granite-4.0-H-Small 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-Small 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:

<|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:

| Benchmarks | Metric | Micro Dense | H Micro Dense | H Tiny MoE | H Small MoE

| General Tasks

| MMLU | 5-shot | 65.98 | 67.43 | 68.65 | 78.44

| MMLU-Pro | 5-shot, CoT | 44.5 | 43.48 | 44.94 | 55.47

| BBH | 3-shot, CoT | 72.48 | 69.36 | 66.34 | 81.62

| AGI EVAL | 0-shot, CoT | 64.29 | 59 | 62.15 | 70.63

| GPQA | 0-shot, CoT | 30.14 | 32.15 | 32.59 | 40.63

| Alignment Tasks

| AlpacaEval 2.0 | | 29.49 | 31.49 | 30.61 | 42.48

| IFEval | Instruct, Strict | 85.5 | 86.94 | 84.78 | 89.87

| IFEval | Prompt, Strict | 79.12 | 81.71 | 78.1 | 85.22

| IFEval | Average | 82.31 | 84.32 | 81.44 | 87.55

| ArenaHard | | 25.84 | 36.15 | 35.75 | 46.48

| Math Tasks

| GSM8K | 8-shot | 85.45 | 81.35 | 84.69 | 87.27

| GSM8K Symbolic | 8-shot | 79.82 | 77.5 | 81.1 | 87.38

| Minerva Math | 0-shot, CoT | 62.06 | 66.44 | 69.64 | 74

| DeepMind Math | 0-shot, CoT | 44.56 | 43.83 | 49.92 | 59.33

| Code Tasks

| HumanEval | pass@1 | 80 | 81 | 83 | 88

| HumanEval+ | pass@1 | 72 | 75 | 76 | 83

| MBPP | pass@1 | 72 | 73 | 80 | 84

| MBPP+ | pass@1 | 64 | 64 | 69 | 71

| CRUXEval-O | pass@1 | 41.5 | 41.25 | 39.63 | 50.25

| BigCodeBench | pass@1 | 39.21 | 37.9 | 41.06 | 46.23

| Tool Calling Tasks

| BFCL v3 | | 59.98 | 57.56 | 57.65 | 64.69

| Multilingual Tasks

| MULTIPLE | pass@1 | 49.21 | 49.46 | 55.83 | 57.37

| MMMLU | 5-shot | 55.14 | 55.19 | 61.87 | 69.69

| INCLUDE | 5-shot | 51.62 | 50.51 | 53.12 | 63.97

| MGSM | 8-shot | 28.56 | 44.48 | 45.36 | 38.72

| Safety

| SALAD-Bench | | 97.06 | 96.28 | 97.77 | 97.3

| AttaQ | | 86.05 | 84.44 | 86.61 | 86.64

Multilingual Benchmarks and thr included languages:

| Benchmarks | # Langs | Languages

| MMMLU | 11 | ar, de, en, es, fr, ja, ko, pt, zh, bn, hi

| INCLUDE | 14

| hi, bn, ta, te, ar, de, es, fr, it, ja, ko, nl, pt, zh

| MGSM | 5 | en, es, fr, ja, zh

Model Architecture: Granite-4.0-H-Small 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.

| Model | Micro Dense | H Micro Dense | H Tiny MoE | H Small MoE

| Embedding size | 2560 | 2048 | 1536 | 4096

| Number of layers | 40 attention | 4 attention / 36 Mamba2 | 4 attention / 36 Mamba2 | 4 attention / 36 Mamba2

| Attention head size | 64 | 64 | 128 | 128

| Number of attention heads | 40 | 32 | 12 | 32

| Number of KV heads | 8 | 8 | 4 | 8

| Mamba2 state size | - | 128 | 128 | 128

| Number of Mamba2 heads | - | 64 | 48 | 128

| MLP / Shared expert hidden size | 8192 | 8192 | 1024 | 1536

| Num. Experts | - | - | 64 | 72

| Num. active Experts | - | - | 6 | 10

| Expert hidden size | - | - | 512 | 768

| MLP activation | SwiGLU | SwiGLU | SwiGLU | SwiGLU

| Sequence length | 128K | 128K | 128K | 128K

| Position embedding | RoPE | NoPE | NoPE | NoPE

| # Parameters | 3B | 3B | 7B | 32B

| # Active parameters | 3B | 3B | 1B | 9B

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 trained the Granite 4.0 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.0 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 case, 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. So we urge the community to use this model with proper safety testing and tuning tailored for their specific tasks.

Resources

Files

26 files · 64.4 GBWeights 64.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 26 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md34.5 KBd8afa48cec7096978d19fdf19fd9012b9505f428c5d64c231fde63241be176ea
chat_template.jinja6.42 KB9524df67b77a7b25a2dfee898f75b316a157eb9d855b51e32aeac79d7c8a83ce
config.json1.80 KB8616e9f0b30e6fac9696f7c1e1dbd08f1a850ac4af0de6353f7d6009043702ae
generation_config.json147 B7c04cb9d2ba771f7528fba5a7104999cdaf7566d02b5fbd58472829f62716177
merges.txt917 KBb6fe424e334903f7fb84d3a106d9730455f4744b9fe3c21ee136d97a00e72502
model-00001-of-00014.safetensors4.93 GBf45359dac7e0fbffde4f4261d9959f86113e2347ef90e75e9b47f628c969ed38
model-00002-of-00014.safetensors4.81 GB10586e2ebd97b828d2ddbba49f9bc066d10cddf71a352f177e09491b5c891f5d
model-00003-of-00014.safetensors4.68 GB5b13bb3c47222bbbedda637125eae5300fd102bf4a9536313e6e736b2e37de02
model-00004-of-00014.safetensors4.81 GB9febd93455f138d2b08088131901a7b772e4a5c7b2a4c6cb73c524ed7b2a638c
model-00005-of-00014.safetensors4.81 GBc0b86c90323a9e80b229e99e727995d27e8d3d717cd20c0b1fbe7f09f036679e
model-00006-of-00014.safetensors4.68 GB07e746cdc60458973fbca6e2bbe14cf86990b04082b8020eb5fde24757566113
model-00007-of-00014.safetensors4.81 GBe99acbbdcba299f93b0b0b42ba9519626f086bed34593dbcc36b513195bf48d7
model-00008-of-00014.safetensors4.81 GBb9bde838b687e90aeb80d62cd35080cfbd8cb7c366e15601a4e058a348f1baac
model-00009-of-00014.safetensors4.68 GB06afd739e8c459b22d09dde380949ac29bb3efa008e932bd49496fc0863a120f
model-00010-of-00014.safetensors4.81 GBdf18281f1f1e1ee2f0a2406ee5f18dba3c82127572b0ec61e995cb3f5f99bb13
model-00011-of-00014.safetensors4.81 GB15dd3482b3bb3ba2f498572ac370a15c8c9c59bfcc3c1fa0a730c133a03b9ea6
model-00012-of-00014.safetensors4.81 GB480b31305085ca70d6ceaf7294a38b008395a0466527333043a8daf42643536d
model-00013-of-00014.safetensors4.68 GBa8e8cbbe40341a49618ec39c2f657c4ee88f82beed252b157c55d97036b7b4ef
model-00014-of-00014.safetensors2.30 GBb4bc589e873c34c93586f5ce84446f0cee838ddd4e847493a618868815d8a8cb
model.safetensors.index.json48.9 KB4dbfb53a28571da2a058a3fcf3464582fc73a43ac358f3c9ca9dd728d65e6478
model.sig13.4 KBd5d547b1aae163eecfa4c571c4186a9f490d2958a9ac38c8b618dde2e19604ea
special_tokens_map.json579 Bc08676c49fd7969a3130f72be6d4bf34da66aa484a6e21dffe359893a1bd5f2e
tokenizer.json7.15 MBe2bad66439538cb4d5a7580680932432ed9ece9d3b8577e675512bdf11599253
tokenizer_config.json17.7 KBa5ec5daab12ba090a90f3dd169c8f9c275557013a87b9c1258dc7cb497a35c86
vocab.json1.61 MB8af71076de8b0b626eed0f4c984faf0a7c062479164b2a31308a948524d4f69c
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b8c0982bab pinned now manifest updated, same commit2026-11-14 21:16 UTC26 files · 64.4 GB
b8c0982bab2026-11-14 21:16 UTC26 files · 64.4 GB

Use it

$ fw get ibm-granite/granite-4.0-h-small
# manifest sha256 a5c482297226… · 64.4 GB · 26 files
$ fw verify ./granite-4.0-h-small ibm-granite/granite-4.0-h-small
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/ibm-granite/granite-4.0-h-small.json --dir ./granite-4.0-h-small $ python3 fw.py verify ./granite-4.0-h-small ./ibm-granite__granite-4.0-h-small.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-4.0-h-small --revision b8c0982bab7fde4eb48110f5a069527c008fab39 --local-dir ./granite-4.0-h-small
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("ibm-granite/granite-4.0-h-small", revision="b8c0982bab7fde4eb48110f5a069527c008fab39") model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-4.0-h-small", revision="b8c0982bab7fde4eb48110f5a069527c008fab39", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve ibm-granite/granite-4.0-h-small --revision b8c0982bab7fde4eb48110f5a069527c008fab39

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
d8afa48cec7096978d19fdf19fd9012b9505f428c5d64c231fde63241be176ea
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject: granite-4.0-h-smallDate: 2026-11-14Commit: b8c0982Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-4.0-h-small
Pinned commit
b8c0982bab7fde4eb48110f5a069527c008fab39
Manifest
granite-4.0-h-small.json · .minisig
Manifest sha256
a5c4822972263c989904010846f86428afb7d1478fca30600695f36dd1da7d1f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:16 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-4.0-h-small.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-4.0-h-small.json.minisig $ minisign -Vm granite-4.0-h-small.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

10 models in the catalog name this one as their parent.

Quantizations
10
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-4.0-h-small
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-4.0-h-small.json. Provenance. Takedown history: none.

Variants

10 quantized or adapter builds of granite-4.0-h-small. Each has its own license check and page.

From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.Edu.seed3
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed1
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed2
From: ibm-granite <huggingface.co/ibm-granite>Subject: GneissWeb.7B_ablation_model_on_350B_FineWeb.seed3