alt.freeweights.granite / granite-3.1-2b-instruct
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-3.1-2b-instruct

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

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

2.5B params5.07GBgranite-3.1-2b-instructsafetensorspermissive
FactsParams2.5BSize5.07 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-3.1-2b-instruct
# manifest sha256 d857b2adf5f9… · 5.07 GB · 13 files
$ fw verify ./granite-3.1-2b-instruct ibm-granite/granite-3.1-2b-instruct
From sourceHosted (signed)ibm-granite/granite-3.1-2b-instructLast check: 2026-11-14 21:15 UTC

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

Fine-tune of granite-3.1-2b-base.

Works with

Overview

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

Original release from the publisher.

Base model: ibm-granite/granite-3.1-2b-base

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

Model card

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

Granite-3.1-2B-Instruct#

Model Summary: Granite-3.1-2B-Instruct is a 2B parameter long-context instruct model finetuned from Granite-3.1-2B-Base using a combination of open source instruction datasets with permissive license and internally collected synthetic datasets tailored for solving long context problems. 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.

Supported Languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may finetune Granite 3.1 models for languages beyond these 12 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
  • Long-context tasks including long document/meeting summarization, long document QA, etc.

Generation: This is a simple example of how to use Granite-3.1-2B-Instruct 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 = "auto"
model_path = "ibm-granite/granite-3.1-2b-instruct"
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)

Evaluation Results

HuggingFace Open LLM Leaderboard V1

| Models | ARC-Challenge | Hellaswag | MMLU | TruthfulQA | Winogrande | GSM8K | Avg

| Granite-3.1-8B-Instruct | 62.62 | 84.48 | 65.34 | 66.23 | 75.37 | 73.84 | 71.31

| Granite-3.1-2B-Instruct | 54.61 | 75.14 | 55.31 | 59.42 | 67.48 | 52.76 | 60.79

| Granite-3.1-3B-A800M-Instruct | 50.42 | 73.01 | 52.19 | 49.71 | 64.87 | 48.97 | 56.53

| Granite-3.1-1B-A400M-Instruct | 42.66 | 65.97 | 26.13 | 46.77 | 62.35 | 33.88 | 46.29

HuggingFace Open LLM Leaderboard V2

| Models | IFEval | BBH | MATH Lvl 5 | GPQA | MUSR | MMLU-Pro | Avg

| Granite-3.1-8B-Instruct | 72.08 | 34.09 | 21.68 | 8.28 | 19.01 | 28.19 | 30.55

| Granite-3.1-2B-Instruct | 62.86 | 21.82 | 11.33 | 5.26 | 4.87 | 20.21 | 21.06

| Granite-3.1-3B-A800M-Instruct | 55.16 | 16.69 | 10.35 | 5.15 | 2.51 | 12.75 | 17.1

| Granite-3.1-1B-A400M-Instruct | 46.86 | 6.18 | 4.08 | 0 | 0.78 | 2.41 | 10.05

Model Architecture: Granite-3.1-2B-Instruct is based on a decoder-only dense transformer architecture. Core components of this architecture are: GQA and RoPE, MLP with SwiGLU, RMSNorm, and shared input/output embeddings.

| Model | 2B Dense | 8B Dense | 1B MoE | 3B MoE

| Embedding size | 2048 | 4096 | 1024 | 1536

| Number of layers | 40 | 40 | 24 | 32

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

| Number of attention heads | 32 | 32 | 16 | 24

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

| MLP hidden size | 8192 | 12800 | 512 | 512

| MLP activation | SwiGLU | SwiGLU | SwiGLU | SwiGLU

| Number of experts | — | — | 32 | 40

| MoE TopK | — | — | 8 | 8

| Initialization std | 0.1 | 0.1 | 0.1 | 0.1

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

| Position embedding | RoPE | RoPE | RoPE | RoPE

| # Parameters | 2.5B | 8.1B | 1.3B | 3.3B

| # Active parameters | 2.5B | 8.1B | 400M | 800M

| # Training tokens | 12T | 12T | 10T | 10T

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 including long-context tasks, and (3) very small amounts of human-curated data. A detailed attribution of datasets can be found in the Granite 3.0 Technical Report, Granite 3.1 Technical Report (coming soon), and Accompanying Author List.

Infrastructure: We train Granite 3.1 Language Models using IBM's super computing cluster, Blue Vela, which is outfitted with NVIDIA H100 GPUs. This cluster provides a scalable and efficient infrastructure for training our models over thousands of GPUs.

Ethical Considerations and Limitations: Granite 3.1 Instruct Models are primarily finetuned using instruction-response pairs mostly in English, but also multilingual data covering eleven 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

13 files · 5.07 GBWeights 5.07 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 13 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md20.5 KBa7802fae8f3a9077d120af7448d3ec00964e3de192e99714062657b4cd061d44
added_tokens.json87 B081bdeaf76fc5463cc2e20fbadf17ad9eb569bb5343b120cc64b98840754f96c
config.json786 B5832d470c0ebb05cb0760fe05f80fa3e67ba42ba2d0a549bd36c6807f8d18672
generation_config.json132 Bdf006c64ad35b18712527cb5130a7a13a4d8a7c5c23653feea59be88e2e2a4ca
merges.txt442 KB303127a244b0078878156c17229f36d11b7a3a3f8e47b7cfdbb304ff46be5030
model-00001-of-00002.safetensors5.00 GB191f3d103af88ed84299b58a3e4c99e7e4c781c7ba55721aea6be27fd59fe0e3
model-00002-of-00002.safetensors67.1 MBb84cad69836d94be40bb008b76b0ba29b1cebd7a0bd94e9bc0257ea1fe958d99
model.safetensors.index.json29.8 KB75f910f2ef1db766353d67cfc4d8d246dea9c817ec360d62ae05def22d90f938
special_tokens_map.json701 B596d752bf46f5cace1f6826b52ed7d913347a4eea0ecce8ab2f869471ca40369
tokenizer.json3.48 MBed944c0b3d71e2d651a5ba0f8e7b350faff30031c8e3353de70b12b9c1bf5654
tokenizer_config.json8.07 KBab17e0d532ecf47e9d8451939dd81f25dd98c5fba4b6742584549bbf9c1f06b9
vocab.json777 KB80ab859339a2525fdfbda14bc39df02dffb824aefdaf86426217bbb146d17e01
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
bbc2aed595 pinned now manifest updated, same commit2026-11-14 21:15 UTC13 files · 5.07 GB
bbc2aed5952026-11-14 21:15 UTC13 files · 5.07 GB

Use it

$ fw get ibm-granite/granite-3.1-2b-instruct
# manifest sha256 d857b2adf5f9… · 5.07 GB · 13 files
$ fw verify ./granite-3.1-2b-instruct ibm-granite/granite-3.1-2b-instruct
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-3.1-2b-instruct.json --dir ./granite-3.1-2b-instruct $ python3 fw.py verify ./granite-3.1-2b-instruct ./ibm-granite__granite-3.1-2b-instruct.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-3.1-2b-instruct --revision bbc2aed595bd38bd770263dc3ab831db9794441d --local-dir ./granite-3.1-2b-instruct
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-3.1-2b-instruct", revision="bbc2aed595bd38bd770263dc3ab831db9794441d") model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-3.1-2b-instruct", revision="bbc2aed595bd38bd770263dc3ab831db9794441d", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve ibm-granite/granite-3.1-2b-instruct --revision bbc2aed595bd38bd770263dc3ab831db9794441d

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
a7802fae8f3a9077d120af7448d3ec00964e3de192e99714062657b4cd061d44
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-3.1-2b-instructDate: 2026-11-14Commit: bbc2aedSigned: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-3.1-2b-instruct
Pinned commit
bbc2aed595bd38bd770263dc3ab831db9794441d
Manifest
granite-3.1-2b-instruct.json · .minisig
Manifest sha256
d857b2adf5f9e9ae39a1c9550445d71543bf3147a4fbd10b66f8da697c63dfa0
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:15 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-3.1-2b-instruct.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-3.1-2b-instruct.json.minisig $ minisign -Vm granite-3.1-2b-instruct.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

Parent

ibm-granite/granite-3.1-2b-base · this model is a finetune of it

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

Fine-tunes
3
Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-3.1-2b-instruct
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-3.1-2b-instruct.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of granite-3.1-2b-instruct. 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