Downloads · 30 days
42
4% of all-time downloads
uisikdag/SmolVLM-Instruct-4bit-bitsnbytes-nf4
SmolVLM-Instruct-4bit-bitsnbytes-nf4 is a image-text-to-text model from uisikdag. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
4bit nf4 quantized version, you can find the quantized version generation code below.
Downloads · 30 days
42
4% of all-time downloads
All-time downloads
999
Public
Parameters
2.3B
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.5 GB · 100%
How the weights are stored.
U82.1B · 91%
From the Hugging Face model README
4bit nf4 quantized version, you can find the quantized version generation code below.
from transformers import BitsAndBytesConfig
nf4_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_use_double_quant=True,
bnb_4bit_compute_dtype=torch.bfloat16
)
model_nf4 = AutoModelForVision2Seq.from_pretrained("HuggingFaceTB/SmolVLM-Instruct", quantization_config=nf4_config)