alt.freeweights.granite / granite-34b-code-instruct-8k
From: ibm-granite <huggingface.co/ibm-granite>Newsgroups: alt.freeweights.graniteSubject:

granite-34b-code-instruct-8k

Date: 2026-11-15Commit: 4bdfb58Signed: 2DC28CC7B26A283B ✓

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

33.7B params67.4GBgranite-34b-code-instruct-8ksafetensorspermissive
FactsParams33.7BSize67.4 GBFormatssafetensorsTasktext generationLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-34b-code-instruct-8k
# manifest sha256 cae7d637214c… · 67.4 GB · 22 files
$ fw verify ./granite-34b-code-instruct-8k ibm-granite/granite-34b-code-instruct-8k
From sourceHosted (signed)ibm-granite/granite-34b-code-instruct-8kLast check: 2026-11-15 03:44 UTC

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

Fine-tune of granite-34b-code-base-8k.

Works with

Overview

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

Original release from the publisher.

Base model: ibm-granite/granite-34b-code-base-8k

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

Model card

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

⚠️ DEPRECATION WARNING ⚠️#

New applications/projects should use the latest mainline Granite language model family, whose code capabilities supercede this model. This model is being made available strictly for historical/scientific purposes. Please see our Granite Collections for the latest Granite releases.


Image: image/png

Granite-34B-Code-Instruct-8K#

Model Summary#

Granite-34B-Code-Instruct-8K is a 34B parameter model fine tuned from Granite-34B-Code-Base on a combination of permissively licensed instruction data to enhance instruction following capabilities including logical reasoning and problem-solving skills.

Usage#

Intended use#

The model is designed to respond to coding related instructions and can be used to build coding assistants.

Generation#

This is a simple example of how to use Granite-34B-Code-Instruct-8K model.

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
device = "cuda" # or "cpu"
model_path = "ibm-granite/granite-34b-code-instruct-8k"
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": "Write a code to find the maximum value in a list of numbers." },
]
chat = tokenizer.apply_chat_template(chat, tokenize=False, add_generation_prompt=True)
# tokenize the text
input_tokens = tokenizer(chat, return_tensors="pt")
# transfer tokenized inputs to the device
for i in input_tokens:
    input_tokens[i] = input_tokens[i].to(device)
# generate output tokens
output = model.generate(**input_tokens, max_new_tokens=100)
# decode output tokens into text
output = tokenizer.batch_decode(output)
# loop over the batch to print, in this example the batch size is 1
for i in output:
    print(i)

Training Data#

Granite Code Instruct models are trained on the following types of data.

  • Code Commits Datasets: we sourced code commits data from the CommitPackFT dataset, a filtered version of the full CommitPack dataset. From CommitPackFT dataset, we only consider data for 92 programming languages. Our inclusion criteria boils down to selecting programming languages common across CommitPackFT and the 116 languages that we considered to pretrain the code-base model (Granite-34B-Code-Base).
  • Math Datasets: We consider two high-quality math datasets, MathInstruct and MetaMathQA. Due to license issues, we filtered out GSM8K-RFT and Camel-Math from MathInstruct dataset.
  • Code Instruction Datasets: We use Glaive-Code-Assistant-v3, Glaive-Function-Calling-v2, NL2SQL11 and a small collection of synthetic API calling datasets.
  • Language Instruction Datasets: We include high-quality datasets such as HelpSteer and an open license-filtered version of Platypus. We also include a collection of hardcoded prompts to ensure our model generates correct outputs given inquiries about its name or developers.

Infrastructure#

We train the Granite Code models using two of IBM's super computing clusters, namely Vela and Blue Vela, both outfitted with NVIDIA A100 and H100 GPUs respectively. These clusters provide a scalable and efficient infrastructure for training our models over thousands of GPUs.

Ethical Considerations and Limitations#

Granite code instruct models are primarily finetuned using instruction-response pairs across a specific set of programming languages. Thus, their performance may be limited with out-of-domain programming languages. In this situation, it is beneficial providing few-shot examples to steer the model's output. Moreover, developers should perform safety testing and target-specific tuning before deploying these models on critical applications. The model also inherits ethical considerations and limitations from its base model. For more information, please refer to Granite-34B-Code-Base-8K model card.

Files

22 files · 67.4 GBWeights 67.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 22 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md9.73 KB122fd470c3821e8581326fd758fe5a8b9e8073253567656b742e498335810195
config.json662 Be42e7ea06917c590bccbe37760102aba9d2187a2e32da13bbedf1a9d38b636f1
generation_config.json137 Be53a4633c99233a65025b869b1e0fc5747a737d39d57f6a40a78a64a570d3628
model-00001-of-00014.safetensors4.95 GB1f0e56674eb346393c0aca2833ba940e588206da591edf632ab2516abee29ef5
model-00002-of-00014.safetensors4.93 GBd32f8f42ab9b230e5e3d9a0705539d39123f23ddaf0c9146941af3f6bcd67362
model-00003-of-00014.safetensors4.93 GBe14cf71c2dc1ed4f20f5ddc05ab6bc2c5fd3ac40328583a7c5248a346bf37ba7
model-00004-of-00014.safetensors4.93 GB6e7ea7974271e0cc60f3666265c3ae2d7421faed518e4ae4b2cdff1e4e376c82
model-00005-of-00014.safetensors4.93 GBcf23648656749d1b8ef31e04cb4cfa179a1ff77139ad1098b9ab4192587fe823
model-00006-of-00014.safetensors4.93 GB526754647610798e2929cacbe1f0f844259faac6e14e2ba7e70eb19897649dd8
model-00007-of-00014.safetensors4.93 GB5ca3c50e3eb29dd860fb9cbf56d438418b7716d7513abed37090f5fbb275319c
model-00008-of-00014.safetensors4.93 GB82180f1381e538e8d445c311b031202fc7dc30416059967114c4a3a746eb286a
model-00009-of-00014.safetensors4.93 GB4f274a61895372f58e8713b238cc2cd67afe10ce38aeaaa9fe1a45c5124f5956
model-00010-of-00014.safetensors4.93 GBfac856fc47d59b69874f02592868d528a1d6d78a67d703fa764b2ae07f0bd876
model-00011-of-00014.safetensors4.93 GB354febb879bd175e37bab2183a475697997392958e0129ab4e516672961d7ad5
model-00012-of-00014.safetensors4.93 GBf083ee17cde1f178a3f57f8a03ae6a764f65c4d71fa5ef1faa7a203568b3705b
model-00013-of-00014.safetensors4.93 GB8a61f160c7b092e814ca2cfd20ab604ee03fa2e41af294b453c4bf51f8f9feb5
model-00014-of-00014.safetensors3.34 GBfc0db4a5b1e0e09ef4a33abc00bc776b68680ed1c74c303568596cf1ba5b4508
model.safetensors.index.json79.4 KB40e515b563c2514a67250ee2eab94bf4720070e3dbcc9430f0283d836a375fa0
special_tokens_map.json1.02 KB2f2bba45146f073a7b8a097cb6133a6b4b66d5751e73f2a2aca81083288813e9
tokenizer.json2.06 MB9af07a3123a1f4d75dcb85fbdc4c62f9b7873d23fa39c449d2240c3e33eb3ab5
tokenizer_config.json4.54 KBf533a8dbb8526be9e8f5b218e6d7be21cb4ce6fd2068286ab7e78d98ecc9a053
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
4bdfb589eb pinned now2026-11-15 03:44 UTC22 files · 67.4 GB

Use it

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

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
122fd470c3821e8581326fd758fe5a8b9e8073253567656b742e498335810195
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-34b-code-instruct-8kDate: 2026-11-15Commit: 4bdfb58Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-34b-code-instruct-8k
Pinned commit
4bdfb589ebd261be0942a00dd239175d9d65bc47
Manifest
granite-34b-code-instruct-8k.json · .minisig
Manifest sha256
cae7d637214c98360e9fab1173aa1acf40124a7e2c816fbdfd0871a24e8012b1
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-34b-code-instruct-8k.json $ curl -O https://freeweights.allternit.com/manifests/ibm-granite/granite-34b-code-instruct-8k.json.minisig $ minisign -Vm granite-34b-code-instruct-8k.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-34b-code-base-8k · this model is a finetune of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-34b-code-instruct-8k
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-34b-code-instruct-8k.json. Provenance. Takedown history: none.
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