Instructions to use cortexso/gemma with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use cortexso/gemma with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="cortexso/gemma", filename="gemma-7b-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/gemma with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf cortexso/gemma:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/gemma: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/gemma:Q4_K_M # Run inference directly in the terminal: llama-cli -hf cortexso/gemma: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/gemma:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf cortexso/gemma: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/gemma:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf cortexso/gemma:Q4_K_M
Use Docker
docker model run hf.co/cortexso/gemma:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use cortexso/gemma with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "cortexso/gemma" # 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/gemma", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/cortexso/gemma:Q4_K_M
- Ollama
How to use cortexso/gemma with Ollama:
ollama run hf.co/cortexso/gemma:Q4_K_M
- Unsloth Studio new
How to use cortexso/gemma 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/gemma 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/gemma to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for cortexso/gemma to start chatting
- Docker Model Runner
How to use cortexso/gemma with Docker Model Runner:
docker model run hf.co/cortexso/gemma:Q4_K_M
- Lemonade
How to use cortexso/gemma with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull cortexso/gemma:Q4_K_M
Run and chat with the model
lemonade run user.gemma-Q4_K_M
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- .gitattributes +10 -0
- gemma-7b-it-q2_k.gguf +3 -0
- gemma-7b-it-q3_k_l.gguf +3 -0
- gemma-7b-it-q3_k_m.gguf +3 -0
- gemma-7b-it-q3_k_s.gguf +3 -0
- gemma-7b-it-q4_k_m.gguf +3 -0
- gemma-7b-it-q4_k_s.gguf +3 -0
- gemma-7b-it-q5_k_m.gguf +3 -0
- gemma-7b-it-q5_k_s.gguf +3 -0
- gemma-7b-it-q6_k.gguf +3 -0
- gemma-7b-it-q8_0.gguf +3 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,13 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
model.gguf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
model.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
gemma-7b-it-q2_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
gemma-7b-it-q3_k_l.gguf filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
gemma-7b-it-q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
gemma-7b-it-q3_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
gemma-7b-it-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
gemma-7b-it-q4_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
gemma-7b-it-q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
gemma-7b-it-q5_k_s.gguf filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
gemma-7b-it-q6_k.gguf filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
gemma-7b-it-q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
gemma-7b-it-q2_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05acc3685e7774a4d3bceb3a43e180fa4278eb0228e9e3d16d26444fc4539e41
|
| 3 |
+
size 3481447872
|
gemma-7b-it-q3_k_l.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3fcdd1934e12b04b93d74dd4cd33801670bd29d7b861342f8e1290dcb2bfa339
|
| 3 |
+
size 4709068224
|
gemma-7b-it-q3_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1614b6cd0a4b3d6bbc6e3f23a37c08d6157744b02086c2e393da4f1b71038615
|
| 3 |
+
size 4369329600
|
gemma-7b-it-q3_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:471fb19af3cc5241d8e73feede4ce44a813062f054d2abee3dff04d514b1194f
|
| 3 |
+
size 3982405056
|
gemma-7b-it-q4_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:007b7203f617230ff9d0587a463139b63993df9e9e6cdbb826112b9168722330
|
| 3 |
+
size 5329759680
|
gemma-7b-it-q4_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27785b907e26b96c2bdd74578730c733e351cdd4cd8b0bda919e73d8fae43117
|
| 3 |
+
size 5046447552
|
gemma-7b-it-q5_k_m.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3bafbdc6b82829a0b4867236ecb47767861b8b301f81c1107f79c33fa1e2458e
|
| 3 |
+
size 6144503232
|
gemma-7b-it-q5_k_s.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46cf9c741750e5c437217654d4f9947fdcbc0f25ca3a9d4e159c3fde3f1f25a0
|
| 3 |
+
size 5980728768
|
gemma-7b-it-q6_k.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:beab4f991c688c92ddd4365e4bfef7f7df30e814b60e677fb1ff13ed6ad34103
|
| 3 |
+
size 7010168256
|
gemma-7b-it-q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c37340e7e1fdb81044ad3c1e369d23d9916163bc3fb57445c2b1bc6aeae66b3
|
| 3 |
+
size 9077845440
|