Downloads · 30 days
21
20% of all-time downloads
HarmenWessels/granite-4.1-8b-int4-cw-code-ov
granite-4.1-8b-int4-cw-code-ov is a text generation model from HarmenWessels. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
OpenVINO IR conversion of ibm-granite/granite-4.1-8b (dense 40-layer transformer, 128k context, Apache-2.0). Quantized INT4 symmetric channel-wise with AWQ + scale-estimation calibration.
Downloads · 30 days
21
20% of all-time downloads
All-time downloads
104
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.bin4.4 GB · 100%
From the Hugging Face model README
OpenVINO IR conversion of ibm-granite/granite-4.1-8b (dense 40-layer transformer, 128k context, Apache-2.0). Quantized INT4 symmetric channel-wise with AWQ + scale-estimation calibration.
The one difference from the sibling granite-4.1-8b-int4-cw-ov: the AWQ/scale-estimation calibration set is real Python source code instead of wikitext2 prose. The hypothesis is that domain-matched activation statistics protect the channels that matter for code generation and editing. On this repo's per-task-type benchmark it scores slightly above the wikitext2-calibrated sibling — the gain lands on code generation, and it is slightly faster, with the other task types unchanged.
Converted with optimum-intel (2.1.0.dev0+314b0c4) / NNCF 3.2.0 / OpenVINO 2026.3 / transformers 5.10.2, via the optimum-intel Python API:
from optimum.intel import OVModelForCausalLM, OVWeightQuantizationConfig
# corpus = 128 random ~2.4k-char chunks of real Python source
qcfg = OVWeightQuantizationConfig(
bits=4, sym=True, group_size=-1, ratio=1.0,
dataset=corpus, awq=True, scale_estimation=True)
model = OVModelForCausalLM.from_pretrained(
"ibm-granite/granite-4.1-8b", export=True,
quantization_config=qcfg, compile=False)
import openvino_genai as ov_genai
pipe = ov_genai.LLMPipeline("granite-4.1-8b-int4-cw-code-ov", "GPU", CACHE_DIR="./.ovcache")
print(pipe.generate("Write a Python function that merges overlapping intervals.",
max_new_tokens=256))
Tested end-to-end as an OpenAI-compatible Continue.dev backend via core-ultra-llm-server.
ibm-granite/granite-4.1-8b (IBM, Apache-2.0, released 2026-04)This model is measured in core-ultra-llm-server — per-task pass/fail (code generation, editing, agentic tool use, analysis, autocomplete) on an Intel Core Ultra 155H iGPU, re-run whenever the engine or server changes. The leaderboard there is authoritative; this card carries no numbers so it cannot go stale. Its benchmark card (decoding, think budget) is cards/HarmenWessels__granite-4.1-8b-int4-cw-code-ov.yaml.