Text Generation
Transformers
Safetensors
English
gemma2
gemma
rl-mpq
mixed-precision
quantization
fake-quantization
balanced
text-generation-inference
Instructions to use AvoCahDoe/gemma-2-9b-rlmpq-balanced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AvoCahDoe/gemma-2-9b-rlmpq-balanced with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AvoCahDoe/gemma-2-9b-rlmpq-balanced")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AvoCahDoe/gemma-2-9b-rlmpq-balanced") model = AutoModelForCausalLM.from_pretrained("AvoCahDoe/gemma-2-9b-rlmpq-balanced", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AvoCahDoe/gemma-2-9b-rlmpq-balanced with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AvoCahDoe/gemma-2-9b-rlmpq-balanced" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AvoCahDoe/gemma-2-9b-rlmpq-balanced", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AvoCahDoe/gemma-2-9b-rlmpq-balanced
- SGLang
How to use AvoCahDoe/gemma-2-9b-rlmpq-balanced 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 "AvoCahDoe/gemma-2-9b-rlmpq-balanced" \ --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": "AvoCahDoe/gemma-2-9b-rlmpq-balanced", "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 "AvoCahDoe/gemma-2-9b-rlmpq-balanced" \ --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": "AvoCahDoe/gemma-2-9b-rlmpq-balanced", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AvoCahDoe/gemma-2-9b-rlmpq-balanced with Docker Model Runner:
docker model run hf.co/AvoCahDoe/gemma-2-9b-rlmpq-balanced
RL-MPQ metadata refresh — 2026-06-11T20:42:01.157442
Browse files
README.md
CHANGED
|
@@ -36,6 +36,7 @@ Standalone **RL-MPQ** (Reinforcement Learning Mixed-Precision Quantization) chec
|
|
| 36 |
| **Bit distribution** | `{'4': 39, '8': 3}` |
|
| 37 |
| **Format** | Fake-quant FP16 + `rlmpq_policy.json` |
|
| 38 |
|
|
|
|
| 39 |
|
| 40 |
## Usage
|
| 41 |
|
|
|
|
| 36 |
| **Bit distribution** | `{'4': 39, '8': 3}` |
|
| 37 |
| **Format** | Fake-quant FP16 + `rlmpq_policy.json` |
|
| 38 |
|
| 39 |
+
**Collection:** [RL-MPQ — Gemma 2 9B](https://huggingface.co/collections/AvoCahDoe/rl-mpq-gemma-2-9b-6a2b1d9443205eab61ff447b) — all five scenarios for Gemma 2 9B.
|
| 40 |
|
| 41 |
## Usage
|
| 42 |
|