alt.freeweights.granite / granite-4.0-350m-base
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-4.0-350m-base

Date: 2026-11-15Commit: a50b46cSigned: 2DC28CC7B26A283B ✓

Text generation model with 352M parameters. Safetensors weights, 715 MB in all. Published by ibm-granite under Apache-2.0.

352M params715MBgranite-4.0-350m-basesafetensorspermissive
FactsParams352MSize715 MBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-4.0-350m-base
# manifest sha256 916f2235012c… · 715 MB · 11 files
$ fw verify ./granite-4.0-350m-base ibm-granite/granite-4.0-350m-base
From sourceHosted (signed)ibm-granite/granite-4.0-350m-baseLast check: 2026-11-15 03:28 UTC

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

Works with

Overview

Size
715 MB
Weights
705 MB (safetensors)
Parameters
352M
Formats
safetensors
Task
text generation
License
Apache-2.0 (permissive)
Files
11, each with a sha256
Publisher
ibm-granite
Added
2026-11-15
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-15 03:28 UTCpassed

Model card

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

Granite-4.0-350M-Base#

Model Summary: Granite-4.0-350M-Base is a lightweight decoder-only language model designed for scenarios where efficiency and speed are critical. They can run on resource-constrained devices such as smartphones or IoT hardware, enabling offline and privacy-preserving applications. It also supports Fill-in-the-Middle (FIM) code completion through the use of specialized prefix and suffix tokens. The model is trained from scratch on approximately 15 trillion tokens following a four-stage training strategy: 10 trillion tokens in the first stage, 2 trillion in the second, another 2 trillion in the third, and 0.5 trillion in the final stage.

Supported Languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. Users may fine-tune Granite 4.0 Nano models to support languages beyond those included in this list.

Intended Use: Prominent use cases of LLMs in text-to-text generation include summarization, text classification, extraction, question-answering and code-completion (including FIM) tasks. Moreover, these lightweight models can serve as baseline to create task-specific models for different applications.

Generation: This is a simple example of how to use Granite-4.0-350M-Base model.

Install the following libraries:

pip install torch torchvision torchaudio
pip install accelerate
pip install transformers

Then, copy the code snippet below to run the example.

from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda"

model_path = "ibm-granite/granite-4.0-350M-base"

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
input_text = "The capital of France is"
# tokenize the text
input_tokens = tokenizer(input_text, return_tensors="pt").to(device)
# generate output tokens
output = model.generate(**input_tokens, max_length=10)
# decode output tokens into text
output = tokenizer.batch_decode(output)
# print output
print(output[0])

Expected output:

The capital of France is Paris.

Evaluation Results:

| Benchmarks | Metric | 350M Dense | H 350M Dense | 1B Dense | H 1B Dense

| General Tasks

| MMLU | 5-shot | 33.08 | 36.07 | 59.82 | 58.71

| MMLU-Pro | 5-shot,CoT | 11.29 | 10.08 | 29.96 | 23.45

| BBH | 3-shot, CoT | 32.19 | 29.96 | 57.73 | 48.45

| AGI EVAL | 3-shot | 28.97 | 29.2 | 48.95 | 47.46

| DROP | 5-shot | 29.77 | 28.56 | 58.18 | 57.18

| Math Tasks

| GSM8K | 8-shot | 24.11 | 24.41 | 62.4 | 57.39

| Minerva Math | 4-shot | 9.96 | 11.5 | 30.3 | 21.3

| Code Tasks

| HumanEval | pass@1 [StarCoder Prompt] | 34.6 | 35.61 | 68.08 | 68.26

| HumanEval | pass@1 | 32 | 34 | 60 | 59

| HumanEval+ | pass@1 | 29 | 29 | 57 | 56

| MBPP | pass@1 | 45 | 17 | 72 | 65

| MBPP+ | pass@1 | 38 | 16 | 60 | 54

| Multilingual Tasks

| MMMLU | 5-shot | 30.93 | 31.02 | 46.73 | 48.55

| INCLUDE | 5-shot | 27.32 | 29.26 | 42.6 | 43.8

| MGSM | 8-shot | 13.92 | 15.12 | 46.96 | 41.52

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-350M-Base is based on a decoder-only dense transformer architecture. Core components of this architecture are: GQA, MLP with SwiGLU, RMSNorm, and shared input/output embeddings.

| Model | 350M Dense | H 350M Dense | 1B Dense | H 1B Dense

| Embedding size | 1024 | 768 | 2048 | 1536

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

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

| Number of attention heads | 16 | 12 | 16 | 12

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

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

| Number of Mamba2 heads | - | 48 | - | 48

| MLP / Shared expert hidden size | 2048 | 2048 | 4096 | 4096

| Num. Experts | - | - | - | -

| Num. active Experts | - | - | - | -

| Expert hidden size | - | - | - | -

| MLP activation | SwiGLU | SwiGLU | SwiGLU | SwiGLU

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

| Position embedding | RoPE | NoPE | RoPE | NoPE

| # Parameters | 350M | 340M | 1.6B | 1.5B

| # Active parameters | 350M | 340M | 1.6B | 1.5B

Training Data: This model is trained on a mix of open source and proprietary data following a four-stage training strategy.

| Stage | Characteristics | 350M Dense | H 350M Dense | 1B Dense | H 1B Dense

| I | General mixture of training data, warmup, and power scheduler for learning rate. | 10 | 10 | 10 | 10

| II | General mixture of training data with higher percentages of code and math with power scheduler for learning rate. | 2 | 2 | 2 | 2

| III | High quality training data, exponential decay of learning rate. | 2 | 2 | 2 | 2

| IV | High quality training data, linear decay to zero for learning rate. | 0.5 | 0.5 | 0.5 | 0.5

Infrastructure: We trained the Granite 4.0 Nano 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: The use of Large Language Models involves risks and ethical considerations people must be aware of, including but not limited to: bias and fairness, misinformation, and autonomous decision-making. Granite-4.0-350M-Base model is not the exception in this regard. Even though this model is suited for multiple generative AI tasks, it has not undergone any safety alignment; therefore, it may produce problematic outputs. Additionally, it remains uncertain whether smaller models might exhibit increased susceptibility to hallucination in generation scenarios by copying text verbatim from the training dataset due to their reduced sizes and memorization capacities. This aspect is currently an active area of research, and we anticipate more rigorous exploration, comprehension, and mitigations in this domain. Regarding ethics, a latent risk associated with all Large Language Models is their malicious utilization. We urge the community to use Granite-4.0-350M-Base model with ethical intentions and in a responsible way.

Resources

Files

11 files · 715 MBWeights 705 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 11 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md26.4 KBe0786791023161d3f6dbc7e20a4efb278a1ef09a6a0abb9599bdba2e47a89378
config.json1.76 KB089690e22b9eafadcdd385afa5b6f3ea2446674ff5398c71df23be059d7c795d
generation_config.json147 B7c04cb9d2ba771f7528fba5a7104999cdaf7566d02b5fbd58472829f62716177
merges.txt917 KBb6fe424e334903f7fb84d3a106d9730455f4744b9fe3c21ee136d97a00e72502
model.safetensors705 MBa65363c0803a05c1c74e114c692c57f35b2641aeffce24d5a8ee8fad3b34dcf0
model.sig9.67 KB70d0934e3827c2ddcb922a4e9c6eb4df38e2e80b6d921e83cea695b06a2bb0e9
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
a50b46cef2 pinned now2026-11-15 03:28 UTC11 files · 715 MB

Use it

$ fw get ibm-granite/granite-4.0-350m-base
# manifest sha256 916f2235012c… · 715 MB · 11 files
$ fw verify ./granite-4.0-350m-base ibm-granite/granite-4.0-350m-base
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-350m-base.json --dir ./granite-4.0-350m-base $ python3 fw.py verify ./granite-4.0-350m-base ./ibm-granite__granite-4.0-350m-base.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-4.0-350m-base --revision a50b46cef21c8a86b15f0496cb794487a78a910b --local-dir ./granite-4.0-350m-base
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-350m-base", revision="a50b46cef21c8a86b15f0496cb794487a78a910b") model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-4.0-350m-base", revision="a50b46cef21c8a86b15f0496cb794487a78a910b", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve ibm-granite/granite-4.0-350m-base --revision a50b46cef21c8a86b15f0496cb794487a78a910b

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-15
Text in
README.md
Text sha256
e0786791023161d3f6dbc7e20a4efb278a1ef09a6a0abb9599bdba2e47a89378
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-350m-baseDate: 2026-11-15Commit: a50b46cSigned: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-4.0-350m-base
Pinned commit
a50b46cef21c8a86b15f0496cb794487a78a910b
Manifest
granite-4.0-350m-base.json · .minisig
Manifest sha256
916f2235012c2e40cc794202bb3b39cf3dfb8978fa3388c928fb008ad61e607f
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:28 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-4.0-350m-base.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-4.0-350m-base.json.minisig $ minisign -Vm granite-4.0-350m-base.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

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

Fine-tunes
1
Quantizations
1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-4.0-350m-base
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-350m-base.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of granite-4.0-350m-base. 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