Downloads · 30 days
21
29% of all-time downloads
Demondiablo/medgemma-4b-it-mxfp8
medgemma-4b-it-mxfp8 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 MXFP8 (Microscaling 8-bit Float) quantized version of google/medgemma-4b-it created using llm-compressor and formatted in compressed-tensors.
Downloads · 30 days
21
29% of all-time downloads
All-time downloads
72
Public
Parameters
4.3B
5.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5.5 GB · 99%
How the weights are stored.
F8_E4M33.2B · 75%
From the Hugging Face model README
This is an MXFP8 (Microscaling 8-bit Float) quantized version of google/medgemma-4b-it created using llm-compressor and formatted in compressed-tensors.
MXFP8 conforms to the OCP Microscaling Formats (MX) Specification, utilizing microscopic block-wise scaling (group_size=32) with E8M0 scale exponents. This architecture delivers superior numerical fidelity compared to standard per-tensor FP8 while achieving native tensor core acceleration on NVIDIA Blackwell (SM 10.0+) architecture.
MXFP8
group_size=32), E8M0 scale factorsgroup_size=32)lm_head, embed_tokens, multi_modal_projector, and vision tower components are kept unquantized to guarantee full clinical and diagnostic fidelity.vLLM natively parses compressed-tensors MXFP8 checkpoints:
from vllm import LLM, SamplingParams
model_name = "Demondiablo/medgemma-4b-it-mxfp8"
# Initialize vLLM engine
llm = LLM(
model=model_name,
trust_remote_code=True,
max_model_len=4096,
)
prompt = "Analyze the clinical implications of an acute ST-elevation myocardial infarction (STEMI)."
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: MXFP8 compressed weights with per-group E8M0 scale factorsconfig.json: Model architecture with quantization_config metadatarecipe.yaml: Reproducible LLM Compressor recipe