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 llama-guard-3-1b.gguf with huggingface_hub
Browse filesFiles changed (2)
- .gitattributes+1
- llama-guard-3-1b.ggufAdded+3
33 unmodified lines34353633 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textshieldgemma-2b-cpu.task filter=lfs diff=lfs merge=lfs -text33 unmodified lines3435363733 unmodified lines*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textshieldgemma-2b-cpu.task filter=lfs diff=lfs merge=lfs -textllama-guard-3-1b.gguf filter=lfs diff=lfs merge=lfs -text
123version https://git-lfs.github.com/spec/v1oid sha256:cbc0dba2676b77ff3a69b0ed359f1b99710d7083dffcab8018187cb7090bd777size 955443712.gitattributes+1
llama-guard-3-1b.ggufAdded+3