How to use from
Docker Model Runner
docker model run hf.co/NGARiAI/ngari-tool:F16
Quick Links

NGARi Tool β€” Tool-Calling 1.5B

A 1.5B tool-calling model: Qwen2.5-1.5B-Instruct + tool-format LoRA, scoring 100% tool detection / 100% tool-name accuracy / 100% params validity on the NGARi tool-format eval.

This is the production tool-mode model in the NGARi Sovereign Business Operating System β€” the fast, lightweight router that lets on-device agents trigger tools, format function calls, and structure JSON without ever touching the cloud.

Why it exists β€” the NGARi model pipeline

Small models naturally struggle with the rigid syntax of function calling. NGARi solves this with a teacher→student pipeline:

Teacher (27B-class, e.g. qwen3.8-27B)
    β”‚  generates multi-turn tool-calling scenarios:
    β”‚  mock JSON schemas, user queries, correct API calls
    β–Ό
ngari-tool (1.5B)
    β”‚  fine-tuned on perfectly structured examples
    β–Ό
Result: 100% tool-format accuracy at edge speed (runs on 8GB RAM)

The companion QA/safety model is NGARiAI/ngari-ft-distilled.

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 (v1; 27B-class teacher planned for v2)
License Apache 2.0 (NGARi-authored artifacts)
Hardware validated aarch64 / NVIDIA Jetson AGX Orin, 8GB RAM, air-gap verified

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

Tool format β€” ngari-tool-stable_tool_eval.json

{
  "model": "ngari-tool:stable",
  "num_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
ngari-tool-q4_K_M.gguf / -f16.gguf GGUF β€” use with Ollama / llama.cpp

Usage

# Ollama (GGUF)
ollama create ngari-tool -f Modelfile
ollama run ngari-tool "What's the weather in Nairobi?"
# Transformers (merged)
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("NGARiAI/ngari-tool")

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

Companion repos

Sovereign AI

Trained and verified on user-owned edge hardware with zero cloud dependency. Verified air-gap (monitored via /proc/net/dev). "AI You Own. Completely."

Open Source Saturday

Published Saturday 28 November 2026 β€” we publish instead of discount. This card is part of Edition 001 of Open Source Saturday.

  • What this is: a 1.5B-class tool-calling checkpoint β€” Qwen2.5-1.5B-Instruct plus a tool-format LoRA β€” and the eval that scores it, in this repository.
  • What it is not: a general chat model, and not a claim that a small model replaces a frontier one. Tool calling is the job here; conversation is the sibling's.
  • The figures: the 100% tool metrics are from a 20-example eval whose per-example run is ngari-tool-stable_tool_eval.json in this repository. Twenty examples is a smoke test, not a benchmark.
  • Licence: Apache-2.0. Base model Qwen/Qwen2.5-1.5B-Instruct, Apache-2.0, unmodified except for the adapter.
  • Collection: the Open Source Saturday collection

Every figure on this card has a record beside it, and the card says what it refuses to claim. A number here with no record is a bug β€” report it.

Downloads last month
752
Safetensors
Model size
2B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for NGARiAI/ngari-tool

Adapter
(1,843)
this model

Dataset used to train NGARiAI/ngari-tool

Collections including NGARiAI/ngari-tool