Mindket

Granite-4.0-H-350M

Newversion 1 · updated

Overview

Handles summaries, classification, extraction, question answering, RAG, code tasks and tool calling in 12 languages with a 340M-parameter instruct model from IBM. For developers who need a compact on-device model.

Granite-4.0-H-350M is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python with pip
  • The torch, accelerate and transformers packages
  • About 681 MB for the BF16 weights, or about 170 MB at 4-bit by estimate
Runs in
  • Python with the transformers library, on a GPU or on CPU
  • On-device and research setups, which the card names as the intended use
  • Windows, macOS or Linux with Python
Start with
pip install torch torchvision torchaudio
pip install accelerate
pip install transformers

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Granite-4.0-H-350M is a small instruct model from IBM's Granite Team. It was fine-tuned from the Granite-4.0-H-350M-Base model on permissively licensed open instruction data and IBM's own synthetic data. The methods included supervised fine-tuning, reinforcement learning and model merging. It targets on-device use and research.

Who it suits

It suits developers who want a compact multilingual model for everyday language tasks, and teams that plan to fine-tune a small model on their own domain without large compute.

IndustryWho uses itHow they use itExample
SoftwareApp developersRun summaries and extraction on the user's devicePulling fields out of a pasted email
SupportHelp desk tool buildersClassify tickets and answer from retrieved textRouting a ticket to the right queue
EngineeringDeveloper tool teamsUse code tasks and fill-in-the-middle completionCompleting a missing function body
ResearchML researchersFine-tune a small model for a specialized fieldAdapting it to legal or medical wording

Skip it if you need the depth of a large model, since 340M parameters limits what it can reason through.

Where to use it

  • Python with the transformers library, on a GPU or on CPU
  • On-device and research setups, which the card names as the intended use
  • Windows, macOS or Linux with Python
Use caseWhoWhat they get back
Summaries and extractionApp teamsShort summaries or fields pulled from text
RAG question answeringSearch buildersAnswers drawn from passages you supply
Tool callingAgent developersFunction calls built from a tool list you define
Code completionEditor plugin makersFill-in-the-middle suggestions

How to set it up

You need these first.

  • Python with pip
  • The torch, accelerate and transformers packages
  • About 681 MB for the BF16 weights, or about 170 MB at 4-bit by estimate
  1. Install the libraries with pip.
  2. Load the tokenizer and model by name.
  3. Build a chat, apply the chat template and generate.
pip install torch torchvision torchaudio
pip install accelerate
pip install transformers
pip install -U huggingface_hub
hf download ibm-granite/granite-4.0-h-350m

How to use it

Write a chat as a list of role and content messages, apply the chat template, tokenize and generate. Drop the device map if you run on CPU. For tool calling, you define your tools in the same schema that OpenAI uses for functions.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"
model_path = "ibm-granite/granite-4.0-h-350M"
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])
ToolWhat it does
apply_chat_templateFormats your messages with the model's role markers
model.generateProduces the reply, capped here at 100 new tokens
tools listDescribes functions the model can call, in the OpenAI function schema

Example

Ask for one IBM Research laboratory in the United States, name and location only. The printed output repeats the prompt with the role markers and then the reply. The card's expected output names the Almaden Research Center in San Jose, California.

For newcomers and experts

If you are new, this is a small chat model you can run on a laptop. Start with the short Python script and change the question to your own. Keep tasks simple and short.

If you know the field, the card lists summarization, classification, extraction, question answering, RAG, code tasks, function calling, multilingual dialogue and fill-in-the-middle completions. It names 12 supported languages and says you can fine-tune it for others. Its tool calling uses the OpenAI function definition schema.

  1. Granite-4.0-H-350M-Base
  2. Supervised fine-tuning and RL
  3. Model merging
  4. Instruct model you load
  5. Chat template builds your prompt

Good to know

  • Languages: 12 in all, namely Chinese, Japanese, Korean, Arabic, Czech, Dutch, Italian, Portuguese, French, Spanish, German and English
  • Size: 340M parameters in Safetensors
  • Developer: the Granite Team at IBM
  • Community: other people have made 43 quantized and 16 fine-tuned versions
  • License: Apache 2.0
  • Cost to run: none named, the source lists no API key, account or paid service
  • Data it reaches: the messages you give your own script, and the source names no web or account access
  • Not for: the source forbids no uses, but it points the model at compact on-device and research work

README and files

README

Granite-4.0-H-350M

Handles summaries, classification, extraction, question answering, RAG, code tasks and tool calling in 12 languages with a 340M-parameter instruct model from IBM. For developers who need a compact on-device model.

Made by ibm-granite on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Granite-4.0-H-350M is a small instruct model from IBM's Granite Team. It was fine-tuned from the Granite-4.0-H-350M-Base model on permissively licensed open instruction data and IBM's own synthetic data. The methods included supervised fine-tuning, reinforcement learning and model merging. It targets on-device use and research.

Who it suits: It suits developers who want a compact multilingual model for everyday language tasks, and teams that plan to fine-tune a small model on their own domain without large compute.

Industry | Who uses it | How they use it | Example
Software | App developers | Run summaries and extraction on the user's device | Pulling fields out of a pasted email
Support | Help desk tool builders | Classify tickets and answer from retrieved text | Routing a ticket to the right queue
Engineering | Developer tool teams | Use code tasks and fill-in-the-middle completion | Completing a missing function body
Research | ML researchers | Fine-tune a small model for a specialized field | Adapting it to legal or medical wording

Skip it if you need the depth of a large model, since 340M parameters limits what it can reason through.

Where to use it:

  • Python with the transformers library, on a GPU or on CPU
  • On-device and research setups, which the card names as the intended use
  • Windows, macOS or Linux with Python
Use case | Who | What they get back
Summaries and extraction | App teams | Short summaries or fields pulled from text
RAG question answering | Search builders | Answers drawn from passages you supply
Tool calling | Agent developers | Function calls built from a tool list you define
Code completion | Editor plugin makers | Fill-in-the-middle suggestions

How to set it up: You need these first.

  • Python with pip
  • The torch, accelerate and transformers packages
  • About 681 MB for the BF16 weights, or about 170 MB at 4-bit by estimate
  1. Install the libraries with pip.
  2. Load the tokenizer and model by name.
  3. Build a chat, apply the chat template and generate.
pip install torch torchvision torchaudio
pip install accelerate
pip install transformers
pip install -U huggingface_hub
hf download ibm-granite/granite-4.0-h-350m

How to use it: Write a chat as a list of role and content messages, apply the chat template, tokenize and generate. Drop the device map if you run on CPU. For tool calling, you define your tools in the same schema that OpenAI uses for functions.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

device = "cuda"
model_path = "ibm-granite/granite-4.0-h-350M"
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])
Tool | What it does
apply_chat_template | Formats your messages with the model's role markers
model.generate | Produces the reply, capped here at 100 new tokens
tools list | Describes functions the model can call, in the OpenAI function schema

Example: Ask for one IBM Research laboratory in the United States, name and location only. The printed output repeats the prompt with the role markers and then the reply. The card's expected output names the Almaden Research Center in San Jose, California.

For newcomers and experts: If you are new, this is a small chat model you can run on a laptop. Start with the short Python script and change the question to your own. Keep tasks simple and short.

If you know the field, the card lists summarization, classification, extraction, question answering, RAG, code tasks, function calling, multilingual dialogue and fill-in-the-middle completions. It names 12 supported languages and says you can fine-tune it for others. Its tool calling uses the OpenAI function definition schema.

Granite-4.0-H-350M-Base
Supervised fine-tuning and RL
Model merging
Instruct model you load
Chat template builds your prompt

Good to know:

  • Languages: 12 in all, namely Chinese, Japanese, Korean, Arabic, Czech, Dutch, Italian, Portuguese, French, Spanish, German and English
  • Size: 340M parameters in Safetensors
  • Developer: the Granite Team at IBM
  • Community: other people have made 43 quantized and 16 fine-tuned versions
  • License: Apache 2.0
  • Cost to run: none named, the source lists no API key, account or paid service
  • Data it reaches: the messages you give your own script, and the source names no web or account access
  • Not for: the source forbids no uses, but it points the model at compact on-device and research work

On Hugging Face, 13 November 2026

  • Task: text generation
  • Library: transformers
  • Parameters: 340M
  • Weights: about 681 MB in BF16; about 170 MB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 4,734
  • Likes: 114
  • License: apache-2.0
  • Based on: ibm-granite/granite-4.0-h-350m-base
  • Quantized versions: 44
  • Fine-tunes: 16
  • Tags: transformers, safetensors, granitemoehybrid, text-generation, language, granite-4.0, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download ibm-granite/granite-4.0-h-350m

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  6 KB

1 file, 6 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Granite-4.0-H-350M This page4,734114340Mapache-2.0
Granite-4.2-3B (GGUF)Shares language · conversational · transformers276,584473.7Bapache-2.0
granite-4.1-8b-GGUFShares language · conversational · transformers4,426568.8Bapache-2.0
granite-4.2-8b GGUFShares language · conversational282,269498.8Bapache-2.0
Qwen3-0.6BShares text-generation · conversational · transformers19,718,5991,894752Mapache-2.0
Qwen3-14BShares text-generation · conversational · transformers12,965,37654014.8Bapache-2.0
Numbers as Mindket last read them, from 2026-11-12 to 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

More from Mindket

See all from Mindket

anaksor-ocr

Sokheng · Kit

Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…

New

Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…

New

ACE-Step 1.5 XL SFT

ACE-Step · Kit

Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…

New

Similar in Developer

See all in Developer

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

buzz

block · Kit

Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…

New37.3k

plannotator

backnotprop · Kit

Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.

New10.5k