Instructions to use majentik/gemma-4-31B-RotorQuant-AWQ-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use majentik/gemma-4-31B-RotorQuant-AWQ-8bit with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="majentik/gemma-4-31B-RotorQuant-AWQ-8bit")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("majentik/gemma-4-31B-RotorQuant-AWQ-8bit", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use majentik/gemma-4-31B-RotorQuant-AWQ-8bit with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "majentik/gemma-4-31B-RotorQuant-AWQ-8bit" # 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-31B-RotorQuant-AWQ-8bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/majentik/gemma-4-31B-RotorQuant-AWQ-8bit
- SGLang
How to use majentik/gemma-4-31B-RotorQuant-AWQ-8bit 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-31B-RotorQuant-AWQ-8bit" \ --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-31B-RotorQuant-AWQ-8bit", "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-31B-RotorQuant-AWQ-8bit" \ --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-31B-RotorQuant-AWQ-8bit", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use majentik/gemma-4-31B-RotorQuant-AWQ-8bit with Docker Model Runner:
docker model run hf.co/majentik/gemma-4-31B-RotorQuant-AWQ-8bit
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-31B
|
| 4 |
tags:
|
| 5 |
-
- awq
|
| 6 |
-
- rotorquant
|
| 7 |
-
- kv-cache-quantization
|
| 8 |
-
- gemma
|
| 9 |
-
- gemma4
|
| 10 |
-
- quantized
|
| 11 |
-
- 8bit
|
| 12 |
library_name: transformers
|
| 13 |
pipeline_tag: image-text-to-text
|
| 14 |
-
language:
|
| 15 |
-
- en
|
| 16 |
---
|
| 17 |
|
| 18 |
# Gemma 4 31B - RotorQuant AWQ 8-bit
|
|
@@ -130,3 +128,37 @@ Best deployed on server-class GPUs (A100 40/80GB, L40S, H100) or dual RTX 4090 w
|
|
| 130 |
- [llama-cpp-turboquant fork](https://github.com/johndpope/llama-cpp-turboquant/tree/feature/planarquant-kv-cache)
|
| 131 |
- [AutoAWQ](https://github.com/casper-hansen/AutoAWQ)
|
| 132 |
- [vLLM](https://github.com/vllm-project/vllm)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
base_model: google/gemma-4-31B
|
| 4 |
tags:
|
| 5 |
+
- awq
|
| 6 |
+
- rotorquant
|
| 7 |
+
- kv-cache-quantization
|
| 8 |
+
- gemma
|
| 9 |
+
- gemma4
|
| 10 |
+
- quantized
|
| 11 |
+
- 8bit
|
| 12 |
library_name: transformers
|
| 13 |
pipeline_tag: image-text-to-text
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
|
| 16 |
# Gemma 4 31B - RotorQuant AWQ 8-bit
|
|
|
|
| 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)
|
| 131 |
+
|
| 132 |
+
## Quant trade-off (AWQ lane)
|
| 133 |
+
|
| 134 |
+
| Bits | Approx size | Use case | Recommendation |
|
| 135 |
+
|---|---|---|---|
|
| 136 |
+
| 4-bit | ~13 GB | Activation-aware 4-bit weight quant | GPU inference (vLLM, transformers, AutoAWQ) |
|
| 137 |
+
| **8-bit** | ~24 GB | Activation-aware 8-bit weight quant | **Quality-sensitive GPU inference** |
|
| 138 |
+
|
| 139 |
+
(Current variant — **8bit** — is bolded.)
|
| 140 |
+
|
| 141 |
+
## Variants in this family
|
| 142 |
+
|
| 143 |
+
(Showing 18 sibling variants under `majentik/gemma4-31b-*`. The current variant — `RotorQuant-AWQ-8bit` — is **bolded**.)
|
| 144 |
+
|
| 145 |
+
| Variant | Runtime | Approx size | Use case |
|
| 146 |
+
|---|---|---|---|
|
| 147 |
+
| [RotorQuant](https://huggingface.co/majentik/gemma4-31b-rotorquant) | runtime modifier | n/a | KV-cache root (weight-agnostic) |
|
| 148 |
+
| [RotorQuant-AWQ-4bit](https://huggingface.co/majentik/gemma4-31b-rotorquant-awq-4bit) | transformers | ~19 GB | GPU 4-bit (AutoAWQ) |
|
| 149 |
+
| **RotorQuant-AWQ-8bit** | transformers | ~34 GB | GPU 8-bit (AutoAWQ) |
|
| 150 |
+
| [RotorQuant-GGUF-IQ4_XS](https://huggingface.co/majentik/gemma4-31b-rotorquant-gguf-IQ4_XS) | llama.cpp | ~27 GB | Lossy 4-bit, low-RAM CPU/edge |
|
| 151 |
+
| [RotorQuant-GGUF-Q2_K](https://huggingface.co/majentik/gemma4-31b-rotorquant-gguf-Q2_K) | llama.cpp | ~19 GB | Lossy, low-RAM CPU/edge |
|
| 152 |
+
| [RotorQuant-GGUF-Q3_K_M](https://huggingface.co/majentik/gemma4-31b-rotorquant-gguf-Q3_K_M) | llama.cpp | ~24 GB | Smaller 3-bit, CPU-friendly |
|
| 153 |
+
| [RotorQuant-GGUF-Q4_K_M](https://huggingface.co/majentik/gemma4-31b-rotorquant-gguf-Q4_K_M) | llama.cpp | ~34 GB | Balanced default |
|
| 154 |
+
| [RotorQuant-GGUF-Q5_K_M](https://huggingface.co/majentik/gemma4-31b-rotorquant-gguf-Q5_K_M) | llama.cpp | ~41 GB | Higher fidelity, more RAM |
|
| 155 |
+
| [RotorQuant-GGUF-Q8_0](https://huggingface.co/majentik/gemma4-31b-rotorquant-gguf-Q8_0) | llama.cpp | ~65 GB | Near-lossless reference |
|
| 156 |
+
| [RotorQuant-MLX-2bit](https://huggingface.co/majentik/gemma4-31b-rotorquant-mlx-2bit) | mlx-lm | ~9.9 GB | Apple Silicon, smallest |
|
| 157 |
+
| [RotorQuant-MLX-4bit](https://huggingface.co/majentik/gemma4-31b-rotorquant-mlx-4bit) | mlx-lm | ~19 GB | Apple Silicon balanced |
|
| 158 |
+
| [RotorQuant-MLX-8bit](https://huggingface.co/majentik/gemma4-31b-rotorquant-mlx-8bit) | mlx-lm | ~37 GB | Apple Silicon reference |
|
| 159 |
+
| [TurboQuant](https://huggingface.co/majentik/gemma4-31b-turboquant) | runtime modifier | n/a | KV-cache root (weight-agnostic) |
|
| 160 |
+
| [TurboQuant-AWQ-4bit](https://huggingface.co/majentik/gemma4-31b-turboquant-awq-4bit) | transformers | ~19 GB | GPU 4-bit (AutoAWQ) |
|
| 161 |
+
| [TurboQuant-AWQ-8bit](https://huggingface.co/majentik/gemma4-31b-turboquant-awq-8bit) | transformers | ~34 GB | GPU 8-bit (AutoAWQ) |
|
| 162 |
+
| [TurboQuant-MLX-2bit](https://huggingface.co/majentik/gemma4-31b-turboquant-mlx-2bit) | mlx-lm | ~9.9 GB | Apple Silicon, smallest |
|
| 163 |
+
| [TurboQuant-MLX-4bit](https://huggingface.co/majentik/gemma4-31b-turboquant-mlx-4bit) | mlx-lm | ~19 GB | Apple Silicon balanced |
|
| 164 |
+
| [TurboQuant-MLX-8bit](https://huggingface.co/majentik/gemma4-31b-turboquant-mlx-8bit) | mlx-lm | ~37 GB | Apple Silicon reference |
|