thanglq150188 commited on
Commit
abeffc1
·
verified ·
1 Parent(s): 544db01

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ base_model: principled-intelligence/gemma-4-E4B-it-text-only
4
+ language:
5
+ - en
6
+ - vi
7
+ tags:
8
+ - gguf
9
+ - llama.cpp
10
+ - gemma4
11
+ - vocab-pruned
12
+ pipeline_tag: text-generation
13
+ ---
14
+
15
+ # Gemma-4 E4B (EN+VI vocab-pruned) — Q8_0 GGUF
16
+
17
+ Vocabulary-pruned build of [principled-intelligence/gemma-4-E4B-it-text-only](https://huggingface.co/principled-intelligence/gemma-4-E4B-it-text-only): the token vocabulary is reduced to 69,246 entries covering English + Vietnamese, shrinking the embedding/LM-head so the q8_0 model fits comfortably on a 12 GB consumer GPU.
18
+
19
+ - **Format**: GGUF, `q8_0` (5.2 GB)
20
+ - **Architecture**: Gemma-4 E4B text-only — 42 layers, hidden 2560, per-layer input embeddings, sliding+full hybrid attention
21
+ - **Vocab**: 69,246 (EN+VI pruned; original tokenizer entries outside the keep-set removed)
22
+ - **Context**: 131,072 tokens
23
+ - **Chat template**: Gemma-4 `<|turn>` format — use the bundled `gemma4_chat.jinja` (do not use the default Gemma 3 template)
24
+
25
+ ## Serving with llama.cpp
26
+
27
+ ```bash
28
+ llama-server -m gemma4-e4b-envi-pruned-q8_0.gguf \
29
+ --host 0.0.0.0 --port 8080 -ngl 99 -c 131072 -np 16 \
30
+ -fa on --cache-reuse 256 --jinja \
31
+ --chat-template-file gemma4_chat.jinja
32
+ ```
33
+
34
+ On an RTX 3060 12 GB this serves at roughly 60 tok/s single-stream.
35
+
36
+ ## Caveats
37
+
38
+ - Text-only (vision tower removed in the upstream text-only base).
39
+ - Because the vocab is pruned, tokenization of languages other than English/Vietnamese degrades (unknown tokens fall back to byte pieces).
40
+ - Requires the bundled chat template; Gemma-3-style `start_of_turn` templates will not work.