rahul05ranjan commited on
Commit
ff1c723
Β·
verified Β·
1 Parent(s): 5277298

Publish validated normalized Q8 runtime: 874 of 1000 sealed tasks

Browse files
Files changed (4) hide show
  1. GGUF-EVALUATION.md +28 -7
  2. GGUF.md +25 -19
  3. README.md +124 -101
  4. hydra-nano-git-Q8_0.gguf +1 -1
GGUF-EVALUATION.md CHANGED
@@ -1,7 +1,28 @@
1
- # Converted-runtime accuracy status (2026-10-12)
2
-
3
- The Q8_0 GGUF/llama.cpp path completed 989/1000 sealed Git tasks within the approved Kaggle run: 283 solved (28.6% of completed tasks). The 30-minute run limit prevented completion; a full score is not available. Overall accuracy across all 1000 is bounded between 28.3% and 29.4%, regardless of the remaining 11 tasks.
4
-
5
- This is a substantial regression from the historical Ollama result. Native Windows installation and readiness checks pass, but Git planning on this converted path needs development-set diagnosis. No prompts, training examples or model weights were changed using sealed failures. No extra GPU run was launched.
6
-
7
- Source and model downloads are published; successful installation does not establish planning accuracy. GGUF provenance remains in GGUF.md.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Converted-runtime validation (2026-10-12)
2
+
3
+ Corrected Q8_0 GGUF / llama.cpp b11563 / Hydra completed all approved tasks on Kaggle T4:
4
+
5
+ | Set | Solved | Plan accuracy | Errors/timeouts |
6
+ | --- | --- | --- | --- |
7
+ | Development | 167/200 (83.5%) | 85.0% | 0 |
8
+ | Sealed git1 | 874/1000 (87.4%) | 87.8% | 0 |
9
+
10
+ Usage-weighted sealed solved accuracy: 86.83%. Completed job elapsed 330.3 seconds,
11
+ including setup and both evaluations. GPU memory and frozen source/model hashes
12
+ passed. Three validation attempts together remained under the original 30-minute
13
+ execution approval; uploads and GPU queue wait took additional wall-clock time.
14
+
15
+ The model weights received no new training. Repairs reversed MLX export conventions,
16
+ fixed JSON-schema transport, grounded named blame evidence, and used development-only
17
+ planning examples. Development generation/gold bugs (timestamps, absolute worktree paths,
18
+ incorrect stash labels) were repaired before final scoring. Sealed inputs and scoring
19
+ were unchanged; only sealed aggregate results were inspected. Planning/evidence changes
20
+ were based on development tasks, not sealed failures.
21
+
22
+ The old GGUF/runtime path's 283/989 (28.6%) partial result remains archived, along with
23
+ intermediate development/diagnostic results and their limitations. It does not score
24
+ this corrected artifact. These are Git benchmark scores, not guarantees for all
25
+ heads or proof of actual-agent token savings.
26
+
27
+ [Aggregate receipt](https://github.com/rahul05ranjan/hydra/blob/main/evals/results/kaggle-corrected/SUMMARY.json)
28
+ contains the model hash and frozen source provenance. GGUF.md describes conversion.
GGUF.md CHANGED
@@ -1,19 +1,25 @@
1
-
2
- **Converted-runtime caveat:** The Q8/llama.cpp path solved 283/989 completed sealed tasks (28.6%) before its 30-minute limit. Full score is unavailable; the all-1000 upper bound is 29.4%. See [GGUF-EVALUATION.md](GGUF-EVALUATION.md). Development-set diagnosis is needed before relying on Git planning.
3
-
4
- # GGUF runtime artifact
5
-
6
- `hydra-nano-git-Q8_0.gguf` is converted from source revision `05d850ee62e55e2921e9ec970a9636109daa85e7`.
7
- Conversion/quantization uses llama.cpp `b11563`; SHA-256: `6c3fd0a7d4a74cb72c54633ab73d338c1a6d08b25219be1c41bababf34dffd9a`.
8
- Size: 811843136 bytes. This is a format conversion and Q8_0 quantization, with no new training.
9
-
10
- Run with a recent llama-server:
11
-
12
- ```bash
13
- llama-server -m hydra-nano-git-Q8_0.gguf --alias hydra-nano:git --host 127.0.0.1 --port 8080 -c 8192
14
- ```
15
-
16
- Hydra's installer verifies this file's hash. The initial bootstrap shares this Git model across heads;
17
- it does not download five separate specialist models. Native Windows smoke checks pass;
18
- the previous Ollama score does not establish this converted runtime's accuracy.
19
- Token savings in actual-agent workflows remain unproven.
 
 
 
 
 
 
 
1
+ # Validated GGUF runtime artifact
2
+
3
+ `hydra-nano-git-Q8_0.gguf` derives from fused MLX source revision
4
+ `05d850ee62e55e2921e9ec970a9636109daa85e7` without additional training.
5
+ Hydra's `train/normalize_mlx.py` reverses MLX tensor naming, convolution layout,
6
+ and RMSNorm offset before llama.cpp b11563 F16 conversion and Q8_0 quantization.
7
+
8
+ SHA-256: `2e2b4c019247e71762ef412b5489436e3dbffc92bd23f5815624207dc0e93886`.
9
+ Size: 811843136 bytes.
10
+
11
+ ```bash
12
+ npx --yes --package=github:rahul05ranjan/hydra hydra-install
13
+ ```
14
+
15
+ Manual server:
16
+
17
+ ```bash
18
+ llama-server -m hydra-nano-git-Q8_0.gguf --alias hydra-nano:git --host 127.0.0.1 --port 8080 -c 8192
19
+ ```
20
+
21
+ With corrected Hydra transport/prompt/evidence handling, private Kaggle T4 validation
22
+ solved 167/200 development tasks (83.5%) and 874/1000 sealed tasks (87.4%; weighted
23
+ 86.83%), with zero errors/timeouts. See GGUF-EVALUATION.md for provenance and limits.
24
+ The initial bootstrap shares this Git model across heads, rather than downloading
25
+ five independent specialist models. Actual-agent token savings remain unproven.
README.md CHANGED
@@ -1,101 +1,124 @@
1
- ---
2
- language:
3
- - en
4
- license: apache-2.0
5
- tags:
6
- - hydra
7
- - enterprise
8
- - git
9
- - code
10
- - agent
11
- - tool-use
12
- - coding-assistant
13
- - mlx
14
- - safetensors
15
- pipeline_tag: text-generation
16
- base_model: Qwen/Qwen3.5-0.8B
17
- ---
18
- **Converted-runtime caveat:** The Q8/llama.cpp path solved 283/989 completed sealed tasks (28.6%) before its 30-minute limit. Full score is unavailable; the all-1000 upper bound is 29.4%. See [GGUF-EVALUATION.md](GGUF-EVALUATION.md). Development-set diagnosis is needed before relying on Git planning.
19
-
20
-
21
-
22
- # Hydra Nano Git (`hydra-nano-git`)
23
-
24
- [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
25
- [![Parameters](https://img.shields.io/badge/Parameters-752M-green.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
26
- [![Latency](https://img.shields.io/badge/Latency-~140ms-orange.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
27
- [![Architecture](https://img.shields.io/badge/Architecture-Dense%20Hybrid%20Attention-purple.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
28
- [![Enterprise Ready](https://img.shields.io/badge/Enterprise-Verified-brightgreen.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
29
-
30
- **Hydra Nano Git** is an enterprise-grade, specialized local coprocessor trained to handle read-only repository inspection, history auditing, branch analysis, and diff navigation for autonomous frontier coding agents (such as Claude Code, Antigravity, and Codex).
31
-
32
- ---
33
-
34
- ## πŸ›οΈ Executive Summary & Value Proposition
35
-
36
- Frontier coding agents waste **70% to 90%** of their expensive context window and API rate limits dumping voluminous raw CLI outputs (`git log`, `git diff`, `git status`).
37
-
38
- Hydra Nano solves this by acting as a **deterministic local coprocessor**:
39
- 1. **Zero Shell Command Risk:** The model never generates raw shell commands. It selects strictly bounded read-only probes from a hardened menu (`status`, `log`, `diff`, `show`, `blame`, `branches`, `stash`, `worktrees`).
40
- 2. **Grounded Runtime Verification:** Strict parameter validation ensures branch names, commit hashes, authors, and file paths exist before execution.
41
- 3. **Extreme Token Savings:** Preserves high-value frontier context while maintaining 100% factual fidelity.
42
- 4. **Sub-second Local Inference:** ~140ms per task on Apple Silicon M-series GPUs and modern local accelerators.
43
-
44
- ---
45
-
46
- ## πŸ“Š Proven Benchmark & Evaluation
47
-
48
- Evaluated across the sealed 1,000-task `git1` benchmark and development suites:
49
-
50
- | Metric | Score | Industry Standard |
51
- |---|---|---|
52
- | **Plan Accuracy** | **83.0%** | Plan selection for diverse git queries |
53
- | **Sealed Task Solved Rate** | **77.0%** | Usage-weighted solved accuracy on sealed benchmark |
54
- | **High-Frequency Query Solved Rate** | **90% - 100%** | `branch_current` (100%), `last_commit` (100%), `modified_files` (90%), `staged_files` (90%) |
55
- | **Inference Latency** | **~140ms** | Local Apple Silicon M-series GPU |
56
- | **Token Reduction** | **73.3% - 88.4%** | Average context reduction compared to raw git dumps |
57
-
58
- ---
59
-
60
- ## πŸš€ Quickstart & Usage
61
-
62
- ### Via Ollama
63
- ```bash
64
- ollama run rahul05ranjan/hydra-nano-git
65
- ```
66
-
67
- ### Via Hydra CLI
68
- ```bash
69
- hydra ask --head git "which branch am I on and what files are modified?"
70
- ```
71
-
72
- ### Via Python (`transformers`)
73
- ```python
74
- from transformers import AutoModelForCausalLM, AutoTokenizer
75
-
76
- model_id = "rahul05ranjan/hydra-nano-git"
77
- tokenizer = AutoTokenizer.from_pretrained(model_id)
78
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="auto", device_map="auto")
79
-
80
- prompt = "Which commits did alice touch last week?"
81
- inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
82
- outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.0)
83
- print(tokenizer.decode(outputs[0], skip_special_tokens=True))
84
- ```
85
-
86
- ---
87
-
88
- ## πŸ”’ Security & Safe Execution Policy
89
-
90
- - **Read-Only Guarantee:** Does not support state-mutating operations (`git commit`, `git push`, `git rebase`, `git reset`).
91
- - **No Prompt Injection Shell Escalation:** Command generation is entirely programmatic; model outputs strictly conform to a JSON probe schema.
92
-
93
- ---
94
-
95
- ## πŸ“œ Specifications
96
-
97
- - **Base Architecture:** Qwen3.5-0.8B Dense Hybrid Attention
98
- - **Parameters:** 752.39M
99
- - **Max Context Window:** 262,144 tokens (8,192 default in Ollama)
100
- - **Precision:** BF16 / INT8 Quantized
101
- - **License:** Apache 2.0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: apache-2.0
5
+ tags:
6
+ - hydra
7
+ - enterprise
8
+ - git
9
+ - code
10
+ - agent
11
+ - tool-use
12
+ - coding-assistant
13
+ - mlx
14
+ - safetensors
15
+ pipeline_tag: text-generation
16
+ base_model: Qwen/Qwen3.5-0.8B
17
+ ---
18
+ **Validated llama.cpp runtime (2026-10-12):** Corrected Q8 GGUF with Hydra solved 167/200 development tasks (83.5%) and 874/1000 sealed Git tasks (87.4%; 86.83% usage-weighted), with zero errors/timeouts. No additional training was used. See [GGUF-EVALUATION.md](GGUF-EVALUATION.md).
19
+
20
+
21
+
22
+ # Hydra Nano Git (`hydra-nano-git`)
23
+
24
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
25
+ [![Parameters](https://img.shields.io/badge/Parameters-752M-green.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
26
+ [![Latency](https://img.shields.io/badge/Latency-~140ms-orange.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
27
+ [![Architecture](https://img.shields.io/badge/Architecture-Dense%20Hybrid%20Attention-purple.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
28
+ [![Enterprise Ready](https://img.shields.io/badge/Enterprise-Verified-brightgreen.svg)](https://huggingface.co/rahul05ranjan/hydra-nano-git)
29
+
30
+ **Hydra Nano Git** is an enterprise-grade, specialized local coprocessor trained to handle read-only repository inspection, history auditing, branch analysis, and diff navigation for autonomous frontier coding agents (such as Claude Code, Antigravity, and Codex).
31
+
32
+ ---
33
+
34
+ ## πŸ›οΈ Executive Summary & Value Proposition
35
+
36
+ Frontier coding agents waste **70% to 90%** of their expensive context window and API rate limits dumping voluminous raw CLI outputs (`git log`, `git diff`, `git status`).
37
+
38
+ Hydra Nano solves this by acting as a **deterministic local coprocessor**:
39
+ 1. **Zero Shell Command Risk:** The model never generates raw shell commands. It selects strictly bounded read-only probes from a hardened menu (`status`, `log`, `diff`, `show`, `blame`, `branches`, `stash`, `worktrees`).
40
+ 2. **Grounded Runtime Verification:** Strict parameter validation ensures branch names, commit hashes, authors, and file paths exist before execution.
41
+ 3. **Extreme Token Savings:** Preserves high-value frontier context while maintaining 100% factual fidelity.
42
+ 4. **Sub-second Local Inference:** ~140ms per task on Apple Silicon M-series GPUs and modern local accelerators.
43
+
44
+ ---
45
+
46
+ ## πŸ“Š Proven Benchmark & Evaluation
47
+
48
+ Evaluated across the sealed 1,000-task `git1` benchmark and development suites:
49
+
50
+ | Metric | Score | Industry Standard |
51
+ |---|---|---|
52
+ | **Plan Accuracy** | **83.0%** | Plan selection for diverse git queries |
53
+ | **Sealed Task Solved Rate** | **77.0%** | Usage-weighted solved accuracy on sealed benchmark |
54
+ | **High-Frequency Query Solved Rate** | **90% - 100%** | `branch_current` (100%), `last_commit` (100%), `modified_files` (90%), `staged_files` (90%) |
55
+ | **Inference Latency** | **~140ms** | Local Apple Silicon M-series GPU |
56
+ | **Token Reduction** | **73.3% - 88.4%** | Average context reduction compared to raw git dumps |
57
+
58
+ ---
59
+
60
+ ## πŸš€ Quickstart & Usage
61
+
62
+ ### One-command llama.cpp installation (default)
63
+
64
+ ```bash
65
+ npx --yes --package=github:rahul05ranjan/hydra hydra-install
66
+ ```
67
+
68
+ ### Via Ollama
69
+
70
+ The following command requires an existing local import/alias. This Hub publication does not publish an Ollama registry manifest.
71
+ ```bash
72
+ ollama run rahul05ranjan/hydra-nano-git
73
+ ```
74
+
75
+ ### Via Hydra CLI
76
+ ```bash
77
+ hydra ask --head git "which branch am I on and what files are modified?"
78
+ ```
79
+
80
+ ### Via Python (`transformers`)
81
+
82
+ The root safetensors are fused MLX weights. First use Hydra's
83
+ [`train/normalize_mlx.py`](https://github.com/rahul05ranjan/hydra/blob/main/train/normalize_mlx.py)
84
+ to adapt tensor names, convolution layout and RMSNorm conventions; skip the obsolete shard index.
85
+ Do not load the root checkpoint directly as a Transformers model.
86
+
87
+ ```bash
88
+ python train/normalize_mlx.py --source ./source-mlx --destination ./hf-text
89
+ ```
90
+
91
+ ```python
92
+ from transformers import AutoModelForCausalLM, AutoTokenizer
93
+
94
+ # ./source-mlx contains the pinned source revision's model.safetensors,
95
+ # config/tokenizer files and chat_template.jinja, without *.index.json.
96
+ model_id = "./hf-text"
97
+ tokenizer = AutoTokenizer.from_pretrained(model_id)
98
+ model = AutoModelForCausalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
99
+ messages = [{"role": "user", "content": "Choose a read-only Git probe for the current branch; reply with JSON."}]
100
+ inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True,
101
+ enable_thinking=False, return_tensors="pt", return_dict=True).to(model.device)
102
+ outputs = model.generate(**inputs, max_new_tokens=512, do_sample=False,
103
+ eos_token_id=tokenizer.eos_token_id, pad_token_id=tokenizer.pad_token_id)
104
+ print(tokenizer.decode(outputs[0, inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
105
+ ```
106
+
107
+ ---
108
+
109
+ ## πŸ”’ Security & Safe Execution Policy
110
+
111
+ The execution guarantees below apply to Hydra CLI and its fixed probe menu; standalone model generation does not execute Git.
112
+
113
+ - **Read-Only Guarantee:** Does not support state-mutating operations (`git commit`, `git push`, `git rebase`, `git reset`).
114
+ - **No Prompt Injection Shell Escalation:** Command generation is entirely programmatic; model outputs strictly conform to a JSON probe schema.
115
+
116
+ ---
117
+
118
+ ## πŸ“œ Specifications
119
+
120
+ - **Base Architecture:** Qwen3.5-0.8B Dense Hybrid Attention
121
+ - **Parameters:** 752.39M
122
+ - **Max Context Window:** 262,144 tokens (8,192 default in Ollama)
123
+ - **Precision:** BF16 / INT8 Quantized
124
+ - **License:** Apache 2.0
hydra-nano-git-Q8_0.gguf CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:6c3fd0a7d4a74cb72c54633ab73d338c1a6d08b25219be1c41bababf34dffd9a
3
  size 811843136
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e2b4c019247e71762ef412b5489436e3dbffc92bd23f5815624207dc0e93886
3
  size 811843136