Downloads · 30 days
22
3% of all-time downloads
leon-se/Idefics3-8B-Llama3-bnb_nf4
Idefics3-8B-Llama3-bnb_nf4 is a image-text-to-text model from leon-se. 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.
Downloads · 30 days
22
3% of all-time downloads
All-time downloads
667
Public
Parameters
8.7B
6.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.6 GB · 100%
How the weights are stored.
U87.2B · 83%
From the Hugging Face model README
BitsAndBytes NF4 quantization.
Quantization created with:
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
model_id = "HuggingFaceM4/Idefics3-8B-Llama3"
nf4_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
llm_int8_enable_fp32_cpu_offload=True,
llm_int8_skip_modules=["lm_head", "model.vision_model", "model.connector"],
)
model_nf4 = AutoModelForVision2Seq.from_pretrained(model_id, quantization_config=nf4_config)