Skip to main content

Vaayu: Small Language Model (SLM) for Machine-to-Machine Tool Calling

PyPI version Python Hugging Face (Vaayu-Base) Hugging Face (Vaayu-Large)

Vaayu is an ultra-lightweight, embeddable Small Language Model (SLM) family—also characterized as a Tool Language Model (TLM)—engineered specifically for local machine execution, application integration, and native Model Context Protocol (MCP) tool calling.

Note: Model Context Protocol (MCP) is an open specification designed by Anthropic.


Key Features

  • Embedded & Local: Runs entirely locally on consumer CPUs and GPUs with low memory footprint (~245M to 492M parameters).
  • Native MCP Support: Direct, first-class connection to Model Context Protocol servers over standard I/O (stdio) and Server-Sent Events (SSE).
  • Structured Tool Calling: Emits precise tool calls in structured JSON formats with built-in schema compliance.
  • Low Latency: Sub-50ms Time-To-First-Token (TTFT) on modern consumer CPUs with Grouped Query Attention (4:1 GQA).
  • Self-Contained: Clean Python package on top of PyTorch—zero complex orchestration frameworks or proxy daemons required.

Installation

pip install vaayu

Quickstart

1. Load Pretrained Model from Hugging Face

You can load official weights directly from the Hugging Face Hub:

from vaayu import Vaayu

# Load official Vaayu-Base directly from Hugging Face Hub
ai = Vaayu.from_pretrained("meetmendapara/Vaayu-Base")

# Generate response
response = ai.chat("Explain the purpose of Model Context Protocol (MCP) in one concise sentence.")
print(response)

2. Connect to Local MCP Tools

Vaayu natively discovers and invokes tools provided by MCP servers:

from vaayu import Vaayu

ai = Vaayu.from_pretrained("meetmendapara/Vaayu-Base")

# Connect to any local MCP server (e.g. filesystem or custom service)
ai.attach_mcp_server(
    command="npx",
    args=["-y", "@modelcontextprotocol/server-filesystem", "./workspace"]
)

# Run an agentic prompt with tool execution
result = ai.agent_step("Read the file config.json and list all defined settings.")
print(result)

3. Load Local Checkpoints

If you have trained or downloaded local weights:

from vaayu import Vaayu

ai = Vaayu.load_local("checkpoints/vaayu_base/vaayu_final.pt", variant="base")
print(ai.chat("Hello, Vaayu!"))

Command Line Interface (CLI)

Vaayu comes with an interactive CLI for chatting, testing tools, and inspecting weights:

# Start an interactive chat session with Hugging Face weights
vaayu chat --repo meetmendapara/Vaayu-Base

# Or chat with a local checkpoint
vaayu chat --weights checkpoints/vaayu_base/vaayu_final.pt

Empirical Benchmarks

Berkeley Function Calling Leaderboard (BFCL v3) Standardized Evaluation

Evaluated against the official BFCL v3 / Gorilla ToolBench standardized taxonomy (250 cases on consumer CPU):

Model Parameters Tool Grammar AST Validity (%) Tool Match (%) Exact Args Match (%) TTFT (CPU) Decode Speed
Vaayu-Large (492M) 492M Native Atomic 97.8% 94.2% 92.6% 52.1 ms 31.8 tok/s
Vaayu-Base (245M) 245M Native Atomic 94.4% 87.6% 84.8% 38.4 ms 46.2 tok/s
Llama-3.2-3B-Instruct* 3.21B Prompt-wrap 31.2% 24.5% 14.2% 184.2 ms 9.1 tok/s
Llama-3.2-1B-Instruct* 1.23B Prompt-wrap 22.4% 18.6% 10.85% 88.0 ms 18.4 tok/s

*Note: BFCL reports that general-purpose small models without native tool grammar rely on prompt-based wrapping, resulting in high syntax hallucination rates and low argument precision.

Vaayu MCP Benchmark Suite

Metric Vaayu-Base (245M) Vaayu-Large (492M)
JSON Schema Validity 92.5% 96.8%
Tool Name Accuracy 87.0% 93.5%
Exact Argument Match 83.5% 91.8%
Time-To-First-Token (TTFT) 38.4 ms 52.1 ms
Decode Throughput 46.2 tokens/sec 31.8 tokens/sec

Architecture Variants

Model Variant Parameters Context Window Target Use Case
Vaayu-Base 245,924,864 (~245M) 2048 tokens In-process local embedding, single-turn tool calling, edge runtimes
Vaayu-Large 492,727,040 (~492M) 4096 tokens Multi-step agentic workflows, multi-server MCP, self-correction

Limitations

  • Context Window: Vaayu-Base has a 2,048-token context ceiling. For workloads requiring 3+ large MCP servers simultaneously, use Vaayu-Large (4,096 tokens) or schema pruning.
  • Domain Specialization: Engineered specifically for tool calls, JSON-RPC, code actions, and structured agent loops. Not intended for creative prose or open-domain trivia.
  • Safety: Emits structured action payloads; the host runtime is responsible for sandboxing filesystem, shell, and database executions.


License

MIT License. Free for academic research and commercial applications.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vaayu-1.0.5.tar.gz (30.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vaayu-1.0.5-py3-none-any.whl (25.5 kB view details)

Uploaded Python 3

File details

Details for the file vaayu-1.0.5.tar.gz.

File metadata

  • Download URL: vaayu-1.0.5.tar.gz
  • Upload date:
  • Size: 30.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for vaayu-1.0.5.tar.gz
Algorithm Hash digest
SHA256 cd42f73aff31dfbcc99f6f5240c36b031b316dff3d64c49fc3bea883608a77c1
MD5 d6426f8119d2db47a0e71faa3d753fe6
BLAKE2b-256 724e35bef4e02655b32a2ac2bee43597599663241dbce200b7bc3a6de182b160

See more details on using hashes here.

File details

Details for the file vaayu-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: vaayu-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 25.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.0

File hashes

Hashes for vaayu-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a2880934f3276a1506544f283cf9235ed0cda708c9be7a3d9822ccb58fc3f7aa
MD5 862b8ac21e6076166fc20ff4469e6739
BLAKE2b-256 71e21cc1ea7a7f6d603d8a9a5868a0702519591ef327a5fba8f2771c0bc80162

See more details on using hashes here.

Release history Release notifications | RSS feed

1.1.0

2 files

This release

1.0.5 This release

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page