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

granite-7b-instruct-accelerator

Date: 2026-11-15Commit: 75ea497Signed: 2DC28CC7B26A283B ✓

Model with 1.4B parameters. Safetensors weights, 2.79 GB in all. Published by ibm-granite under Apache-2.0.

1.4B params2.79GBgranite-7b-instruct-acceleratorsafetensorspermissive
FactsParams1.4BSize2.79 GBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get ibm-granite/granite-7b-instruct-accelerator
# manifest sha256 6d5453e84c38… · 2.79 GB · 9 files
$ fw verify ./granite-7b-instruct-accelerator ibm-granite/granite-7b-instruct-accelerator
From sourceHosted (signed)ibm-granite/granite-7b-instruct-acceleratorLast check: 2026-11-15 04:14 UTC

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

Works with

Runs with

Ranked by fit to this model (safetensors), then by GitHub stars.

Overview

Size
2.79 GB
Weights
2.79 GB (safetensors)
Parameters
1.4B
Formats
safetensors
Task
not tagged
License
Apache-2.0 (permissive)
Files
9, 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 04:14 UTCpassed

Model card

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

Installation from source#

git clone https://github.com/foundation-model-stack/fms-extras
cd fms-extras
pip install -e .

Description#

This model is intended to be used as an accelerator for granite-7b-instruct and takes inspiration from the Medusa speculative decoding architecture. This accelerator modifies the MLP into a multi-stage MLP, where each stage predicts a single token in the draft based on both a state vector and sampled token from the prior stage (the base model can be considered stage 0). The state vector from the base model provides contextual information to the accelerator, while conditioning on prior sampled tokens allows it to produce higher-quality draft n-grams.

Note: The underlying MLP speculator is a generic architecture that can be trained with any generative model to accelerate inference. Training is light-weight and can be completed in only a few days depending on base model size and speed.

  1. Paged Attention KV-Cache / Speculator
  2. Production Server with speculative decoding
  3. Speculator training

Samples#

Note: For all samples, your environment must have access to cuda

Use in IBM Production TGIS#

To try this out running in a production-like environment, please use the pre-built docker image:

Setup#
HF_HUB_CACHE=/hf_hub_cache
chmod a+w $HF_HUB_CACHE
HF_HUB_TOKEN="your huggingface hub token"
TGIS_IMAGE=quay.io/wxpe/text-gen-server:main.ddc56ee

docker pull $TGIS_IMAGE

# optionally download granite-7b-instruct if the weights do not already exist
docker run --rm \
    -v $HF_HUB_CACHE:/models \
    -e HF_HUB_CACHE=/models \
    -e TRANSFORMERS_CACHE=/models \
    $TGIS_IMAGE \
    text-generation-server download-weights \
    ibm-granite/granite-7b-instruct \
    --token $HF_HUB_TOKEN

# optionally download the speculator model if the weights do not already exist
docker run --rm \
    -v $HF_HUB_CACHE:/models \
    -e HF_HUB_CACHE=/models \
    -e TRANSFORMERS_CACHE=/models \
    $TGIS_IMAGE \
    text-generation-server download-weights \
    ibm-granite/granite-7b-instruct-accelerator \
    --token $HF_HUB_TOKEN

# note: if the weights were downloaded separately (not with the above commands), please place them in the HF_HUB_CACHE directory and refer to them with /models/<model_name>
docker run -d --rm --gpus all \
    --name my-tgis-server \
    -p 8033:8033 \
    -v $HF_HUB_CACHE:/models \
    -e HF_HUB_CACHE=/models \
    -e TRANSFORMERS_CACHE=/models \
    -e MODEL_NAME=ibm-granite/granite-7b-instruct \
    -e SPECULATOR_NAME=ibm-granite/granite-7b-instruct-accelerator \
    -e FLASH_ATTENTION=true \
    -e PAGED_ATTENTION=true \
    -e DTYPE=float16 \
    $TGIS_IMAGE

# check logs and wait for "gRPC server started on port 8033" and "HTTP server started on port 3000"
docker logs my-tgis-server -f

# get the client sample (Note: The first prompt will take longer as there is a warmup time)
conda create -n tgis-client-env python=3.11
conda activate tgis-client-env
git clone --branch main --single-branch https://github.com/IBM/text-generation-inference.git
cd text-generation-inference/integration_tests
make gen-client
pip install . --no-cache-dir
Run Sample#
python sample_client.py

Note: first prompt may be slower as there is a slight warmup time

Use in Huggingface TGI#
start the server#
model=ibm-granite/granite-7b-instruct-accelerator
volume=$PWD/data # share a volume with the Docker container to avoid downloading weights every run
docker run --gpus all --shm-size 1g -p 8080:80 -v $volume:/data ghcr.io/huggingface/text-generation-inference:latest --model-id $model

note: for tensor parallel, add --num-shard

make a request#
curl 127.0.0.1:8080/generate_stream \
    -X POST \
    -d '{"inputs":"What is Deep Learning?","parameters":{"max_new_tokens":20}}' \
    -H 'Content-Type: application/json'
Minimal Sample#

To try this out with the fms-native compiled model, please execute the following:

Install#
git clone --branch ibm_7b_instruct_lab_variant --single-branch https://github.com/JRosenkranz/fms-extras.git
(cd fms-extras && pip install -e .)
pip install transformers==4.35.0 sentencepiece numpy
Run Sample#
batch_size=1 (compile + cudagraphs)#
MODEL_PATH=/path/to/ibm-granite/granite-7b-instruct
python fms-extras/scripts/paged_speculative_inference.py \
    --variant=7b.ibm_instruct_lab \
    --model_path=$MODEL_PATH \
    --model_source=hf \
    --tokenizer=$MODEL_PATH \
    --speculator_path=ibm-granite/granite-7b-instruct-accelerator \
    --speculator_source=hf \
    --speculator_variant=1_4b \
    --top_k_tokens_per_head=4,3,2,2,2 \
    --compile \
    --compile_mode=reduce-overhead
batch_size=1 (compile)#
MODEL_PATH=/path/to/ibm-granite/granite-7b-instruct
python fms-extras/scripts/paged_speculative_inference.py \
    --variant=7b.ibm_instruct_lab \
    --model_path=$MODEL_PATH \
    --model_source=hf \
    --tokenizer=$MODEL_PATH \
    --speculator_path=ibm-granite/granite-7b-instruct-accelerator \
    --speculator_source=hf \
    --speculator_variant=1_4b \
    --top_k_tokens_per_head=4,3,2,2,2 \
    --compile \
batch_size=4 (compile)#
MODEL_PATH=/path/to/ibm-granite/granite-7b-instruct
python fms-extras/scripts/paged_speculative_inference.py \
    --variant=7b.ibm_instruct_lab \
    --model_path=$MODEL_PATH \
    --model_source=hf \
    --tokenizer=$MODEL_PATH \
    --speculator_path=ibm-granite/granite-7b-instruct-accelerator \
    --speculator_source=hf \
    --speculator_variant=1_4b \
    --top_k_tokens_per_head=4,3,2,2,2 \
    --batch_input \
    --compile \

Files

9 files · 2.79 GBWeights 2.79 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 9 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
README.md5.98 KBa2d00abaad66c3ca441b20de34767dc0a51647ad84fb984df09561c987fad9c2
added_tokens.json119 B88bc90d34dff48e276e48ec300f5bb2804f16e6191e0818bf74d5e89142b6133
config.json396 B3a472c1633d54e5281c9414fa14a15d36fa82c3f122682e5fe7667f4ab9005d8
model.safetensors2.79 GB23f0815eb53a3cee5448c4a46edf38e23f09f42d939420eabbc7ac27384c93ca
special_tokens_map.json655 Bda5c4bd66dca19aee2563836dd63a00af552e735ed93ad6575644328a84e222f
tokenizer.json1.84 MB9461e230c5dc48bae8277e63f98412d92a2f03e32453f41cfb2f504f712ca5c2
tokenizer.model500 KB9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
tokenizer_config.json2.27 KB6c507cde1b53bbc7c7e8cba239213854aca079b9a2f6d2aa0e4452118b43a567
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
75ea497f70 pinned now2026-11-15 04:14 UTC9 files · 2.79 GB

Use it

$ fw get ibm-granite/granite-7b-instruct-accelerator
# manifest sha256 6d5453e84c38… · 2.79 GB · 9 files
$ fw verify ./granite-7b-instruct-accelerator ibm-granite/granite-7b-instruct-accelerator
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-7b-instruct-accelerator.json --dir ./granite-7b-instruct-accelerator $ python3 fw.py verify ./granite-7b-instruct-accelerator ./ibm-granite__granite-7b-instruct-accelerator.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-7b-instruct-accelerator --revision 75ea497f70453b0a00686225b3c4ddf5416785ed --local-dir ./granite-7b-instruct-accelerator

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
a2d00abaad66c3ca441b20de34767dc0a51647ad84fb984df09561c987fad9c2
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-7b-instruct-acceleratorDate: 2026-11-15Commit: 75ea497Signed: 2DC28CC7B26A283B ✓
Upstream
ibm-granite/granite-7b-instruct-accelerator
Pinned commit
75ea497f70453b0a00686225b3c4ddf5416785ed
Manifest
granite-7b-instruct-accelerator.json · .minisig
Manifest sha256
6d5453e84c38ad2f57a58594f853f3515d26660463e6adf5c5a72896bd27b3e8
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 04:14 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

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

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download ibm-granite/granite-7b-instruct-accelerator
Open in Freeweights Studio

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

Signed manifest
minisign, key 2DC28CC7B26A283B. granite-7b-instruct-accelerator.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