Instructions to use google/gemma-3-27b-pt-qat-q4_0-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="google/gemma-3-27b-pt-qat-q4_0-gguf", filename="gemma-3-27b-pt-q4_0.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: llama cli -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: llama cli -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
Use Docker
docker model run hf.co/google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
- LM Studio
- Jan
- vLLM
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "google/gemma-3-27b-pt-qat-q4_0-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "google/gemma-3-27b-pt-qat-q4_0-gguf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
- Ollama
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with Ollama:
ollama run hf.co/google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
- Unsloth Studio
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for google/gemma-3-27b-pt-qat-q4_0-gguf to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for google/gemma-3-27b-pt-qat-q4_0-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for google/gemma-3-27b-pt-qat-q4_0-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with Docker Model Runner:
docker model run hf.co/google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
- Lemonade
How to use google/gemma-3-27b-pt-qat-q4_0-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull google/gemma-3-27b-pt-qat-q4_0-gguf:Q4_0
Run and chat with the model
lemonade run user.gemma-3-27b-pt-qat-q4_0-gguf-Q4_0
List all available models
lemonade list
Link to QAT Instruction Tuned model broken
In the model card, you provide this link to the instruct tuned version of this model: https://huggingface.co/google/gemma-3-27b-pt-qat-q4_0-gguf/blob/main/hf.co/google/gemma-3-27b-it-qat-q4_0-gguf
But the link appears to be dead, I get a 404
Can confirm, the link is broken for LMstudio. Manual download works though. The links of the IT is broken too
how to download manualy to lmstudia?
@Andriyy you have to click the right quant green q4_0 button to open the details on the right. In the upper right corner of that is a download button.
Once you download the model you have to put it into your LMStudio folder, which you will find in the LMstudio Settings (Developer mode).
For it to work in vLLM you may need a config from another hugging face repo though.
EDIT: they fixed the link, LMstudio workes now
Thanks @nils-rethmeier ,
@jackatparallel , Could you please confirm if the issue is resolved or are you still encountering the same issue? Thank you.
Can't download (in browser). It just will download an empty file.
FWIW, the download issue I had was with Safari; no probs with FF.