Instructions to use google/gemma-3-27b-it-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-it-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-it-qat-q4_0-gguf", filename="gemma-3-27b-it-q4_0.gguf", )
llm.create_chat_completion( 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" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use google/gemma-3-27b-it-qat-q4_0-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: llama-cli -hf google/gemma-3-27b-it-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-server -hf google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: llama-cli -hf google/gemma-3-27b-it-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-it-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf google/gemma-3-27b-it-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-it-qat-q4_0-gguf:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0
Use Docker
docker model run hf.co/google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0
- LM Studio
- Jan
- vLLM
How to use google/gemma-3-27b-it-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-it-qat-q4_0-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "google/gemma-3-27b-it-qat-q4_0-gguf", "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/google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0
- Ollama
How to use google/gemma-3-27b-it-qat-q4_0-gguf with Ollama:
ollama run hf.co/google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0
- Unsloth Studio
How to use google/gemma-3-27b-it-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-it-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-it-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-it-qat-q4_0-gguf to start chatting
- Atomic Chat new
- Docker Model Runner
How to use google/gemma-3-27b-it-qat-q4_0-gguf with Docker Model Runner:
docker model run hf.co/google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0
- Lemonade
How to use google/gemma-3-27b-it-qat-q4_0-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull google/gemma-3-27b-it-qat-q4_0-gguf:Q4_0
Run and chat with the model
lemonade run user.gemma-3-27b-it-qat-q4_0-gguf-Q4_0
List all available models
lemonade list
Run on Ollama problem
Thank you for this release :)
Have a problem to run it on ollama, using both suggestions (run with cli login and ssh) get
Error: pull model manifest: 401: {"error":"Invalid username or password."}
Have access granted to model.
Thank you for this release :)
Have a problem to run it on ollama, using both suggestions (run with cli login and ssh) get
Error: pull model manifest: 401: {"error":"Invalid username or password."}Have access granted to model.
https://huggingface.co/docs/hub/en/ollama#run-private-ggufs-from-the-hugging-face-hub
Run Private GGUFs from the Hugging Face Hub
You can run private GGUFs from your personal account or from an associated organisation account in two simple steps:
Copy your Ollama SSH key, you can do so via: cat ~/.ollama/id_ed25519.pub | pbcopy
Add the corresponding key to your Hugging Face account by going to your account settings and clicking on Add new SSH key.
That’s it! You can now run private GGUFs from the Hugging Face Hub: ollama run hf.co/{username}/{repository}.
Thank you! Did this but still failed.
Same here. I followed all the instructions, was granted access to the repo, created an access token for that repo with the appropriate permissions and nothing worked. I'm on windows and am trying to download it via Ollama.
Solved! There are 2 different .pub (on Linux)
https://github.com/ollama/ollama/issues/1207#issuecomment-1819938801
Hi @Sagicc ,
Could you please confirm if this issue is resolved for you with the above comment ? Please feel free to close the issue if it is resolved.
Thank you.
Yes. Confirmed. Thank you!