Nekodeus commited on
Commit
bc53834
·
verified ·
1 Parent(s): a3f6b4b

add README.md

Browse files
Files changed (1) hide show
  1. README.md +55 -0
README.md ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ library_name: openvino
4
+ tags:
5
+ - openvino
6
+ - int8
7
+ - text-generation
8
+ - codegemma
9
+ - code
10
+ - llm
11
+ ---
12
+
13
+ # CodeGemma-7B-it OpenVINO (INT8)
14
+
15
+ OpenVINO IR conversion of [google/codegemma-7b-it](https://huggingface.co/google/codegemma-7b-it) with weight-only INT8 quantization, produced on CPU-only Kaggle with `optimum-cli` (fully offline, token-free).
16
+
17
+ - Base model: `google/codegemma-7b-it` (GemmaForCausalLM, 8.5B params, Gemma license)
18
+ - Task: `text-generation`
19
+ - Precision: weights INT8 (NNCF), activations FP16/FP32 as traced
20
+ - Converted with: `optimum-intel 2.2.0`, `openvino 2026.4.1`, `transformers 5.16.1`
21
+ - Instruction-tuned code model (Gemma-1B coder head on Gemma-7B base), 8k context, Python/program synthesis
22
+
23
+ ## Usage
24
+
25
+ ### optimum-intel
26
+
27
+ ```python
28
+ from optimum.intel import OVModelForCausalLM
29
+ from transformers import AutoTokenizer
30
+
31
+ model = OVModelForCausalLM.from_pretrained("Nekodeus/codegemma-7b-it-openvino")
32
+ tok = AutoTokenizer.from_pretrained("Nekodeus/codegemma-7b-it-openvino")
33
+ inputs = tok("<start_of_turn>user\nWrite a Python function to reverse a string<end_of_turn>\n<start_of_turn>model\n", return_tensors="pt")
34
+ print(tok.decode(model.generate(**inputs, max_new_tokens=256)[0]))
35
+ ```
36
+
37
+ ### OpenVINO GenAI
38
+
39
+ ```cpp
40
+ ov::genai::LLMPipeline pipe("path/to/Nekodeus/codegemma-7b-it-openvino", "CPU");
41
+ ```
42
+
43
+ ## Reproduce
44
+
45
+ ```bash
46
+ optimum-cli export openvino \
47
+ --model google/codegemma-7b-it \
48
+ --task text-generation \
49
+ --weight-format int8 \
50
+ codegemma-7b-it-openvino
51
+ ```
52
+
53
+ ## License
54
+
55
+ Gemma Terms of Use (gated on HF; this conversion is un-gated).