Image-Text-to-Text
Transformers
Safetensors
English
gemma4
gemma
google
Mixture of Experts
mixture-of-experts
multimodal
vision
quantized
int4
INT4
w4a16
compressed-tensors
vllm
text-generation
conversational
4-bit precision
ptq
AutoRound (blocked — see KNOWN-FAILURES)
llmcompressor
sglang
88plug
post-training-quantization
image
vlm
Instructions to use 88plug/Gemma4-E2B-it-W4A16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use 88plug/Gemma4-E2B-it-W4A16 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="88plug/Gemma4-E2B-it-W4A16") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("88plug/Gemma4-E2B-it-W4A16") model = AutoModelForMultimodalLM.from_pretrained("88plug/Gemma4-E2B-it-W4A16", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use 88plug/Gemma4-E2B-it-W4A16 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "88plug/Gemma4-E2B-it-W4A16" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "88plug/Gemma4-E2B-it-W4A16", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/88plug/Gemma4-E2B-it-W4A16
- SGLang
How to use 88plug/Gemma4-E2B-it-W4A16 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "88plug/Gemma4-E2B-it-W4A16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "88plug/Gemma4-E2B-it-W4A16", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "88plug/Gemma4-E2B-it-W4A16" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "88plug/Gemma4-E2B-it-W4A16", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use 88plug/Gemma4-E2B-it-W4A16 with Docker Model Runner:
docker model run hf.co/88plug/Gemma4-E2B-it-W4A16
Download quality_stamp.json from 88plug/Gemma4-E2B-it-W4A16: direct link, hf CLI and curl.
- Browser
- Download file 810 Bytes
-
https://huggingface.co/88plug/Gemma4-E2B-it-W4A16/resolve/main/quality_stamp.json
- Command line
-
hf download hf://88plug/Gemma4-E2B-it-W4A16/quality_stamp.json
-
curl -L -o quality_stamp.json https://huggingface.co/88plug/Gemma4-E2B-it-W4A16/resolve/main/quality_stamp.json
810 Bytes
| {"model_dir": "/mnt/af1f34e8-a81d-4d73-8db6-ab4720b9f9af/quant/quantized/Gemma4-E2B-it-W4A16", "hf_repo": "88plug/Gemma4-E2B-it-W4A16", "smoke": "pass", "smoke_output": {"smoke": "pass", "path": "transformers", "load_path": "causal", "smoke_via": "full_generate", "mamba": "n/a", "logits_shape": [1, 5, 262144], "generate_preview": "The capital of France is."}, "is_multimodal": true, "is_instruct": true, "stamped_by": "verify-model.yml v3", "requant": false, "tier": "provisional", "quant_method": "datafree RTN W4A16 (AutoRound blocked \u2014 KNOWN-FAILURES)", "flac_status": "not_measured", "target_tier": "", "canonical_script": "quant_gemma4_w4a16.py", "vllm_version": "0.21.0", "vllm_image": "vllm/vllm-openai:v0.21.0-cu129-ubuntu2404", "python_version": "3.12.3", "stamped_at": "2026-07-10T23:33:07Z"} | |