How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf agiws/gemma4-llama-cpp:Q4_K_M
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:9931/v1 \
  --custom-model-id "agiws/gemma4-llama-cpp:Q4_K_M" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Quick Links

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

llama.cpp (fork) β€” Gemma 4 + audio (mtmd)

Source snapshot of the private llama.cpp fork used by AGIWS inference workers.

What is inside

  • src/models/gemma4.cpp, gemma4-assistant.cpp β€” text models gemma4, gemma4-assistant.
  • tools/mtmd/clip.cpp β€” graphs clip_graph_gemma4a / clip_graph_gemma4ua (audio encoders).
  • tools/mtmd/mtmd-audio.cpp β€” preprocessors gemma4a / gemma4ua, mel filters, streaming.
  • tools/mtmd/mtmd.h β€” mtmd_support_audio, mtmd_bitmap_init_from_audio.
  • tools/server β€” OpenAI-compatible server accepting input_audio content parts.
  • conversion/gemma.py β€” Gemma4Model GGUF converter (Gemma4ForConditionalGeneration).

Files

  • src/llama-cpp-src.tar.gz β€” full source tree (no .git, no build artifacts).
  • lib/*.so β€” prebuilt CUDA libraries and llama-server for T4 (sm_75), uploaded by the build job.
  • lib/BUILD_INFO.txt β€” compiler, CUDA version, git-less snapshot hash, sha256 of every artifact.

Build (Colab T4)

tar -xzf src/llama-cpp-src.tar.gz -C /content/llama-cpp-fork
cmake -S /content/llama-cpp-fork -B /content/llama-cpp-fork/build \
  -DCMAKE_BUILD_TYPE=Release \
  -DGGML_CUDA=ON \
  -DGGML_NATIVE=OFF \
  -DCMAKE_CUDA_ARCHITECTURES=75 \
  -DBUILD_SHARED_LIBS=ON \
  -DLLAMA_CURL=OFF \
  -DLLAMA_BUILD_TESTS=OFF \
  -DLLAMA_BUILD_EXAMPLES=OFF
cmake --build /content/llama-cpp-fork/build -j"$(nproc)" --target llama-server

Artifacts needed at runtime: llama-server plus libllama.so*, libmtmd.so*, libggml*.so* (libggml-base, libggml-cpu, libggml-cuda, libggml).

Runtime flags for Gemma audio:

LD_LIBRARY_PATH=/content/llama/lib \
/content/llama/lib/llama-server -m .../gemma-4-12b-it-Q4_K_M.gguf \
  --mmproj .../mmproj-F16.gguf -ngl 99 -c 4096 --host 127.0.0.1 --port 8091
Downloads last month
48
GGUF
Model size
12B params
Architecture
gemma4
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