Instructions to use cortexso/gemma3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cortexso/gemma3 with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cortexso/gemma3", filename="gemma-3-12b-it-q2_k.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use cortexso/gemma3 with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/gemma3:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/gemma3:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/gemma3:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/gemma3:Q4_K_M
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 cortexso/gemma3:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cortexso/gemma3:Q4_K_M
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 cortexso/gemma3:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cortexso/gemma3:Q4_K_M
Use Docker
docker model run hf.co/cortexso/gemma3:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cortexso/gemma3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cortexso/gemma3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "cortexso/gemma3", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cortexso/gemma3:Q4_K_M
- Ollama
How to use cortexso/gemma3 with Ollama:
ollama run hf.co/cortexso/gemma3:Q4_K_M
- Unsloth Studio new
How to use cortexso/gemma3 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 cortexso/gemma3 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 cortexso/gemma3 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cortexso/gemma3 to start chatting
- Docker Model Runner
How to use cortexso/gemma3 with Docker Model Runner:
docker model run hf.co/cortexso/gemma3:Q4_K_M
- Lemonade
How to use cortexso/gemma3 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cortexso/gemma3:Q4_K_M
Run and chat with the model
lemonade run user.gemma3-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- gemma-3-1b-it-q2_k.gguf +3 -0
- gemma-3-1b-it-q3_k_l.gguf +3 -0
- gemma-3-1b-it-q3_k_m.gguf +3 -0
- gemma-3-1b-it-q3_k_s.gguf +3 -0
- gemma-3-1b-it-q4_k_m.gguf +3 -0
- gemma-3-1b-it-q4_k_s.gguf +3 -0
- gemma-3-1b-it-q5_k_m.gguf +3 -0
- gemma-3-1b-it-q5_k_s.gguf +3 -0
- gemma-3-1b-it-q6_k.gguf +3 -0
- gemma-3-1b-it-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -53,3 +53,13 @@ gemma-3-12b-it-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
|
| 53 |
gemma-3-12b-it-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
gemma-3-12b-it-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 55 |
gemma-3-12b-it-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
gemma-3-12b-it-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 54 |
gemma-3-12b-it-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 55 |
gemma-3-12b-it-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 56 |
+
gemma-3-1b-it-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 57 |
+
gemma-3-1b-it-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 58 |
+
gemma-3-1b-it-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 59 |
+
gemma-3-1b-it-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
gemma-3-1b-it-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
gemma-3-1b-it-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
gemma-3-1b-it-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
gemma-3-1b-it-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
gemma-3-1b-it-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
gemma-3-1b-it-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
gemma-3-1b-it-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:12925c9f9223d8260eaee4cbeb9c8bc20144f44c20f178b33d4cd090d9178350
|
| 3 |
+
size 689814432
|
gemma-3-1b-it-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:753faad5fca8c457fc15c0c773be2db990fc5ccc13c38122fc0c4024668ee88f
|
| 3 |
+
size 751575456
|
gemma-3-1b-it-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5ad42928461f4020df34d61c6d6837894aca36a5117ae713c9983e77a4757e26
|
| 3 |
+
size 722416032
|
gemma-3-1b-it-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2f845a0beb9b60eba43af01a40c3556e9641a9c92866ca9597db656c3cb0e038
|
| 3 |
+
size 688855968
|
gemma-3-1b-it-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e19e2b965db701fb88d79cc49c20dc4c9c3c58957795092a554a1bc90f7cc71
|
| 3 |
+
size 806058144
|
gemma-3-1b-it-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84fb43092b31fe0dbffde5266db79797e446fe8e34a896e9e713d2e7b5a50067
|
| 3 |
+
size 780992928
|
gemma-3-1b-it-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c0181a422bf744cbce9839fe8c132286cd5f4ec1a93afff05543c29455e62f3
|
| 3 |
+
size 851345568
|
gemma-3-1b-it-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:244bb72c08d0922b9040523a395a6c14c04d06fcf2177c3706c0a27ea54588cb
|
| 3 |
+
size 836399520
|
gemma-3-1b-it-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b2ed35c9407ef87a5594771ba4fd9834d85ef49233efce287e955692ef5908f6
|
| 3 |
+
size 1011738528
|
gemma-3-1b-it-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7f9c2a8ba432597796941dde2057fb947d3931b9ee3ec584809b2812c167fe9c
|
| 3 |
+
size 1069306272
|