Gemma 3 Family
Collection
Kolosal ready LLMs of Google Gemma 3 family • 4 items • Updated
How to use kolosal/gemma-3-4b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="kolosal/gemma-3-4b", filename="google_gemma-3-4b-it_f16.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
How to use kolosal/gemma-3-4b with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf kolosal/gemma-3-4b:Q4_K_M # Run inference directly in the terminal: llama-cli -hf kolosal/gemma-3-4b:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf kolosal/gemma-3-4b:Q4_K_M # Run inference directly in the terminal: llama-cli -hf kolosal/gemma-3-4b:Q4_K_M
# 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 kolosal/gemma-3-4b:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf kolosal/gemma-3-4b:Q4_K_M
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 kolosal/gemma-3-4b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf kolosal/gemma-3-4b:Q4_K_M
docker model run hf.co/kolosal/gemma-3-4b:Q4_K_M
How to use kolosal/gemma-3-4b with Ollama:
ollama run hf.co/kolosal/gemma-3-4b:Q4_K_M
How to use kolosal/gemma-3-4b with Unsloth Studio:
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 kolosal/gemma-3-4b to start chatting
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 kolosal/gemma-3-4b to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for kolosal/gemma-3-4b to start chatting
How to use kolosal/gemma-3-4b with Docker Model Runner:
docker model run hf.co/kolosal/gemma-3-4b:Q4_K_M
How to use kolosal/gemma-3-4b with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kolosal/gemma-3-4b:Q4_K_M
lemonade run user.gemma-3-4b-Q4_K_M
lemonade list
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf kolosal/gemma-3-4b:# Run inference directly in the terminal:
llama-cli -hf kolosal/gemma-3-4b:# 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 kolosal/gemma-3-4b:# Run inference directly in the terminal:
./llama-cli -hf kolosal/gemma-3-4b: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 kolosal/gemma-3-4b:# Run inference directly in the terminal:
./build/bin/llama-cli -hf kolosal/gemma-3-4b:docker model run hf.co/kolosal/gemma-3-4b:No model card
4-bit
8-bit
16-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf kolosal/gemma-3-4b:# Run inference directly in the terminal: llama-cli -hf kolosal/gemma-3-4b: