How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf lainlives/Gemma3-Code-Reasoning-4B:
# Run inference directly in the terminal:
llama-cli -hf lainlives/Gemma3-Code-Reasoning-4B:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf lainlives/Gemma3-Code-Reasoning-4B:
# Run inference directly in the terminal:
llama-cli -hf lainlives/Gemma3-Code-Reasoning-4B:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf lainlives/Gemma3-Code-Reasoning-4B:
# Run inference directly in the terminal:
./llama-cli -hf lainlives/Gemma3-Code-Reasoning-4B:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf lainlives/Gemma3-Code-Reasoning-4B:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf lainlives/Gemma3-Code-Reasoning-4B:
Use Docker
docker model run hf.co/lainlives/Gemma3-Code-Reasoning-4B:
Quick Links

lainlives/Gemma3-Code-Reasoning-4B

This model contains GGUF format model files for cublya/Gemma3-Code-Reasoning-4B.

Available Quants

The following files were generated and uploaded to this repo: Q4_0, Q4_K_S, Q4_K_M, Q5_0, Q5_K_S, Q5_K_M, Q6_K, Q8_0, f16, bf16

Use with llama.cpp

CLI:

llama-cli --hf-repo lainlives/Gemma3-Code-Reasoning-4B --hf-file Gemma3-Code-Reasoning-4B-Q4_K_M.gguf -p "The meaning to life and the universe is"

Server:

llama-server --hf-repo lainlives/Gemma3-Code-Reasoning-4B --hf-file Gemma3-Code-Reasoning-4B-Q4_K_M.gguf -c 2048

Or ollama

CLI:

ollama run https://hf.co/lainlives/Gemma3-Code-Reasoning-4B:Q4_K_M
Downloads last month
223
GGUF
Model size
4B params
Architecture
gemma3
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

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

Model tree for lainlives/Gemma3-Code-Reasoning-4B

Quantized
(1)
this model

Dataset used to train lainlives/Gemma3-Code-Reasoning-4B