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
Upload shieldgemma-2b-cpu.task with huggingface_hub
Browse files123version https://git-lfs.github.com/spec/v1oid sha256:baa03d68097436d002f0694a44db2f2248b8da68dd2ff6c99494f81cd1ddf687size 2627456882123version https://git-lfs.github.com/spec/v1oid sha256:c377e08dd4ab1a1f757f601100c3b7a82d47b0c8424b773309ebd15f5752f4fdsize 2627456882
shieldgemma-2b-cpu.task+1-1