- [3.0.3. hugging Face site](#303-hugging-face-site)
- [3.0.4. related google voice assistant](#304-related-google-voice-assistant)
- [4. Create the project](#4-create-the-project)
- [4.1. On the Forgejo Server](#41-on-the-forgejo-server)
- [4.2. clone development machine](#42-clone-development-machine)
- [5. Initial .gitignore](#5-initial--gitignore)
- [6. commit back to Forgejo server](#6-commit-back-to-forgejo-server)
- [7. create a source dir](#7-create-a-source-dir)
- [8. Build llama-server and llama-cli](#8-build-llama-server-and-llama-cli)
- [8.1. Attempting to get GGUF file and run](#81-attempting-to-get-gguf-file-and-run)
- [8.1.1. -This did not work there a few more tries but none of these worked, maybe because 8G file](#811--this-did-not-work-there-a-few-more-tries-but-none-of-these-worked-maybe-because-8g-file)
- [8.2. What happens next?](#82-what-happens-next)
- [8.3. Now install gguf file](#83-now-install-gguf-file)
- [8.3.1. Step 1: Download the File via curl](#831-step-1-download-the-file-via-curl)
- [8.3.2. Step 2: Launch the Server Region Locally](#832-step-2-launch-the-server-region-locally)
Once that hits 100%, your compiled binaries will be built and ready to go inside the build/bin folder.
Fantastic! The compilation log looks beautiful. CMake successfully detected your Apple Silicon layout (arm64), hooked into macOS’s native Accelerate framework, and fully compiled the Metal backend (libggml-metal.dylib). This means the model will run beautifully utilizing your Mac's integrated GPU and Unified Memory.
It even compiled the new built-in SvelteKit web front-end (llama-ui) for you.
## 8.1. Attempting to get GGUF file and run
### 8.1.1. -This did not work there a few more tries but none of these worked, maybe because 8G file
Now you can immediately spin up the model. Since llama.cpp has a built-in automated downloader, you don't need a separate tool anymore. Run this command from your current /src directory to download the Gemma 4 12B Q5_K_M model and start the server:
The Download Begins: llama-server will start fetching the ~9.5 GB file directly from Hugging Face and show you a download progress bar right in the terminal window.
Metal Acceleration Boots: Once downloaded, it will initialize the context (-c 8192 sets an 8k token window) and offload all 99 layers (--n-gpu-layers 99) entirely onto your Mac's graphics pipeline.
The Web UI is Live: Open up your browser and head to http://localhost:8080. You'll be greeted by the natively built chat interface where you can interact with Gemma 4 locally.
## 8.3. Now install gguf file
**Ths worked**
### 8.3.1. Step 1: Download the File via curl
Stay right where you are in the src directory, and run this command. It downloads the file straight from Hugging Face's servers and saves it directly into your models directory:
### 8.3.2. Step 2: Launch the Server Region Locally
Once the download finishes, use the local model flag (-m) instead of the buggy Hugging Face flag (-hf). This tells llama-server to read the file straight from your hard drive:
This will bypass the network lookup code entirely, instantly load the model into your Mac's unified memory via Metal, and open up your port listener at http://localhost:8080.