File size: 2,294 Bytes
ba5456d
304f57a
 
 
 
 
 
 
 
 
ba5456d
 
 
304f57a
ba5456d
304f57a
ba5456d
304f57a
ba5456d
304f57a
 
 
 
 
 
 
ba5456d
304f57a
ba5456d
 
 
304f57a
ba5456d
304f57a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ba5456d
304f57a
ba5456d
304f57a
 
 
 
 
ba5456d
304f57a
ba5456d
304f57a
 
7bf41c3
ba5456d
304f57a
 
7bf41c3
ba5456d
304f57a
 
 
7bf41c3
304f57a
ba5456d
304f57a
ba5456d
d63a338
ba5456d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
---
license: apache-2.0
language:
  - en
tags:
  - ngari
  - sovereign-ai
  - edge-ai
  - qwen2.5
  - lora
base_model: Qwen/Qwen2.5-1.5B-Instruct
---

# NGARi Tool — Tool-Calling 1.5B

1.5B tool-calling model: Qwen2.5-1.5B-Instruct + tool-format LoRA. 100% tool detection / name / params validity on the NGARi tool-format eval (20 examples). Serves as the NGARi agent tool-mode model in production.

## Provenance (verified Aug 3, 2026)

| Attribute | Value |
|-----------|-------|
| Base model | `Qwen/Qwen2.5-1.5B-Instruct` (Apache 2.0) — pinned in `adapter_config.json` |
| LoRA | rank 32, alpha 64, dropout 0.05, all linear projections |
| Synthetic data teacher | `qwen3:8b` |
| License | Apache 2.0 (NGARi-authored artifacts) |
| Hardware validated | aarch64 / NVIDIA Jetson AGX Orin, 8GB RAM, air-gap verified |

> Note: Google Gemma models were **served only** on NGARi hardware and were never used in NGARi training. All training used the Apache-2.0 Qwen2.5 lineage.

## Evaluation

### ngari-tool-stable_tool_eval.json

```json
{
  "model": "ngari-tool:stable",
  "num_examples": 20,
  "total_examples": 20,
  "tool_detection_rate": 1.0,
  "tool_name_accuracy": 1.0,
  "params_validity_rate": 1.0,
  "tool_detected": 20,
  "name_correct": 20,
  "params_valid": 20,
  "avg_latency_sec": 3.17,
  "total_time_sec": 63.4
}
```

## Files

| File | Purpose |
|------|---------|
| `model-*.safetensors` (+ config) | Merged full model — use with Transformers |
| `adapter_model.safetensors` | PEFT LoRA adapter — apply on the base |
| `*-q4_K_M.gguf` / `*-f16.gguf` | GGUF — use with Ollama / llama.cpp |

## Usage

```bash
# Ollama (GGUF)
ollama create ngariai/ngari-tool:q4_K_M -f Modelfile

# Transformers (merged)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ngariai/ngari-tool")

# PEFT adapter (apply on base)
from peft import PeftModel
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-1.5B-Instruct")
adapter = PeftModel.from_pretrained(base, "ngariai/ngari-tool")
```

## Sovereign AI

Trained and verified on user-owned edge hardware with zero cloud dependency. Part of the NGARi Sovereign Business Operating System (NS-BOS) — see https://github.com/ngariai/ns-bos-kernel for the Apache 2.0 kernel.