Downloads · 30 days
12
16% of all-time downloads
Demondiablo/medgemma-4b-it-int4-rtn-w4a16
medgemma-4b-it-int4-rtn-w4a16 is a image-text-to-text model from Demondiablo. 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 gemma.
This is an INT4 RTN W4A16 (Round-To-Nearest 4-bit Weight-Only) quantized version of google/medgemma-4b-it created using llm-compressor and formatted in compressed-tensors.
Downloads · 30 days
12
16% of all-time downloads
All-time downloads
74
Public
Parameters
4.3B
3.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors3.8 GB · 99%
How the weights are stored.
I323.2B · 75%
From the Hugging Face model README
This is an INT4 RTN W4A16 (Round-To-Nearest 4-bit Weight-Only) quantized version of google/medgemma-4b-it created using llm-compressor and formatted in compressed-tensors.
W4A16
int4), symmetric, per-group scaling (group_size=128)lm_head, embed_tokens, multi_modal_projector, and vision tower components are preserved in native BF16 for high clinical fidelity.vLLM natively accelerates compressed-tensors W4A16 checkpoints:
from vllm import LLM, SamplingParams
model_name = "Demondiablo/medgemma-4b-it-int4-rtn-w4a16"
# Initialize vLLM engine
llm = LLM(
model=model_name,
trust_remote_code=True,
max_model_len=4096,
)
prompt = "Extract medications: Capsule Desula 21 HS Tab 81 2 mg 1 HS Tab Telista CL 1 BD, Thyronorm 50 mg OD."
messages = [{"role": "user", "content": prompt}]
sampling_params = SamplingParams(
temperature=0.2,
max_tokens=512,
top_p=0.95,
)
outputs = llm.chat(messages=messages, sampling_params=sampling_params)
print(outputs[0].outputs[0].text)
model.safetensors: INT4 compressed weightsconfig.json: Architecture parameters and quantization_configrecipe.yaml: Reproducible LLM Compressor recipemedgemma-4b-it-int4-rtn-w4a16.json: Full benchmark evaluation results with generation latency and metricsextractions_medgemma-4b-it-int4-rtn-w4a16.json: Parsed clinical medication extractions across benchmark audio transcripts