Tool Calling with Local LLMs: A Practical Evaluation
Docker benchmarked 21 local and hosted LLMs on tool calling using model-test, a harness that runs shopping-cart scenarios with multiple acceptable tool-call sequences inside a 5-round agent loop and scores invocation, tool selection and parameter accuracy as an F1 score. Over 3,570 tests on an M4 Max MacBook Pro, GPT-4 led at 0.974. Qwen3 14B was the best local model at 0.971 but took about 142 seconds per interaction, and Qwen3 8B reached 0.933 at roughly half that latency. Tool-tuned models such as watt-tool 8B and xLAM 8B scored poorly, and quantized variants performed no worse than full-precision ones.
Related posts
- Run, Test, and Evaluate Models and MCP Locally with Docker + Promptfoo
Docker mediumAdeptPromptfoo, Docker Model Runner and Docker MCP Toolkit can be combined to evaluate LLM apps entirely on a dev machine. Three worked configs are shown. The first compares local Gemma3 against Claude Opus 4.1 using llm-rubric and similarity assertions, graded by local smollm3 and mxbai embeddings instead of OpenAI. The second tests MCP tools directly (GitHub, Fetch, Playwright, YouTube transcript) through the MCP gateway. The third red-teams a GitHub-summarizer agent with MCP, PII, BOLA and BFLA plugins plus jailbreak and prompt-injection strategies, which exposed a tool-discovery vulnerability that was fixed with a prompt guideline.
- Run LLMs Locally with Docker: A Quickstart Guide to Model Runner
Docker mediumAdeptDocker Model Runner, in beta with Docker Desktop 4.40 on Apple silicon, pulls LLMs packaged as OCI artifacts and serves them through an OpenAI-compatible API backed by llama.cpp. Unlike `docker container run`, `docker model run` starts no container. The inference engine runs as a native host process for GPU acceleration, loads models on demand, and unloads them after 5 minutes of inactivity. Containers reach it at model-runner.docker.internal, and host processes can use an optional TCP port (12434), so any OpenAI client such as LangChain4j can point at it by setting a base URL and a model tag of the form {model}:{parameters}-{quantization}.
- How to Build, Run, and Package AI Models Locally with Docker Model Runner
Docker mediumAdeptDocker Model Runner, enabled as a beta feature in Docker Desktop 4.40+, pulls GGUF-format LLMs from Docker Hub or Hugging Face and runs them locally via the `docker model` CLI or an OpenAI-compatible HTTP endpoint on localhost. The guide walks through enabling the feature, pulling, tagging and pushing models to a local registry, one-shot and interactive prompts, curl calls to the chat completions API, and packaging your own .gguf file with a license as an OCI artifact. Constraints noted: only GGUF is supported, one model is loaded at a time, and models unload after 5 minutes idle. Compose v2.35+ can declare models as services and inject connection URLs into dependent containers.
- We got local models to triage the OpenClaw repo for FREE!*
Hugging Face mediumAdeptLocal open-weight models running in an agent harness on an NVIDIA GB10 (DGX Spark) can triage OpenClaw's GitHub issues and PRs in real time, routing only relevant topics to a maintainer via Discord. The localpager pipeline mirrors the repo with gitcrawl into SQLite, queues classification jobs, and runs a pi-based agent that can inspect code through a read-only, injection-resistant 'reposhell' before emitting schema-constrained labels; notification routing stays deterministic. On a 330-item consensus-labeled eval set, gemma-4-26b-a4b gave the highest recall (0.905) at 1.41 s/row with vLLM NVFP4 serving, while qwen3.6-35b-a3b gave better precision (0.831) and F1 (0.824) at ~10x the latency. A GPT-5.5 OpenClaw cron job re-labels every 2 hours to track false positives and negatives in production.
- AI-Powered Testing: Using Docker Model Runner with Microcks for Dynamic Mock APIs
Docker mediumAdeptMicrocks' AI Copilot can generate varied, realistic mock API responses using a local LLM served by Docker Model Runner through its OpenAI-compatible endpoint. The setup pulls a quantized Qwen3 8B model, points Microcks' application.properties at model-runner.docker.internal so containers talk to the runner directly, enables the copilot feature flag, and runs Microcks via Docker Compose. Generated samples can be added to mocked operations and exercised with curl, and declaring the model in compose.yml makes the test setup reproducible.