Text Generation
GGUF
English
Hindi
Telugu
llama.cpp
ollama
govai
chat
assistant
reasoning
tool-calling
function-calling
on-device
offline
education
conversational
Instructions to use govailabs/govai 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 govailabs/govai 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 govailabs/govai:Q4_K_M # Run inference directly in the terminal: llama cli -hf govailabs/govai:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf govailabs/govai:Q4_K_M # Run inference directly in the terminal: llama cli -hf govailabs/govai: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 govailabs/govai:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf govailabs/govai:Q4_K_M
Use Docker
docker model run hf.co/govailabs/govai:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use govailabs/govai with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "govailabs/govai" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "govailabs/govai", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/govailabs/govai:Q4_K_M
- Ollama
How to use govailabs/govai with Ollama:
ollama run hf.co/govailabs/govai:Q4_K_M
- Unsloth Desktop
- Pi
How to use govailabs/govai with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf govailabs/govai:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "govailabs/govai:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use govailabs/govai with Docker Model Runner:
docker model run hf.co/govailabs/govai:Q4_K_M
- Lemonade
How to use govailabs/govai with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull govailabs/govai:Q4_K_M
Run and chat with the model
lemonade run user.govai-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use govailabs/govai with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf govailabs/govai:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default govailabs/govai:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use govailabs/govai with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf govailabs/govai: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:8080/v1 \ --custom-model-id "govailabs/govai: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"
govai 2.4
Browse files- .gitattributes +1 -0
- README.md +53 -17
- charts/chat_quality.png +0 -0
- charts/progress.png +2 -2
- charts/thinking.png +0 -0
- charts/tools.png +0 -0
- charts/benchmarks.png → govai-2.4-q4_k_m.gguf +2 -2
- latest.json +5 -5
.gitattributes
CHANGED
|
@@ -49,3 +49,4 @@ desktop/govai-setup-1.0.0.exe filter=lfs diff=lfs merge=lfs -text
|
|
| 49 |
desktop/govai-setup-1.0.0.exe.blockmap filter=lfs diff=lfs merge=lfs -text
|
| 50 |
desktop/govai-setup-1.0.1.exe filter=lfs diff=lfs merge=lfs -text
|
| 51 |
desktop/govai-setup-1.0.1.exe.blockmap filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 49 |
desktop/govai-setup-1.0.0.exe.blockmap filter=lfs diff=lfs merge=lfs -text
|
| 50 |
desktop/govai-setup-1.0.1.exe filter=lfs diff=lfs merge=lfs -text
|
| 51 |
desktop/govai-setup-1.0.1.exe.blockmap filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
govai-2.4-q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -14,6 +14,8 @@ tags:
|
|
| 14 |
- chat
|
| 15 |
- assistant
|
| 16 |
- reasoning
|
|
|
|
|
|
|
| 17 |
- on-device
|
| 18 |
- offline
|
| 19 |
- education
|
|
@@ -23,7 +25,7 @@ tags:
|
|
| 23 |
|
| 24 |
<img src="https://huggingface.co/govailabs/govai/resolve/main/assets/govai-mark.png" alt="govai" width="96">
|
| 25 |
|
| 26 |
-
<h1 align="center">govai 2.
|
| 27 |
|
| 28 |
**A small, fast AI assistant that runs on your own computer.** Free, open and private.
|
| 29 |
|
|
@@ -34,12 +36,15 @@ tags:
|
|
| 34 |
</div>
|
| 35 |
|
| 36 |
govai answers in plain words, writes full step-by-step guides when you ask for detail, solves maths
|
| 37 |
-
and science problems, and can think before answering hard questions.
|
|
|
|
|
|
|
| 38 |
|
| 39 |
| | |
|
| 40 |
|---|---|
|
| 41 |
-
| **Size** | ~2B parameters · `govai-2.
|
| 42 |
| **Context** | 16,384 tokens recommended |
|
|
|
|
| 43 |
| **Languages** | English (best), Hindi, Telugu |
|
| 44 |
| **Speed** | ~150 tokens/s on a gaming GPU; usable on CPU |
|
| 45 |
| **License** | Apache 2.0 · by govai labs |
|
|
@@ -49,20 +54,30 @@ and science problems, and can think before answering hard questions. One 1.3 GB
|
|
| 49 |
All scores: the Q4_K_M file above, temperature 0, unfinished answers counted as wrong, and no test
|
| 50 |
question used in training (8-word overlap check).
|
| 51 |
|
| 52 |
-

|
| 68 |
|
|
@@ -73,13 +88,32 @@ ollama run hf.co/govailabs/govai:Q4_K_M # Ollama
|
|
| 73 |
llama-cli -hf govailabs/govai --jinja # llama.cpp
|
| 74 |
```
|
| 75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 76 |
<details>
|
| 77 |
<summary>Python (llama-cpp-python)</summary>
|
| 78 |
|
| 79 |
```python
|
| 80 |
from llama_cpp import Llama
|
| 81 |
|
| 82 |
-
llm = Llama.from_pretrained(repo_id="govailabs/govai", filename="govai-2.
|
| 83 |
reply = llm.create_chat_completion(
|
| 84 |
messages=[
|
| 85 |
{"role": "system", "content": "You are govai, a friendly and helpful AI assistant. Answer clearly in simple words."},
|
|
@@ -92,9 +126,9 @@ print(reply["choices"][0]["message"]["content"])
|
|
| 92 |
|
| 93 |
</details>
|
| 94 |
|
| 95 |
-
**Settings:** temperature 0.3 (0 for maths), top_p 0.9, top_k 20. Turn thinking on
|
| 96 |
-
Ollama) for hard problems and give it room (4,096+ tokens). Ask "explain fully" or
|
| 97 |
-
for a complete guide; short questions get short answers.
|
| 98 |
|
| 99 |
## govai for Windows
|
| 100 |
|
|
@@ -109,6 +143,8 @@ SHA-256: `000b2da90830d793e2ec9b5a2f5e7adf0b0dcde6d0b3c26a17cdddc4b08b4d31`
|
|
| 109 |
|
| 110 |
- A small model: it can get facts wrong, especially about people, places, dates and recent events.
|
| 111 |
The govai app searches the web for those; on its own, check important facts.
|
|
|
|
|
|
|
| 112 |
- Hindi and Telugu answers are weaker than English ones.
|
| 113 |
- Very hard problems (competition maths, graduate science) need thinking on and a long budget.
|
| 114 |
- Not for professional medical, legal or financial advice.
|
|
@@ -122,7 +158,7 @@ Apache 2.0 (`LICENSE`), provided "as is". Open-source notices are in `NOTICE`.
|
|
| 122 |
|
| 123 |
```bibtex
|
| 124 |
@misc{govai2026,
|
| 125 |
-
title = {govai 2.
|
| 126 |
author = {govai labs},
|
| 127 |
year = {2026},
|
| 128 |
url = {https://huggingface.co/govailabs/govai}
|
|
|
|
| 14 |
- chat
|
| 15 |
- assistant
|
| 16 |
- reasoning
|
| 17 |
+
- tool-calling
|
| 18 |
+
- function-calling
|
| 19 |
- on-device
|
| 20 |
- offline
|
| 21 |
- education
|
|
|
|
| 25 |
|
| 26 |
<img src="https://huggingface.co/govailabs/govai/resolve/main/assets/govai-mark.png" alt="govai" width="96">
|
| 27 |
|
| 28 |
+
<h1 align="center">govai 2.4</h1>
|
| 29 |
|
| 30 |
**A small, fast AI assistant that runs on your own computer.** Free, open and private.
|
| 31 |
|
|
|
|
| 36 |
</div>
|
| 37 |
|
| 38 |
govai answers in plain words, writes full step-by-step guides when you ask for detail, solves maths
|
| 39 |
+
and science problems, and can think before answering hard questions. **New in 2.4: tool calling.**
|
| 40 |
+
Give govai tools (search your files, a calculator, any API) and it decides by itself when to call
|
| 41 |
+
one, and answers directly when none fits. One 1.3 GB file, fully offline.
|
| 42 |
|
| 43 |
| | |
|
| 44 |
|---|---|
|
| 45 |
+
| **Size** | ~2B parameters · `govai-2.4-q4_k_m.gguf` · 1.31 GB (Q4_K_M) |
|
| 46 |
| **Context** | 16,384 tokens recommended |
|
| 47 |
+
| **Tools** | OpenAI-style function definitions (Ollama `tools`, llama.cpp `--jinja`) |
|
| 48 |
| **Languages** | English (best), Hindi, Telugu |
|
| 49 |
| **Speed** | ~150 tokens/s on a gaming GPU; usable on CPU |
|
| 50 |
| **License** | Apache 2.0 · by govai labs |
|
|
|
|
| 54 |
All scores: the Q4_K_M file above, temperature 0, unfinished answers counted as wrong, and no test
|
| 55 |
question used in training (8-word overlap check).
|
| 56 |
|
| 57 |
+

|
| 58 |
|
| 59 |
+
| Tool calling | govai 2.3 | govai 2.4 |
|
| 60 |
|---|---|---|
|
| 61 |
+
| BFCL v3 · one call (100) | 21% | **85%** |
|
| 62 |
+
| BFCL v3 · pick the right tool (100) | 38% | **85%** |
|
| 63 |
+
| BFCL v3 · several calls at once (100) | 6% | **78%** |
|
| 64 |
+
| BFCL v3 · no tool fits, don't call (100) | **95%** | 85% |
|
| 65 |
+
| **BFCL v3 · average** | 40.0% | **83.2%** |
|
| 66 |
+
| Your files: right tool (search / list / read, 20) | 12/20 | **20/20** |
|
| 67 |
+
| Your files: answer uses what the tool returned (20) | 8/20 | **19/20** |
|
| 68 |
|
| 69 |
+
The file test uses made-up computers; half of its questions use file kinds that never appeared in
|
| 70 |
+
training (insurance policy, salary slip, blood test).
|
| 71 |
|
| 72 |
+

|
| 73 |
|
| 74 |
+
| Same questions, thinking off | govai 2.3 | govai 2.4 |
|
| 75 |
+
|---|---|---|
|
| 76 |
+
| GSM8K · school maths (250) | 82.8% | 82.4% |
|
| 77 |
+
| ARC-Challenge · science (300) | 83.0% | 83.3% |
|
| 78 |
+
| MMLU · knowledge (400) | 61.5% | 61.8% |
|
| 79 |
+
|
| 80 |
+
Maths, science and knowledge stay level with govai 2.3 (differences are within ±5 points).
|
| 81 |
|
| 82 |

|
| 83 |
|
|
|
|
| 88 |
llama-cli -hf govailabs/govai --jinja # llama.cpp
|
| 89 |
```
|
| 90 |
|
| 91 |
+
<details>
|
| 92 |
+
<summary>Tool calling (Ollama, Python)</summary>
|
| 93 |
+
|
| 94 |
+
```python
|
| 95 |
+
import ollama
|
| 96 |
+
|
| 97 |
+
tools = [{"type": "function", "function": {
|
| 98 |
+
"name": "search_files",
|
| 99 |
+
"description": "Search the user's files by words in the file name.",
|
| 100 |
+
"parameters": {"type": "object", "properties": {"query": {"type": "string"}}, "required": ["query"]}}}]
|
| 101 |
+
|
| 102 |
+
reply = ollama.chat(model="hf.co/govailabs/govai:Q4_K_M", think=False, tools=tools,
|
| 103 |
+
messages=[{"role": "user", "content": "Where is my resume?"}])
|
| 104 |
+
print(reply.message.tool_calls) # [search_files(query="resume")]
|
| 105 |
+
# Run the tool, add {"role": "tool", "content": <result>} to the messages, and ask again for the answer.
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
</details>
|
| 109 |
+
|
| 110 |
<details>
|
| 111 |
<summary>Python (llama-cpp-python)</summary>
|
| 112 |
|
| 113 |
```python
|
| 114 |
from llama_cpp import Llama
|
| 115 |
|
| 116 |
+
llm = Llama.from_pretrained(repo_id="govailabs/govai", filename="govai-2.4-q4_k_m.gguf", n_ctx=16384)
|
| 117 |
reply = llm.create_chat_completion(
|
| 118 |
messages=[
|
| 119 |
{"role": "system", "content": "You are govai, a friendly and helpful AI assistant. Answer clearly in simple words."},
|
|
|
|
| 126 |
|
| 127 |
</details>
|
| 128 |
|
| 129 |
+
**Settings:** temperature 0.3 (0 for maths and tool calls), top_p 0.9, top_k 20. Turn thinking on
|
| 130 |
+
(`think: true` in Ollama) for hard problems and give it room (4,096+ tokens). Ask "explain fully" or
|
| 131 |
+
"step by step" for a complete guide; short questions get short answers.
|
| 132 |
|
| 133 |
## govai for Windows
|
| 134 |
|
|
|
|
| 143 |
|
| 144 |
- A small model: it can get facts wrong, especially about people, places, dates and recent events.
|
| 145 |
The govai app searches the web for those; on its own, check important facts.
|
| 146 |
+
- Tool calls can still be wrong or missing an argument; check what a tool will do before running it,
|
| 147 |
+
and give govai read-only tools where you can.
|
| 148 |
- Hindi and Telugu answers are weaker than English ones.
|
| 149 |
- Very hard problems (competition maths, graduate science) need thinking on and a long budget.
|
| 150 |
- Not for professional medical, legal or financial advice.
|
|
|
|
| 158 |
|
| 159 |
```bibtex
|
| 160 |
@misc{govai2026,
|
| 161 |
+
title = {govai 2.4: a small, fast, private AI assistant with tool calling},
|
| 162 |
author = {govai labs},
|
| 163 |
year = {2026},
|
| 164 |
url = {https://huggingface.co/govailabs/govai}
|
charts/chat_quality.png
CHANGED
|
|
charts/progress.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|
charts/thinking.png
DELETED
|
Binary file (85.8 kB)
|
|
|
charts/tools.png
ADDED
|
charts/benchmarks.png → govai-2.4-q4_k_m.gguf
RENAMED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c4e87866dc8410d9a0d4424cbdb098b3b5083a243642cfaebe51e752ff759bfe
|
| 3 |
+
size 1312164384
|
latest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"name": "govai",
|
| 3 |
-
"version": "2.
|
| 4 |
-
"file": "govai-2.
|
| 5 |
-
"size":
|
| 6 |
-
"sha256": "
|
| 7 |
-
"url": "https://huggingface.co/govailabs/govai/resolve/main/govai-2.
|
| 8 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"name": "govai",
|
| 3 |
+
"version": "2.4",
|
| 4 |
+
"file": "govai-2.4-q4_k_m.gguf",
|
| 5 |
+
"size": 1312164384,
|
| 6 |
+
"sha256": "c4e87866dc8410d9a0d4424cbdb098b3b5083a243642cfaebe51e752ff759bfe",
|
| 7 |
+
"url": "https://huggingface.co/govailabs/govai/resolve/main/govai-2.4-q4_k_m.gguf"
|
| 8 |
}
|