sunsethunter86 commited on
Commit
b516e0a
·
verified ·
1 Parent(s): 45a99ca

Upload folder using huggingface_hub

Browse files
Files changed (4) hide show
  1. .gitattributes +1 -0
  2. README.md +83 -0
  3. SHA256SUMS +1 -0
  4. gemma-lite-e2b-q2.gguf +3 -0
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ gemma-lite-e2b-q2.gguf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: gemma
3
+ license_link: https://ai.google.dev/gemma/terms
4
+ base_model: google/gemma-3n-E2B-it
5
+ tags:
6
+ - gguf
7
+ - llama.cpp
8
+ - on-device
9
+ - android
10
+ library_name: llama.cpp
11
+ ---
12
+
13
+ # Gemma LITE (E2B) — a smaller dictionary, the same mind
14
+
15
+ A **Model Derivative** of Google's Gemma 3n E2B, made for phones that cannot
16
+ hold the original in memory.
17
+
18
+ **Nothing about the model's reasoning was changed.** All 35 transformer blocks
19
+ are byte-for-byte the quantisation they started as. The only modification is to
20
+ one tensor.
21
+
22
+ ## What was modified
23
+
24
+ `per_layer_token_embd.weight` — requantised from **q6_K to q2_K**.
25
+
26
+ That single tensor is **57% of the original file**: 1,837 MiB of a 3,179 MiB
27
+ model, shaped `[8960, 262144]`. It is a *lookup table* — one row of about 7 KB
28
+ is read per token — and it was being stored at **higher precision than the
29
+ layers that do the reasoning**, every one of which is q4_0.
30
+
31
+ ```
32
+ llama-quantize --allow-requantize \
33
+ --tensor-type per_layer_token_embd=q2_K \
34
+ gemma-3n-E2B-it-q4_0.gguf gemma-lite-e2b-q2.gguf Q4_0
35
+ ```
36
+
37
+ | | file | `per_layer_token_embd` |
38
+ |---|---|---|
39
+ | source (E2B q4_0) | 3.12 GiB | 1,837 MiB (q6_K) |
40
+ | **LITE** | **2.04 GiB** | **735 MiB (q2_K)** |
41
+
42
+ ## Why it exists
43
+
44
+ Measured on a Galaxy S22 Ultra (8 GB): the unmodified model was killed by
45
+ Android's low-memory killer **eleven times**, never finishing load. It needs
46
+ roughly every spare byte the phone has.
47
+
48
+ Measured on a ROG Phone 8 Pro with llama.cpp and OpenCL, 8192 context:
49
+
50
+ | | |
51
+ |---|---|
52
+ | system memory held | **~510 MiB** |
53
+ | unevictable (anonymous) | **0.17 GiB** |
54
+ | prompt eval | **211 tok/s** |
55
+ | generation | **10.7 tok/s** |
56
+
57
+ A ~3,800-token system prompt prefills in about **18 seconds**.
58
+
59
+ ## Quality
60
+
61
+ Auditioned against the unmodified model — same seed, same temperature, same
62
+ 2,400-token character prompt. Both replies were in character and of comparable
63
+ quality; the LITE build was, if anything, more faithful to the prompt's register.
64
+
65
+ ☠️ **This is one sample, not a benchmark.** No perplexity or standardised
66
+ evaluation has been run. q2_K is applied to token embeddings — how the model
67
+ represents word *meaning* — so if you need measured quality, measure it.
68
+
69
+ ## What it cannot do
70
+
71
+ The source GGUF carries **no vision or audio encoder tensors**, so this is a
72
+ **text-only** model. Gemma 3n's image and audio input paths are not present.
73
+
74
+ ## Licence
75
+
76
+ Gemma 3n is provided under and subject to the **Gemma Terms of Use**:
77
+ https://ai.google.dev/gemma/terms
78
+
79
+ This is a **modified** version. The modification is described above and is
80
+ limited to the requantisation of a single tensor. The Gemma Terms, including the
81
+ Prohibited Use Policy, apply to this derivative and to anything derived from it.
82
+
83
+ Base model: `google/gemma-3n-E2B-it`.
SHA256SUMS ADDED
@@ -0,0 +1 @@
 
 
1
+ e1fafaaf73b424e68fe4c81e1951b43944d34f95b68fac6411981bbc16e2d702 gemma-lite-e2b-q2.gguf
gemma-lite-e2b-q2.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1fafaaf73b424e68fe4c81e1951b43944d34f95b68fac6411981bbc16e2d702
3
+ size 2193461216