Run this model with HF Jobs

Run itlwas/shieldgemma-9b-Q4_K_M-GGUF on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/itlwas/shieldgemma-9b-Q4_K_M-GGUF. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/itlwas/shieldgemma-9b-Q4_K_M-GGUF on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/itlwas/shieldgemma-9b-Q4_K_M-GGUF. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

AIronMind/shieldgemma-9b-Q4_K_M-GGUF

This model was converted to GGUF format from google/shieldgemma-9b using llama.cpp via the ggml.ai's GGUF-my-repo space. Refer to the original model card for more details on the model.

Use with llama.cpp

Install llama.cpp through brew (works on Mac and Linux)

brew install llama.cpp

Invoke the llama.cpp server or the CLI.

CLI:

llama-cli --hf-repo AIronMind/shieldgemma-9b-Q4_K_M-GGUF --hf-file shieldgemma-9b-q4_k_m.gguf -p "The meaning to life and the universe is"

Server:

llama-server --hf-repo AIronMind/shieldgemma-9b-Q4_K_M-GGUF --hf-file shieldgemma-9b-q4_k_m.gguf -c 2048

Note: You can also use this checkpoint directly through the usage steps listed in the Llama.cpp repo as well.

Step 1: Clone llama.cpp from GitHub.

git clone https://github.com/ggerganov/llama.cpp

Step 2: Move into the llama.cpp folder and build it with LLAMA_CURL=1 flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).

cd llama.cpp && LLAMA_CURL=1 make

Step 3: Run inference through the main binary.

./llama-cli --hf-repo AIronMind/shieldgemma-9b-Q4_K_M-GGUF --hf-file shieldgemma-9b-q4_k_m.gguf -p "The meaning to life and the universe is"

or

./llama-server --hf-repo AIronMind/shieldgemma-9b-Q4_K_M-GGUF --hf-file shieldgemma-9b-q4_k_m.gguf -c 2048
Downloads last month
43
GGUF
Model size
9B params
Architecture
gemma2
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for itlwas/shieldgemma-9b-Q4_K_M-GGUF

Quantized
(15)
this model

Collections including itlwas/shieldgemma-9b-Q4_K_M-GGUF