How to use from
vLLM
Install from pip and serve model
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "almernzh/Gemma-4-12B-it-AWQ-INT4-Multimodal-LongContext"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
	-H "Content-Type: application/json" \
	--data '{
		"model": "almernzh/Gemma-4-12B-it-AWQ-INT4-Multimodal-LongContext",
		"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/almernzh/Gemma-4-12B-it-AWQ-INT4-Multimodal-LongContext
Quick Links

Gemma-4-12B-it-AWQ-INT4-Multimodal-LongContext

AWQ INT4 weights for google/gemma-4-12B-it, prepared for lower VRAM use while keeping the base model practical for text, image, audio, structured output, and long-context experiments.

Quantization

  • Method: AWQ
  • Weight format: INT4
  • Compute scheme: W4A16
  • Calibration samples: 128
  • Max calibration length: 4096 tokens
  • Calibration style: document QA, OCR-style text, structured JSON output, coding prompts, table and chart descriptions, transcript-style prompts, and long-context retrieval prompts
  • Tooling: LLM Compressor 0.12.0, Transformers 5.10.1, PyTorch 2.11.0+cu128
  • GPU used: NVIDIA A100-SXM4-80GB

Local Check

A short generation check was run after saving the weights.

  • Test prompt: return a JSON object with status: ok
  • Result: passed
  • Peak VRAM during local load test: 22.98 GB

Notes

These weights are intended for practical inference tests with lower memory use than the original precision. Quantization can affect exact wording, numeric precision, and long-context recall. Full 256K context behavior should only be assumed after testing in your own setup.

Downloads last month
105
Safetensors
Model size
12B params
Tensor type
I64
·
I32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for almernzh/Gemma-4-12B-it-AWQ-INT4-Multimodal-LongContext

Quantized
(302)
this model