Run this model with HF Jobs

Run narainp/gemma-2b-it-Q4_0-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 to fine-tune https://huggingface.co/narainp/gemma-2b-it-Q4_0-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/narainp/gemma-2b-it-Q4_0-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.
How to use from
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 narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
# Run inference directly in the terminal:
llama cli -hf narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
# Run inference directly in the terminal:
llama cli -hf narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
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 narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
# Run inference directly in the terminal:
./build/bin/llama cli -hf narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
Use Docker
docker model run hf.co/narainp/gemma-2b-it-Q4_0-GGUF:Q4_0
Quick Links

narainp/gemma-2b-it-Q4_0-GGUF

This model was converted to GGUF format from google/gemma-2b-it 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.

brew install ggerganov/ggerganov/llama.cpp

Invoke the llama.cpp server or the CLI. CLI:

llama-cli --hf-repo narainp/gemma-2b-it-Q4_0-GGUF --model gemma-2b-it-q4_0.gguf -p "The meaning to life and the universe is"

Server:

llama-server --hf-repo narainp/gemma-2b-it-Q4_0-GGUF --model gemma-2b-it-q4_0.gguf -c 2048

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

git clone https://github.com/ggerganov/llama.cpp && \
cd llama.cpp && \
make && \
./main -m gemma-2b-it-q4_0.gguf -n 128
Downloads last month
128
GGUF
Model size
3B params
Architecture
gemma
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