Downloads · 30 days
8
11% of all-time downloads
residuals/granite-4.0-micro
granite-4.0-micro is a text generation model from residuals. Use it when you need the model to write or continue text. It is set up for residuals.
This repository contains instruction residuals (delta weights) computed as the parameter-wise difference between ibm-granite/granite-4.0-micro and ibm-granite/granite-4.0-micro-base.
Downloads · 30 days
8
11% of all-time downloads
All-time downloads
73
Public
Parameters
3.7B
14.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors14.6 GB · 100%
From the Hugging Face model README
This repository contains instruction residuals (delta weights) computed as the parameter-wise difference between ibm-granite/granite-4.0-micro and ibm-granite/granite-4.0-micro-base.
Apply these residuals to the base model to reconstruct the instruction-tuned weights without retraining.
from transformers import AutoModelForCausalLM, AutoTokenizer
from residuals import Residuals
base = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-4.0-micro-base")
tok = AutoTokenizer.from_pretrained("ibm-granite/granite-4.0-micro-base")
res = Residuals.from_pretrained("residuals/granite-4.0-micro")
res.apply(base, base_tokenizer=tok)
ibm-granite/granite-4.0-micro-baseibm-granite/granite-4.0-micromodel-00001-of-000N.safetensors, ... for multi-part weights.These are additive residuals (task vectors). Applying them to the base model's parameters reconstructs the instruction-tuned model.
Generated with the residuals Python package. Install via: pip install residuals.