tpls commited on
Commit
a9a5798
·
verified ·
1 Parent(s): 569c07f

dataset card (gate suite)

Browse files
Files changed (1) hide show
  1. README.md +35 -16
README.md CHANGED
@@ -15,13 +15,35 @@ configs:
15
 
16
  # Gemma-4 Coder — tool-calling gate suite
17
 
18
- The **evaluation suite** behind the `tool-call pass rate` reported in our model cards'
19
- `model-index`. 8 cases: positive tool-use prompts (the model must emit a structured
20
- tool call) plus a no-tool **abstain** case (it must answer directly, not hallucinate a call).
 
21
 
22
- Authored by us — fully permissive (apache-2.0). This is an *eval* set, not training data;
23
- our training mix is a derivative of public datasets and is **not** redistributed (its
24
- reproducible recipe — sources, pinned revisions, weights is on each model card).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
  ## Files
27
 
@@ -30,19 +52,16 @@ reproducible recipe — sources, pinned revisions, weights — is on each model
30
  | `tool_eval_cases.jsonl` | one case/line: `{name, user, tools, expect}` |
31
  | `tool_calib.txt` | imatrix calibration text (code + tool-call markup) used when quantizing |
32
 
33
- ## How it scores
34
-
35
- Serve a GGUF on `llama.cpp` (`llama-server --jinja`), send each case, and check whether a
36
- structured tool call was emitted (or correctly abstained). Two rates are reported:
37
- **raw** = llama.cpp's native parse; **shim** = the same output re-parsed for gemma-4's
38
- native markup (llama.cpp's `--jinja` doesn't recognise that format, so raw undercounts).
39
 
40
- ```python
41
- from datasets import load_dataset
42
- cases = load_dataset("tpls/gemma4-coder-tool-eval", split="train")
43
- ```
44
 
45
  ## Used by
46
 
 
 
47
  - [`tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5`](https://huggingface.co/tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5)
48
  - [`tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-GGUF`](https://huggingface.co/tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-GGUF)
 
15
 
16
  # Gemma-4 Coder — tool-calling gate suite
17
 
18
+ The 8-case eval behind the **tool-call pass rate** in our model cards' `model-index`:
19
+ positive prompts where the model must emit a structured tool call, plus a no-tool
20
+ **abstain** case (it must answer directly, not hallucinate a call). Use it to measure
21
+ any local tool-calling model the same way we do — or to reproduce our numbers.
22
 
23
+ ```python
24
+ from datasets import load_dataset
25
+ cases = load_dataset("tpls/gemma4-coder-tool-eval", split="train") # each: {name, user, tools, expect}
26
+ ```
27
+
28
+ ## Scoring a model
29
+
30
+ Serve a GGUF on `llama.cpp` (`llama-server --jinja`), send each case's `user` + `tools`
31
+ the normal OpenAI way, and check the reply against `expect`. **Two rates**, because
32
+ `llama.cpp --jinja` doesn't recognise gemma-4's native tool-call markup:
33
+
34
+ - **raw** — llama.cpp's native parse. For gemma-4 it *structurally undercounts* (blind to the format).
35
+ - **shim** — the same outputs re-parsed for the native markup. This is the number that reflects training.
36
+
37
+ The shim is a tiny serve-side post-processor — ready-to-use (drop-in litellm callback +
38
+ a standalone parser, Apache-2.0) at **[`tpls/gemma4-tool-shim`](https://huggingface.co/tpls/gemma4-tool-shim)**,
39
+ where the recovery algorithm is also documented so you can re-implement it.
40
+
41
+ ```python
42
+ # sketch: per case, POST to your OpenAI-compatible endpoint, then
43
+ # raw_ok = response had a structured tool_call (or correctly abstained)
44
+ # shim_ok = same, after running the reply through the shim parser
45
+ # pass_rate = mean(ok over the 8 cases). expect == [] means "must NOT call a tool".
46
+ ```
47
 
48
  ## Files
49
 
 
52
  | `tool_eval_cases.jsonl` | one case/line: `{name, user, tools, expect}` |
53
  | `tool_calib.txt` | imatrix calibration text (code + tool-call markup) used when quantizing |
54
 
55
+ ## Scope & license
 
 
 
 
 
56
 
57
+ Authored by us, fully permissive (apache-2.0). This is an **eval** set, not training data —
58
+ our training mix is a derivative of public datasets and is **not** redistributed (its
59
+ reproducible recipe lives on each model card). Pairs with the
60
+ [`tpls/gemma4-tool-shim`](https://huggingface.co/tpls/gemma4-tool-shim) helper and the models below.
61
 
62
  ## Used by
63
 
64
+ - [`tpls/Huihui-gemma-4-12B-coder-fable5-composer2.5-v1-abliterated-GGUF`](https://huggingface.co/tpls/Huihui-gemma-4-12B-coder-fable5-composer2.5-v1-abliterated-GGUF)
65
+ - [`tpls/gemma-4-12B-coder-fable5-composer2.5-v1-abliterated-GGUF`](https://huggingface.co/tpls/gemma-4-12B-coder-fable5-composer2.5-v1-abliterated-GGUF)
66
  - [`tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5`](https://huggingface.co/tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5)
67
  - [`tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-GGUF`](https://huggingface.co/tpls/gemma-4-12B-coder-fable5-composer2.5-v1-sft-v5-GGUF)