Back to Talks
Small Language Models for Tool Calling Are Better Than You Think

Small Language Models for Tool Calling Are Better Than You Think

Gabi Kadlecova

Date
Wednesday, April 15, 2026
Time
2:20 PM - 2:50 PM
Room
Helium [3rd Floor]
Talk PyData: Natural Language Processing & Audio (incl. Generative AI NLP)
Transcription

Large language models have been widely used in tool-calling workflows thanks to their strong performance in generating appropriate function calls. However, due to their size and cost, they are inaccessible to small-scale builders, and server-side computing makes data privacy challenging. Small language models (SLMs) are a promising, affordable alternative that can run on local hardware, ensuring higher privacy.

Unfortunately, SLMs struggle with this task - they pass wrong arguments when calling functions with many parameters, and make mistakes when the conversation spans multiple turns. On the other hand, for production applications with specific API sets, we often don't need general-purpose LLMs - we need reliable, specialized models.

This talk demonstrates how to increase the accuracy of SLMs (under 8B parameters) for custom tool calling tasks. We will share how leveraging knowledge distillation helps to get the most out of SLMs in low-data settings - they can even outperform LLMs! We will present the whole pipeline from data generation, fine-tuning, and local deployment.

What you'll learn:

  1. Tool calling: Different tool calling settings (single and multi-turn)
  2. Distillation: Using large models as teachers to train specialized, compact models that maintain reliability with lower computational cost.
  3. Tool calling data generation: Challenges in generating diverse tool calling data.