Text Generation
Transformers
Safetensors
GGUF
English
qwen3_5_text
hydra
coding-agent
tool-use
git
read-only
local-inference
llama.cpp
conversational
Eval Results (legacy)
Instructions to use rahul05ranjan/hydra-nano-git with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rahul05ranjan/hydra-nano-git with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="rahul05ranjan/hydra-nano-git") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("rahul05ranjan/hydra-nano-git") model = AutoModelForCausalLM.from_pretrained("rahul05ranjan/hydra-nano-git", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use rahul05ranjan/hydra-nano-git 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 rahul05ranjan/hydra-nano-git:Q8_0 # Run inference directly in the terminal: llama cli -hf rahul05ranjan/hydra-nano-git:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf rahul05ranjan/hydra-nano-git:Q8_0 # Run inference directly in the terminal: llama cli -hf rahul05ranjan/hydra-nano-git:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf rahul05ranjan/hydra-nano-git:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf rahul05ranjan/hydra-nano-git:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf rahul05ranjan/hydra-nano-git:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf rahul05ranjan/hydra-nano-git:Q8_0
Use Docker
docker model run hf.co/rahul05ranjan/hydra-nano-git:Q8_0
- LM Studio
- Jan
- vLLM
How to use rahul05ranjan/hydra-nano-git with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "rahul05ranjan/hydra-nano-git" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rahul05ranjan/hydra-nano-git", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/rahul05ranjan/hydra-nano-git:Q8_0
- SGLang
How to use rahul05ranjan/hydra-nano-git with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "rahul05ranjan/hydra-nano-git" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rahul05ranjan/hydra-nano-git", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "rahul05ranjan/hydra-nano-git" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "rahul05ranjan/hydra-nano-git", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use rahul05ranjan/hydra-nano-git with Ollama:
ollama run hf.co/rahul05ranjan/hydra-nano-git:Q8_0
- Unsloth Desktop
- Pi
How to use rahul05ranjan/hydra-nano-git with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rahul05ranjan/hydra-nano-git:Q8_0
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": "rahul05ranjan/hydra-nano-git:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use rahul05ranjan/hydra-nano-git with Docker Model Runner:
docker model run hf.co/rahul05ranjan/hydra-nano-git:Q8_0
- Lemonade
How to use rahul05ranjan/hydra-nano-git with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull rahul05ranjan/hydra-nano-git:Q8_0
Run and chat with the model
lemonade run user.hydra-nano-git-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use rahul05ranjan/hydra-nano-git with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rahul05ranjan/hydra-nano-git:Q8_0
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 rahul05ranjan/hydra-nano-git:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use rahul05ranjan/hydra-nano-git with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf rahul05ranjan/hydra-nano-git:Q8_0
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 "rahul05ranjan/hydra-nano-git:Q8_0" \ --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"
Publish validated normalized Q8 runtime: 874 of 1000 sealed tasks
Browse files- GGUF-EVALUATION.md +28 -7
- GGUF.md +25 -19
- README.md +124 -101
- hydra-nano-git-Q8_0.gguf +1 -1
GGUF-EVALUATION.md
CHANGED
|
@@ -1,7 +1,28 @@
|
|
| 1 |
-
# Converted-runtime
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
-
**
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
# Hydra Nano Git (`hydra-nano-git`)
|
| 23 |
-
|
| 24 |
-
[](https://opensource.org/licenses/Apache-2.0)
|
| 25 |
-
[](https://huggingface.co/rahul05ranjan/hydra-nano-git)
|
| 26 |
-
[](https://huggingface.co/rahul05ranjan/hydra-nano-git)
|
| 27 |
-
[](https://huggingface.co/rahul05ranjan/hydra-nano-git)
|
| 28 |
-
[](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 |
-
###
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
```
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
#
|
| 96 |
-
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
[](https://opensource.org/licenses/Apache-2.0)
|
| 25 |
+
[](https://huggingface.co/rahul05ranjan/hydra-nano-git)
|
| 26 |
+
[](https://huggingface.co/rahul05ranjan/hydra-nano-git)
|
| 27 |
+
[](https://huggingface.co/rahul05ranjan/hydra-nano-git)
|
| 28 |
+
[](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:
|
| 3 |
size 811843136
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e2b4c019247e71762ef412b5489436e3dbffc92bd23f5815624207dc0e93886
|
| 3 |
size 811843136
|