CoolFace
Modelpublic

nagix999/gemma-3-27b-it-gptq-ko-calibration

sourceHugging Facegemmaupdated 9mo agoView on Hugging Face
0likes18downloads
Model Card

Gemma-3-27b-it Quantized Model

This repository provides a quantized version of the google/gemma-3-27b-it model. This quantization was performed to optimize inference efficiency and reduce VRAM usage while maintaining high performance, especially for Korean language tasks.

๐Ÿ›  Quantization Details

The model was quantized using Generative Pre-trained Transformer Quantization(GPTQ) with a focus on preserving the linguistic nuances of Korean.

  • โ€”Hardware Used: 1 x NVIDIA A100 80GB
  • โ€”Calibration Dataset: maywell/ko-calibration
  • โ€”Number of Calibration Samples: 512 (Randomly sampled)
  • โ€”Calibration Strategy: Used a Korean dataset(include english) to minimize accuracy degradation in multi-lingual contexts.

๐Ÿ“Š Loss Metrics (Last Layer)

LayerModuleLossDampTime (s)
61selfattn.kproj0.00008831570.0500013.501
61selfattn.qproj0.00011693250.0500013.603
61selfattn.vproj0.00009295580.0500013.684
61selfattn.oproj0.00000565120.050001.266
61mlp.up_proj0.00049547230.050003.865
61mlp.gate_proj0.00049815190.050003.886
61mlp.down_proj0.00000363500.050008.101

๐Ÿš€ Deployment with vLLM

You can easily deploy this model using the vllm-openai Docker image to serve an OpenAI-compatible API.

Run with Docker

bash
docker run --gpus all \
    -v ~/.cache/huggingface:/root/.cache/huggingface \
    -p 8000:8000 \
    --ipc=host \
    vllm/vllm-openai:latest \
    --model nagix999/gemma-3-27b-it-gptq-ko-calibration \
    --served-model-name gemma3-27b-it-gptq
    --quantization gptq_marlin \
    --max-model-len 8192 \
    --dtype bfloat16

Python API Example

python
from openai import OpenAI

client = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")

response = client.chat.completions.create(
    model="gemma3-27b-it-gptq",
    messages=[
        {"role": "system", "content": "You are a helpful assistant."},
        {"role": "user", "content": "ํ•œ๊ตญ์–ด์™€ ์˜์–ด๋กœ LLM์— ๋Œ€ํ•ด ์„ค๋ช…ํ•ด์ค˜."}
    ]
)

print(response.choices[0].message.content)

License

This model is a derivative of google/gemma-3-27b-it and is subject to the Gemma Terms of Use. By downloading or using this model, you agree to the terms and conditions specified by Google.

For more details, please visit the Gemma License Agreement.