Downloads · 30 days
26
4% of all-time downloads
MedGemmaImpact/medgemma-1.5-4b-it-nvfp4
medgemma-1.5-4b-it-nvfp4 is a machine learning model from MedGemmaImpact. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as gemma.
Quantized checkpoint of google/medgemma-1.5-4b-it using NVFP4 via llmcompressor.
Downloads · 30 days
26
4% of all-time downloads
All-time downloads
607
Public
Parameters
3.6B
5.4 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors5.3 GB · 99%
How the weights are stored.
BF161.8B · 49%
From the Hugging Face model README
Quantized checkpoint of google/medgemma-1.5-4b-it using NVFP4 via llmcompressor.
from vllm import LLM, SamplingParams
from vllm.assets.image import ImageAsset
from transformers import AutoProcessor
model_name = "MedGemmaImpact/medgemma-1.5-4b-it-nvfp4"
# Load image and processor
image = ImageAsset("cherry_blossom").pil_image.convert("RGB")
processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
# Build multimodal prompt
chat = [
{"role": "user", "content": [{"type": "image"}, {"type": "text", "text": "What is in this image?"}]},
{"role": "assistant", "content": []}
]
prompt = processor.apply_chat_template(chat, add_generation_prompt=True)
# Initialize model
llm = LLM(model=model_name, trust_remote_code=True)
# Run inference
inputs = {"prompt": prompt, "multi_modal_data": {"image": [image]}}
outputs = llm.generate(inputs, SamplingParams(temperature=0.2, max_tokens=64))
print("RESPONSE:", outputs[0].outputs[0].text)
flickr30k2561024