Instructions to use tensorblock/mhenrichsen_gemma-2b-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/mhenrichsen_gemma-2b-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/mhenrichsen_gemma-2b-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/mhenrichsen_gemma-2b-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/mhenrichsen_gemma-2b-GGUF", filename="gemma-2b-Q2_K.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 tensorblock/mhenrichsen_gemma-2b-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 tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
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 tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
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 tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
- LM Studio
- Jan
- Ollama
How to use tensorblock/mhenrichsen_gemma-2b-GGUF with Ollama:
ollama run hf.co/tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/mhenrichsen_gemma-2b-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 tensorblock/mhenrichsen_gemma-2b-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 tensorblock/mhenrichsen_gemma-2b-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/mhenrichsen_gemma-2b-GGUF to start chatting
- Atomic Chat new
- Docker Model Runner
How to use tensorblock/mhenrichsen_gemma-2b-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
- Lemonade
How to use tensorblock/mhenrichsen_gemma-2b-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/mhenrichsen_gemma-2b-GGUF:Q2_K
Run and chat with the model
lemonade run user.mhenrichsen_gemma-2b-GGUF-Q2_K
List all available models
lemonade list
Remove .gguf files (keep Q2_K.gguf)
Browse files- gemma-2b-Q3_K_L.gguf +0 -3
- gemma-2b-Q3_K_M.gguf +0 -3
- gemma-2b-Q3_K_S.gguf +0 -3
- gemma-2b-Q4_0.gguf +0 -3
- gemma-2b-Q4_K_M.gguf +0 -3
- gemma-2b-Q4_K_S.gguf +0 -3
- gemma-2b-Q5_0.gguf +0 -3
- gemma-2b-Q5_K_M.gguf +0 -3
- gemma-2b-Q5_K_S.gguf +0 -3
- gemma-2b-Q6_K.gguf +0 -3
- gemma-2b-Q8_0.gguf +0 -3
gemma-2b-Q3_K_L.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:225f6915ddefcb2162f186b537d7b955db91bf0d5df136464997d4999e5e0833
|
| 3 |
-
size 1465591168
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q3_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:419083808630626fa02de4647b60af0aa9c3846c204527e4fdd5a7028eabae89
|
| 3 |
-
size 1383802240
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q3_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:79bd856d556e819909697183cd2627fcc369f23d740289b585a439dd3e2b4a43
|
| 3 |
-
size 1287980416
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q4_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:5e9546369e0b542e85fe3ba90a5b74bcb07f6422c915a86118e921d90d85d3c8
|
| 3 |
-
size 1551189376
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q4_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:4097a9f3e51c9e6d51608d804f623bdff8aeea03b54b91db18ebbf77c5236fbc
|
| 3 |
-
size 1630262656
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q4_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:36ee69deb2bdafa5efeaffae959c1de018a59da96ccf71e1b2094ddad82ab84d
|
| 3 |
-
size 1559840128
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q5_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:82af613b8a37dfa5cb06f7248503a908245fb95c52d598a620a316983848e95c
|
| 3 |
-
size 1798915456
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q5_K_M.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:42a71aa5303ac57a62772a7353abf01e193ce211225647074c4805559d49ab25
|
| 3 |
-
size 1839650176
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q5_K_S.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:786adea1509be05c84e5a62aa4661dbd96768ce78b138e187bb92fdb11a6f742
|
| 3 |
-
size 1798915456
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q6_K.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:32895236bc8b73756e76a267d187a337b3e9bcb4b22db50fd0f246f6519dab9e
|
| 3 |
-
size 2062124416
|
|
|
|
|
|
|
|
|
|
|
|
gemma-2b-Q8_0.gguf
DELETED
|
@@ -1,3 +0,0 @@
|
|
| 1 |
-
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:cc6aee5786c3cb388b955f58ad7a8b03d8c86a7f2324306d93a2c2f2c2276e68
|
| 3 |
-
size 2669069696
|
|
|
|
|
|
|
|
|
|
|
|