Instructions to use Gaurav77783/gatepost-e4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Gaurav77783/gatepost-e4b with 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 Gaurav77783/gatepost-e4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Gaurav77783/gatepost-e4b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Gaurav77783/gatepost-e4b:Q4_K_M # Run inference directly in the terminal: llama cli -hf Gaurav77783/gatepost-e4b:Q4_K_M
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 Gaurav77783/gatepost-e4b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf Gaurav77783/gatepost-e4b:Q4_K_M
Use Docker
docker model run hf.co/Gaurav77783/gatepost-e4b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use Gaurav77783/gatepost-e4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gaurav77783/gatepost-e4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Gaurav77783/gatepost-e4b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Gaurav77783/gatepost-e4b:Q4_K_M
- Ollama
How to use Gaurav77783/gatepost-e4b with Ollama:
ollama run hf.co/Gaurav77783/gatepost-e4b:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use Gaurav77783/gatepost-e4b with Docker Model Runner:
docker model run hf.co/Gaurav77783/gatepost-e4b:Q4_K_M
- Lemonade
How to use Gaurav77783/gatepost-e4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Gaurav77783/gatepost-e4b:Q4_K_M
Run and chat with the model
lemonade run user.gatepost-e4b-Q4_K_M
List all available models
lemonade list
- Atomic Chat
gatepost-e4b
gatepost-e4b reviews one proposed coding-agent tool call at a time and answers
PASS or BLOCK. It is the reviewer model for
Coding Agent Firewall,
which guards Claude Code, Codex and OpenCode. It reads the user's latest request, the
session so far and the operator's policy, and judges whether the proposed action is
what the user asked for. It is not a general chat model and expects the firewall's
fixed system prompt and review record.
Quick start
ollama pull official77783/gatepost-e4b
coding-agent-firewall setup # choose "Enter another model": official77783/gatepost-e4b
coding-agent-firewall reviewer check --supervisor-model official77783/gatepost-e4b
reviewer check should report automatic_profile: the firewall can count this
model's tokens exactly and use its PASS/BLOCK probabilities.
How it is used
- The firewall reads the probabilities of the
PASSandBLOCKtokens and runs a tool on its own only whenP(PASS) / (P(PASS) + P(BLOCK))is above 0.92 (the default pass gate). Anything else, including everyBLOCK, asks the user. - Deterministic rules run first: an action a DENY rule matches is never sent to the model.
- Input limit: 49,152 tokens by default (about 100 tool calls), context 49,664
(
num_ctx), configurable in the firewall's setup. A longer session is refused, never truncated. - It is one layer of protection. Deterministic rules, the coding agent's own sandbox and its permission settings stay in place.
Requirements
- Disk: about 5.3 GB.
- With a GPU, at the default 48K context: about 4 GB of GPU memory plus about 3 GB of system RAM. It fits entirely on a 6 GB GPU.
- CPU only: about 7 GB of RAM. Ollama reuses the session it has already read, so most reviews take a few seconds; reading a long session from scratch runs at about 180 tokens per second on a recent 8-core laptop CPU. On CPU-only machines, choose a 16K context limit in the firewall's setup.
Files
| File | Contents |
|---|---|
gatepost-e4b.Q4_K_M.gguf |
The model, text only, Q4_K_M (same file as on Ollama) |
Modelfile |
Builds the Ollama model: ollama create gatepost-e4b -f Modelfile |
adapter/ |
The LoRA adapter, for merging or further fine-tuning |
LICENSE |
Apache License 2.0 |
Modifications
Fine-tuned from google/gemma-4-E4B-it
with LoRA (rank 8), merged and quantized to Q4_K_M GGUF. The weights differ from the
original model. The GGUF's tokenizer metadata is labelled to match Ollama's stock
gemma4:e4b model, whose vocabulary it shares, so the firewall can count tokens exactly.
This model is not made or endorsed by Google.
License
Apache License 2.0, the same licence as the base model. See LICENSE.
- Downloads last month
- -
4-bit
docker model run hf.co/Gaurav77783/gatepost-e4b:Q4_K_M