mertkayacs commited on
Commit
bdba8dc
·
verified ·
1 Parent(s): 3268f89

Clearer card for first-time visitors

Browse files
Files changed (1) hide show
  1. README.md +30 -37
README.md CHANGED
@@ -8,62 +8,55 @@ language:
8
  - en
9
  tags:
10
  - gguf
11
- - llama.cpp
12
  - ollama
13
- - agents
 
 
 
 
14
  - tool-use
 
 
 
15
  ---
16
 
17
- # Tholos-2B-GGUF
18
-
19
- **A 2B agent model built by senior AI engineer Mert Kaya:** it passes 137 of 160 Tholos-Bench scenarios on one Kaggle T4 GPU (Q4_K_M, llama.cpp with a JSON schema), 25 more than the model it was trained from ([evaluation](https://huggingface.co/mertkayacs/Tholos-2B#evaluation)).
20
-
21
- GGUF builds of [Tholos-2B](https://huggingface.co/mertkayacs/Tholos-2B), MiniCPM5-2B fine-tuned to be the agent in
22
- [Tholos](https://github.com/mertkayacs/tholos). The main card has the step format, the training data and the
23
- benchmark results. This page has the files and the commands.
24
 
25
- | File | Quantization | Size | sha256 |
26
- |---|---|---|---|
27
- | Tholos-2B-Q4_K_M.gguf | Q4_K_M | 1.56 GB | `65f4700e0e107d52f5a80c3c513b3387e8cfcef9cb7545f0a2c0a2293d1eadc3` |
28
- | Tholos-2B-Q8_0.gguf | Q8_0 | 2.68 GB | `5e57b416fb515260276413a9fadc3a67ef3d81f6fceb427cefe475850df1c476` |
29
 
30
- The repo's `SHA256SUMS` file lists the same sums. Q4_K_M is the file our benchmark runs use.
31
-
32
- ## llama.cpp
33
 
34
  ```sh
35
- llama-server -hf mertkayacs/Tholos-2B-GGUF:Q4_K_M --jinja -c 16384 -t 4 -a tholos-2b \
36
- --host 127.0.0.1 --port 8080
37
  ```
38
 
39
- Swap `Q4_K_M` for `Q8_0` to load the larger file. Send a `json_schema` response format with each request so the
40
- server constrains decoding; the [main card](https://huggingface.co/mertkayacs/Tholos-2B#use-with-llamacpp) has a
41
- complete request.
42
 
43
- ## Ollama
44
 
45
  ```sh
46
- ollama pull hf.co/mertkayacs/Tholos-2B-GGUF:Q4_K_M
47
  ```
48
 
49
- The repo carries a `template` and a `params` file. The template renders prompts the way the model was trained, with
50
- an empty think block before each answer, and matches the training render byte for byte. The params file sets the
51
- stop tokens and a 16,384-token context (Ollama's default is 4,096).
52
 
53
- Without a template file Ollama picks one automatically. On the base model's official Q4_K_M file that choice left
54
- out the empty think block, and the file passed 48 of 160 Tholos-Bench scenarios with it and 96 of 160 with our
55
- template.
56
 
57
- In Tholos, press Detect in Settings and add the model. Tholos asks Ollama for JSON mode and sends
58
- `reasoning_effort: "none"` on its own.
 
 
59
 
60
- ## License
61
 
62
- Apache-2.0, the license of the base model MiniCPM5-2B. See the main card for the training data and the terms that
63
- apply to it.
64
 
65
- ---
 
 
66
 
67
- <a href="https://eschatialabs.com"><img src="https://raw.githubusercontent.com/mertkayacs/jevalt/main/docs/assets/eschatia-labs.png" alt="Eschatia Labs" width="120"></a>
68
 
69
- An [Eschatia Labs](https://eschatialabs.com) project. [Built by Mert Kaya](https://mertkayacs.com).
 
8
  - en
9
  tags:
10
  - gguf
 
11
  - ollama
12
+ - llama.cpp
13
+ - small-language-model
14
+ - local-llm
15
+ - on-device
16
+ - ai-agent
17
  - tool-use
18
+ - structured-output
19
+ datasets:
20
+ - mertkayacs/tholos-trajectories
21
  ---
22
 
23
+ # Tholos-2B GGUF: local AI agents with Ollama and llama.cpp
 
 
 
 
 
 
24
 
25
+ GGUF builds of Tholos-2B, a small language model for AI agents that choose tools for tables, notes and tasks. **Tholos-2B passes 137/160 scenarios; MiniCPM5-2B passes 112/160** on Tholos-Bench with Q4_K_M, llama.cpp JSON schema decoding and one Kaggle T4. Only Tholos-2B was fine-tuned for this task format.
 
 
 
26
 
27
+ ## Run with Ollama
 
 
28
 
29
  ```sh
30
+ ollama pull hf.co/mertkayacs/Tholos-2B-GGUF:Q4_K_M && uv tool install git+https://github.com/mertkayacs/tholos && tholos
 
31
  ```
32
 
33
+ Open `http://127.0.0.1:7070`, select **Detect** in **Settings**, then add the model. The repo's `template` and `params` preserve the trained prompt format, stop tokens and 16,384-token context.
34
+
35
+ Direct Ollama clients should request `json_object` mode and `reasoning_effort: "none"`, then validate each step. Tholos does this for you and applies approval rules.
36
 
37
+ ## Run with llama.cpp
38
 
39
  ```sh
40
+ llama-server -hf mertkayacs/Tholos-2B-GGUF:Q4_K_M --jinja -c 16384 -t 4 -a tholos-2b --host 127.0.0.1 --port 8080
41
  ```
42
 
43
+ Use `json_schema` response format. The [complete request](https://huggingface.co/mertkayacs/Tholos-2B#run-with-llamacpp) shows the tool definitions, step schema and response loop.
 
 
44
 
45
+ ## Files
 
 
46
 
47
+ | Quantization | File size |
48
+ |---|---|
49
+ | [Q4_K_M](https://huggingface.co/mertkayacs/Tholos-2B-GGUF/resolve/main/Tholos-2B-Q4_K_M.gguf) | 1.56 GB |
50
+ | [Q8_0](https://huggingface.co/mertkayacs/Tholos-2B-GGUF/resolve/main/Tholos-2B-Q8_0.gguf) | 2.68 GB |
51
 
52
+ Use Q4_K_M to match the benchmark. [SHA256SUMS](https://huggingface.co/mertkayacs/Tholos-2B-GGUF/blob/main/SHA256SUMS) records the checksums. File size is not total runtime RAM.
53
 
54
+ ## Results and limits
 
55
 
56
+ With Q4_K_M on a CPU, Tholos-2B passes **134/160** with llama.cpp JSON schema, against **117/160 for MiniCPM5-2B**. With Ollama JSON mode and the repo template, the counts are **136/160** and **96/160**. Compare results within one setup.
57
+
58
+ English only. The model learned Tholos's thirteen tools; other formats are unmeasured. Validate calls, treat external text as untrusted, and keep approvals enabled for consequential actions.
59
 
60
+ Apache-2.0. [Full-precision weights, training and evaluation](https://huggingface.co/mertkayacs/Tholos-2B) | [Code](https://github.com/mertkayacs/tholos) | [Project](https://tholos.mertkayacs.com).
61
 
62
+ An [Eschatia Labs](https://eschatialabs.com) project. [Mert Kaya](https://mertkayacs.com).