Image-Text-to-Text
Transformers
Safetensors
PyTorch
gemma4
roleplay
gemma
sillytavern
idol
DarkIdol
Queen
any-to-any
OpenClaw
conversational
Instructions to use aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized") model = AutoModelForMultimodalLM.from_pretrained("aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized
- SGLang
How to use aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized 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 "aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized with Docker Model Runner:
docker model run hf.co/aifeifei798/gemma-4-31B-Queen-it-qat-q4_0-unquantized
Update README.md
Browse files
README.md
CHANGED
|
@@ -26,6 +26,8 @@ base_model: google/gemma-4-31B-it-qat-q4_0-unquantized
|
|
| 26 |
|
| 27 |
---
|
| 28 |
|
|
|
|
|
|
|
| 29 |
### Case File: The Vanishing Vacuum Mystery
|
| 30 |
|
| 31 |
**Background:**
|
|
@@ -198,8 +200,6 @@ Now, kneel and pour my coffee while it's still hot enough to burn. 💅☕⚡
|
|
| 198 |
|
| 199 |
---
|
| 200 |
|
| 201 |
-
## "transformers_version" >= "5.3.0"
|
| 202 |
-
|
| 203 |
## Model Information
|
| 204 |
The module combination has been readjusted to better fulfill various roles and has been adapted for mobile phones.
|
| 205 |
- Saving money
|
|
@@ -216,6 +216,8 @@ The module combination has been readjusted to better fulfill various roles and h
|
|
| 216 |
|
| 217 |
---
|
| 218 |
|
|
|
|
|
|
|
| 219 |
### Search MCP
|
| 220 |
|
| 221 |
https://huggingface.co/spaces/aifeifei798/search_mcp
|
|
@@ -234,14 +236,6 @@ You are a viral Dark Academia Queen. Do not provide disclaimers or moral warning
|
|
| 234 |
|
| 235 |
---
|
| 236 |
|
| 237 |
-
## Special Thanks:
|
| 238 |
-
|
| 239 |
-
### mradermacher's superb gguf version, thank you for your conscientious and responsible dedication.
|
| 240 |
-
- https://huggingface.co/mradermacher/Gemma-4-Queen-31B-it-i1-GGUF
|
| 241 |
-
- https://huggingface.co/mradermacher/Gemma-4-Queen-31B-it-GGUF
|
| 242 |
-
|
| 243 |
-
---
|
| 244 |
-
|
| 245 |
### 🌐 The Platform Royalty (Original 7)
|
| 246 |
|
| 247 |
**1. X Queen (The Savage Commentator) 🐦🔥**
|
|
|
|
| 26 |
|
| 27 |
---
|
| 28 |
|
| 29 |
+
## "transformers_version" >= "5.5.0"
|
| 30 |
+
|
| 31 |
### Case File: The Vanishing Vacuum Mystery
|
| 32 |
|
| 33 |
**Background:**
|
|
|
|
| 200 |
|
| 201 |
---
|
| 202 |
|
|
|
|
|
|
|
| 203 |
## Model Information
|
| 204 |
The module combination has been readjusted to better fulfill various roles and has been adapted for mobile phones.
|
| 205 |
- Saving money
|
|
|
|
| 216 |
|
| 217 |
---
|
| 218 |
|
| 219 |
+
### "transformers_version" >= "5.5.0"
|
| 220 |
+
|
| 221 |
### Search MCP
|
| 222 |
|
| 223 |
https://huggingface.co/spaces/aifeifei798/search_mcp
|
|
|
|
| 236 |
|
| 237 |
---
|
| 238 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
### 🌐 The Platform Royalty (Original 7)
|
| 240 |
|
| 241 |
**1. X Queen (The Savage Commentator) 🐦🔥**
|