Commit ·
bfe1dfb
0
Parent(s):
Duplicate from alphastack1/gemma4-llm
Browse filesCo-authored-by: Alphastack <alphastack1@users.noreply.huggingface.co>
- .gitattributes +36 -0
- Gemma4-LLM.zip +3 -0
- README.md +84 -0
- gemma4-llm.apk +3 -0
.gitattributes
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
+
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
+
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
+
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
+
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
| 6 |
+
*.ftz filter=lfs diff=lfs merge=lfs -text
|
| 7 |
+
*.gz filter=lfs diff=lfs merge=lfs -text
|
| 8 |
+
*.h5 filter=lfs diff=lfs merge=lfs -text
|
| 9 |
+
*.joblib filter=lfs diff=lfs merge=lfs -text
|
| 10 |
+
*.lfs.* filter=lfs diff=lfs merge=lfs -text
|
| 11 |
+
*.mlmodel filter=lfs diff=lfs merge=lfs -text
|
| 12 |
+
*.model filter=lfs diff=lfs merge=lfs -text
|
| 13 |
+
*.msgpack filter=lfs diff=lfs merge=lfs -text
|
| 14 |
+
*.npy filter=lfs diff=lfs merge=lfs -text
|
| 15 |
+
*.npz filter=lfs diff=lfs merge=lfs -text
|
| 16 |
+
*.onnx filter=lfs diff=lfs merge=lfs -text
|
| 17 |
+
*.ot filter=lfs diff=lfs merge=lfs -text
|
| 18 |
+
*.parquet filter=lfs diff=lfs merge=lfs -text
|
| 19 |
+
*.pb filter=lfs diff=lfs merge=lfs -text
|
| 20 |
+
*.pickle filter=lfs diff=lfs merge=lfs -text
|
| 21 |
+
*.pkl filter=lfs diff=lfs merge=lfs -text
|
| 22 |
+
*.pt filter=lfs diff=lfs merge=lfs -text
|
| 23 |
+
*.pth filter=lfs diff=lfs merge=lfs -text
|
| 24 |
+
*.rar filter=lfs diff=lfs merge=lfs -text
|
| 25 |
+
*.safetensors filter=lfs diff=lfs merge=lfs -text
|
| 26 |
+
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
| 27 |
+
*.tar.* filter=lfs diff=lfs merge=lfs -text
|
| 28 |
+
*.tar filter=lfs diff=lfs merge=lfs -text
|
| 29 |
+
*.tflite filter=lfs diff=lfs merge=lfs -text
|
| 30 |
+
*.tgz filter=lfs diff=lfs merge=lfs -text
|
| 31 |
+
*.wasm filter=lfs diff=lfs merge=lfs -text
|
| 32 |
+
*.xz 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 |
+
gemma4-llm.apk filter=lfs diff=lfs merge=lfs -text
|
Gemma4-LLM.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8aeb74eebb8d0e2d1094195699a4a490bdcfc1092c794c16232e6fa2317f52c
|
| 3 |
+
size 5054736119
|
README.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pipeline_tag: image-text-to-text
|
| 6 |
+
tags:
|
| 7 |
+
- gemma4
|
| 8 |
+
- gguf
|
| 9 |
+
- llama-cpp
|
| 10 |
+
- offline
|
| 11 |
+
- multimodal
|
| 12 |
+
- vision
|
| 13 |
+
base_model:
|
| 14 |
+
- google/gemma-4-e2b-it
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Gemma4 LLM
|
| 18 |
+
|
| 19 |
+
**Run Google's Gemma 4 locally with vision.** A fully offline AI chat app powered by Gemma 4 E2B — no cloud, no API keys, no accounts.
|
| 20 |
+
|
| 21 |
+
## Downloads
|
| 22 |
+
|
| 23 |
+
| Platform | File | Size |
|
| 24 |
+
|----------|------|------|
|
| 25 |
+
| **Windows** | [Gemma4-LLM.zip](https://huggingface.co/alphastack1/gemma4-llm/resolve/main/Gemma4-LLM.zip) | 5.05 GB |
|
| 26 |
+
| **Android** | [gemma4-llm.apk](https://huggingface.co/alphastack1/gemma4-llm/resolve/main/gemma4-llm.apk) | 4.1 GB |
|
| 27 |
+
|
| 28 |
+
Both bundles include the model, inference engine, and chat UI. Nothing else to install.
|
| 29 |
+
|
| 30 |
+
## About
|
| 31 |
+
|
| 32 |
+
Gemma4 LLM bundles everything needed to run Google's **Gemma 4 E2B** model on your device — the model weights, inference engine, and chat UI are all included.
|
| 33 |
+
|
| 34 |
+
Gemma 4 E2B is **natively multimodal** — it understands both text and images out of the box. This isn't a bolt-on vision module; image understanding is built into the model architecture.
|
| 35 |
+
|
| 36 |
+
- **Natively multimodal**: Text and image understanding built into the model
|
| 37 |
+
- **Fully offline**: No internet connection required after install
|
| 38 |
+
- **GPU accelerated**: Uses CUDA on Windows, CPU on Android (arm64)
|
| 39 |
+
- **Stock llama.cpp**: Built on official [ggml-org/llama.cpp](https://github.com/ggml-org/llama.cpp) release b8683
|
| 40 |
+
|
| 41 |
+
## Model Details
|
| 42 |
+
|
| 43 |
+
| | |
|
| 44 |
+
|---|---|
|
| 45 |
+
| **Base model** | [google/gemma-4-e2b-it](https://huggingface.co/google/gemma-4-e2b-it) |
|
| 46 |
+
| **Architecture** | Mixture-of-Experts (5.1B total, 2.3B active) |
|
| 47 |
+
| **Quantization** | Q4_K_M (GGUF) via [unsloth](https://huggingface.co/unsloth/gemma-4-E2B-it-GGUF) |
|
| 48 |
+
| **Model file** | gemma-4-E2B-it-Q4_K_M.gguf (2.96 GB) |
|
| 49 |
+
| **Image encoder** | mmproj-F16.gguf (940 MB) — part of Gemma 4's native vision architecture |
|
| 50 |
+
| **License** | Apache 2.0 |
|
| 51 |
+
|
| 52 |
+
## Windows
|
| 53 |
+
|
| 54 |
+
1. Download and extract `Gemma4-LLM.zip`
|
| 55 |
+
2. Double-click `Gemma4-LLM.exe` — a native window opens with the chat UI
|
| 56 |
+
3. The model loads automatically on startup
|
| 57 |
+
|
| 58 |
+
The zip contains the EXE and a `models/` folder side by side. Bundles CUDA runtime for GPU acceleration — falls back to CPU if no GPU is available.
|
| 59 |
+
|
| 60 |
+
## Android
|
| 61 |
+
|
| 62 |
+
1. Download `gemma4-llm.apk`
|
| 63 |
+
2. Enable "Install from unknown sources" in Settings
|
| 64 |
+
3. Install and open — first launch extracts the model (~3 min)
|
| 65 |
+
|
| 66 |
+
Requirements:
|
| 67 |
+
- Android 9+ with arm64 (64-bit) processor
|
| 68 |
+
- 8+ GB RAM recommended
|
| 69 |
+
- Runs as a foreground service with status notification
|
| 70 |
+
- Model is bundled inside the APK (split into chunks, reassembled on first launch)
|
| 71 |
+
|
| 72 |
+
## Technical Details
|
| 73 |
+
|
| 74 |
+
- **Inference**: llama.cpp server running locally on port 8080
|
| 75 |
+
- **Context length**: 4096 tokens (mobile), 8192 tokens (desktop)
|
| 76 |
+
- **KV cache**: q8_0 quantized for reduced memory usage
|
| 77 |
+
- **Android**: 4 threads on big cores, WebView UI
|
| 78 |
+
- **Windows**: PyWebView (Edge/Chromium), Flask backend
|
| 79 |
+
|
| 80 |
+
## Credits
|
| 81 |
+
|
| 82 |
+
- [Google](https://ai.google.dev/gemma) for the Gemma 4 model family
|
| 83 |
+
- [ggml-org/llama.cpp](https://github.com/ggml-org/llama.cpp) for the inference engine
|
| 84 |
+
- [unsloth](https://huggingface.co/unsloth) for GGUF quantizations
|
gemma4-llm.apk
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f44f396f35bbdd8f5ed328a50157dcd86f33271c4b79b0ac95d36415a9595517
|
| 3 |
+
size 4104992408
|