Instructions to use majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit
- SGLang
How to use majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit with Docker Model Runner:
docker model run hf.co/majentik/gemma-4-E2B-it-RotorQuant-AWQ-4bit
docs: Tier 2 polish — variant matrix + quant trade-off
Browse files
README.md
CHANGED
|
@@ -2,17 +2,15 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: google/gemma-4-E2B-it
|
| 4 |
tags:
|
| 5 |
-
- awq
|
| 6 |
-
- rotorquant
|
| 7 |
-
- kv-cache-quantization
|
| 8 |
-
- gemma
|
| 9 |
-
- gemma4
|
| 10 |
-
- quantized
|
| 11 |
-
- 4bit
|
| 12 |
library_name: transformers
|
| 13 |
pipeline_tag: image-text-to-text
|
| 14 |
-
language:
|
| 15 |
-
- en
|
| 16 |
---
|
| 17 |
|
| 18 |
# Gemma 4 E2B-it - RotorQuant AWQ 4-bit
|
|
@@ -128,3 +126,37 @@ Fits comfortably on entry-level GPUs (RTX 3050 / 4060 / A2000 and up).
|
|
| 128 |
- [llama-cpp-turboquant fork](https://github.com/johndpope/llama-cpp-turboquant/tree/feature/planarquant-kv-cache)
|
| 129 |
- [AutoAWQ](https://github.com/casper-hansen/AutoAWQ)
|
| 130 |
- [vLLM](https://github.com/vllm-project/vllm)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: google/gemma-4-E2B-it
|
| 4 |
tags:
|
| 5 |
+
- awq
|
| 6 |
+
- rotorquant
|
| 7 |
+
- kv-cache-quantization
|
| 8 |
+
- gemma
|
| 9 |
+
- gemma4
|
| 10 |
+
- quantized
|
| 11 |
+
- 4bit
|
| 12 |
library_name: transformers
|
| 13 |
pipeline_tag: image-text-to-text
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# Gemma 4 E2B-it - RotorQuant AWQ 4-bit
|
|
|
|
| 126 |
- [llama-cpp-turboquant fork](https://github.com/johndpope/llama-cpp-turboquant/tree/feature/planarquant-kv-cache)
|
| 127 |
- [AutoAWQ](https://github.com/casper-hansen/AutoAWQ)
|
| 128 |
- [vLLM](https://github.com/vllm-project/vllm)
|
| 129 |
+
|
| 130 |
+
## Quant trade-off (AWQ lane)
|
| 131 |
+
|
| 132 |
+
| Bits | Approx size | Use case | Recommendation |
|
| 133 |
+
|---|---|---|---|
|
| 134 |
+
| **4-bit** | ~860 MB | Activation-aware 4-bit weight quant | **GPU inference (vLLM, transformers, AutoAWQ)** |
|
| 135 |
+
| 8-bit | ~1.5 GB | Activation-aware 8-bit weight quant | Quality-sensitive GPU inference |
|
| 136 |
+
|
| 137 |
+
(Current variant — **4bit** — is bolded.)
|
| 138 |
+
|
| 139 |
+
## Variants in this family
|
| 140 |
+
|
| 141 |
+
(Showing 18 sibling variants under `majentik/gemma4-e2b-it-*`. The current variant — `RotorQuant-AWQ-4bit` — is **bolded**.)
|
| 142 |
+
|
| 143 |
+
| Variant | Runtime | Approx size | Use case |
|
| 144 |
+
|---|---|---|---|
|
| 145 |
+
| [RotorQuant](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant) | runtime modifier | n/a | KV-cache root (weight-agnostic) |
|
| 146 |
+
| **RotorQuant-AWQ-4bit** | transformers | ~1.2 GB | GPU 4-bit (AutoAWQ) |
|
| 147 |
+
| [RotorQuant-AWQ-8bit](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-awq-8bit) | transformers | ~2.2 GB | GPU 8-bit (AutoAWQ) |
|
| 148 |
+
| [RotorQuant-GGUF-IQ4_XS](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-gguf-IQ4_XS) | llama.cpp | ~1.7 GB | Lossy 4-bit, low-RAM CPU/edge |
|
| 149 |
+
| [RotorQuant-GGUF-Q2_K](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-gguf-Q2_K) | llama.cpp | ~1.2 GB | Lossy, low-RAM CPU/edge |
|
| 150 |
+
| [RotorQuant-GGUF-Q3_K_M](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-gguf-Q3_K_M) | llama.cpp | ~1.6 GB | Smaller 3-bit, CPU-friendly |
|
| 151 |
+
| [RotorQuant-GGUF-Q4_K_M](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-gguf-Q4_K_M) | llama.cpp | ~2.2 GB | Balanced default |
|
| 152 |
+
| [RotorQuant-GGUF-Q5_K_M](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-gguf-Q5_K_M) | llama.cpp | ~2.6 GB | Higher fidelity, more RAM |
|
| 153 |
+
| [RotorQuant-GGUF-Q8_0](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-gguf-Q8_0) | llama.cpp | ~4.2 GB | Near-lossless reference |
|
| 154 |
+
| [RotorQuant-MLX-2bit](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-mlx-2bit) | mlx-lm | ~655 MB | Apple Silicon, smallest |
|
| 155 |
+
| [RotorQuant-MLX-4bit](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-mlx-4bit) | mlx-lm | ~1.2 GB | Apple Silicon balanced |
|
| 156 |
+
| [RotorQuant-MLX-8bit](https://huggingface.co/majentik/gemma4-e2b-it-rotorquant-mlx-8bit) | mlx-lm | ~2.4 GB | Apple Silicon reference |
|
| 157 |
+
| [TurboQuant](https://huggingface.co/majentik/gemma4-e2b-it-turboquant) | runtime modifier | n/a | KV-cache root (weight-agnostic) |
|
| 158 |
+
| [TurboQuant-AWQ-4bit](https://huggingface.co/majentik/gemma4-e2b-it-turboquant-awq-4bit) | transformers | ~1.2 GB | GPU 4-bit (AutoAWQ) |
|
| 159 |
+
| [TurboQuant-AWQ-8bit](https://huggingface.co/majentik/gemma4-e2b-it-turboquant-awq-8bit) | transformers | ~2.2 GB | GPU 8-bit (AutoAWQ) |
|
| 160 |
+
| [TurboQuant-MLX-2bit](https://huggingface.co/majentik/gemma4-e2b-it-turboquant-mlx-2bit) | mlx-lm | ~655 MB | Apple Silicon, smallest |
|
| 161 |
+
| [TurboQuant-MLX-4bit](https://huggingface.co/majentik/gemma4-e2b-it-turboquant-mlx-4bit) | mlx-lm | ~1.2 GB | Apple Silicon balanced |
|
| 162 |
+
| [TurboQuant-MLX-8bit](https://huggingface.co/majentik/gemma4-e2b-it-turboquant-mlx-8bit) | mlx-lm | ~2.4 GB | Apple Silicon reference |
|