Instructions to use ConstantMachine/shieldgemma-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ConstantMachine/shieldgemma-2b 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 ConstantMachine/shieldgemma-2b # Run inference directly in the terminal: llama cli -hf ConstantMachine/shieldgemma-2b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ConstantMachine/shieldgemma-2b # Run inference directly in the terminal: llama cli -hf ConstantMachine/shieldgemma-2b
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf ConstantMachine/shieldgemma-2b # Run inference directly in the terminal: ./build/bin/llama cli -hf ConstantMachine/shieldgemma-2b
Use Docker
docker model run hf.co/ConstantMachine/shieldgemma-2b
- Llama new
- LM Studio
- Jan
- Ollama
How to use ConstantMachine/shieldgemma-2b with Ollama:
ollama run hf.co/ConstantMachine/shieldgemma-2b
- Unsloth Desktop
- Docker Model Runner
How to use ConstantMachine/shieldgemma-2b with Docker Model Runner:
docker model run hf.co/ConstantMachine/shieldgemma-2b
- Lemonade
How to use ConstantMachine/shieldgemma-2b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ConstantMachine/shieldgemma-2b
Run and chat with the model
lemonade run user.shieldgemma-2b-{{QUANT_TAG}}List all available models
lemonade list
- Atomic Chat
Download shieldgemma-2b-cpu.task from ConstantMachine/shieldgemma-2b: direct link, hf CLI and curl.
- Browser
- Download file 2.63 GB
-
https://huggingface.co/ConstantMachine/shieldgemma-2b/resolve/main/shieldgemma-2b-cpu.task
- Command line
-
hf download hf://ConstantMachine/shieldgemma-2b/shieldgemma-2b-cpu.task
-
curl -L -o shieldgemma-2b-cpu.task https://huggingface.co/ConstantMachine/shieldgemma-2b/resolve/main/shieldgemma-2b-cpu.task
2.63 GB
- Xet hash:
- f28880fcbe8d517472aeb48624d9ffcb607e6db67f84bfc58acde1871ac208f4
- Size of remote file:
- 2.63 GB
- SHA256:
- c377e08dd4ab1a1f757f601100c3b7a82d47b0c8424b773309ebd15f5752f4fd
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.