venkatagovindneelapu commited on
Commit
1b850ed
·
verified ·
1 Parent(s): 8586368

govai 2.4

Browse files
.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.3</h1>
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. One 1.3 GB file, fully offline.
 
 
38
 
39
  | | |
40
  |---|---|
41
- | **Size** | ~2B parameters · `govai-2.3-q4_k_m.gguf` · 1.31 GB (Q4_K_M) |
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
- ![Thinking on vs off](https://huggingface.co/govailabs/govai/resolve/main/charts/thinking.png)
53
 
54
- | Same questions both ways | Thinking off | Thinking on |
55
  |---|---|---|
56
- | GSM8K · school maths (250) | **82.8%** | 80.8% |
57
- | ARC-Challenge · science (300) | 83.0% | **85.0%** |
58
- | MMLU · knowledge (400) | 61.5% | **69.2%** |
 
 
 
 
59
 
60
- Thinking helps most on knowledge (+7.7 points) and science (+2.0); for school maths, direct answers
61
- are already as good.
62
 
63
- ![Full benchmark sets](https://huggingface.co/govailabs/govai/resolve/main/charts/benchmarks.png)
64
 
65
- ![govai 2 to govai 2.3](https://huggingface.co/govailabs/govai/resolve/main/charts/progress.png)
 
 
 
 
 
 
66
 
67
  ![Everyday chat quality](https://huggingface.co/govailabs/govai/resolve/main/charts/chat_quality.png)
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.3-q4_k_m.gguf", n_ctx=16384)
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 (`think: true` in
96
- Ollama) for hard problems and give it room (4,096+ tokens). Ask "explain fully" or "step by step"
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.3: a small, fast, private AI chat assistant},
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
+ ![Tool calling](https://huggingface.co/govailabs/govai/resolve/main/charts/tools.png)
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
+ ![govai 2.3 to govai 2.4](https://huggingface.co/govailabs/govai/resolve/main/charts/progress.png)
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
  ![Everyday chat quality](https://huggingface.co/govailabs/govai/resolve/main/charts/chat_quality.png)
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

  • SHA256: 5ab2be37166e41fd11e8b7aec21b4f404530721237b815ae2736ed61c4a19383
  • Pointer size: 131 Bytes
  • Size of remote file: 137 kB

Git LFS Details

  • SHA256: 612bde0fe8599dfee1ff4bc618a29d2824132f15d80401352579b6a121dec527
  • Pointer size: 130 Bytes
  • Size of remote file: 98.4 kB
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:e1fb8d34477aeac8d8f3020b2771a8495bc9151f26b6104ba551c345001fb944
3
- size 111684
 
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.3",
4
- "file": "govai-2.3-q4_k_m.gguf",
5
- "size": 1312164480,
6
- "sha256": "dc18c3dc28d340986c749f5d6f008e65379825de344cd660591f20eb4795712c",
7
- "url": "https://huggingface.co/govailabs/govai/resolve/main/govai-2.3-q4_k_m.gguf"
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
  }