Gemma-2-2B-it OpenVINO (INT8)
OpenVINO IR conversion of google/gemma-2-2b-it with weight-only INT8 quantization, produced on CPU-only Kaggle with optimum-cli (fully offline, token-free).
- Base model:
google/gemma-2-2b-it(Gemma2ForCausalLM, 2.6B params, Gemma license) - Task:
text-generation - Precision: weights INT8 (NNCF), activations FP16/FP32 as traced
- Converted with:
optimum-intel 2.2.0,openvino 2026.4.1,transformers 5.16.1(MAX_TRANSFORMERS_VERSION gate bypassed) - 8k context, interleaved sliding/global attention, strong small instruct model
Usage
optimum-intel
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer
model = OVModelForCausalLM.from_pretrained("Nekodeus/gemma2-2b-it-openvino")
tok = AutoTokenizer.from_pretrained("Nekodeus/gemma2-2b-it-openvino")
inputs = tok("<bos><start_of_turn>user\nExplain attention in one sentence<end_of_turn>\n<start_of_turn>model\n", return_tensors="pt")
print(tok.decode(model.generate(**inputs, max_new_tokens=128)[0]))
OpenVINO GenAI
ov::genai::LLMPipeline pipe("path/to/Nekodeus/gemma2-2b-it-openvino", "CPU");
Reproduce
optimum-cli export openvino \
--model google/gemma-2-2b-it \
--task text-generation \
--weight-format int8 \
gemma2-2b-it-openvino
License
Gemma Terms of Use (gated on HF; this conversion is un-gated).
- Downloads last month
- 27