paper-with-me

Papers

TinyAgent: Function Calling at the Edge

2024-09-01 · Lutfi Eren Erdogan, Nicholas Lee, Siddharth Jha, Sehoon Kim, Ryan Tabrizi, Suhong Moon, Coleman Hooper, Gopala Anumanchipalli, Kurt Keutzer, Amir Gholami

Recent large language models (LLMs) have enabled the development of advanced agentic systems that can integrate various tools and APIs to fulfill user queries through function calling. However, the deployment of these LLMs on the edge has not been explored since they typically require cloud-based infrastructure due to their substantial model size and computational demands. To this end, we present TinyAgent, an end-to-end framework for training and deploying task-specific small language model agents capable of function calling for driving agentic systems at the edge. We first show how to enable accurate function calling for open-source models via the LLMCompiler framework. We then systematically curate a high-quality dataset for function calling, which we use to fine-tune two small language models, TinyAgent-1.1B and 7B. For efficient inference, we introduce a novel tool retrieval method to reduce the input prompt length and utilize quantization to further accelerate the inference speed. As a driving application, we demonstrate a local Siri-like system for Apple's MacBook that can execute user commands through text or voice input. Our results show that our models can achieve, and even surpass, the function-calling capabilities of larger models like GPT-4-Turbo, while being fully deployed at the edge. We open-source our dataset, models, and installable package and provide a demo video for our MacBook assistant agent.

📄 PDF Abstract BibTeX arXiv:2409.00608

Code (1)

squeezeailab/tinyagent 공식 구현

Tasks

Language ModellingQuantizationSmall Language Model

Similar Papers 제목 키워드 기반

TinyLLM: Evaluation and Optimization of Small Language Models for Agentic Tasks on Edge Devices

2025-11-27 · Mohd Ariful Haque, Fahad Rahman, Kishor Datta Gupta, Khalil Shujaee 외 arxiv

This paper investigates the effectiveness of small language models (SLMs) for agentic tasks (function/tool/API calling) with a focus on running agents on edge devices without reliance on cloud infrastructure. We evaluate…

parameter-efficient fine-tuningReinforcement Learning

Natural GaLore: Accelerating GaLore for memory-efficient LLM Training and Fine-tuning

2024-10-21 · Arijit Das

Training LLMs presents significant memory challenges due to growing size of data, weights, and optimizer states. Techniques such as data and model parallelism, gradient checkpointing, and offloading strategies address th…

parameter-efficient fine-tuning

Less is More: Optimizing Function Calling for LLM Execution on Edge Devices

2024-11-23 · Varatheepan Paramanayakam, Andreas Karatzas, Iraklis Anagnostopoulos, Dimitrios Stamoulis

The advanced function-calling capabilities of foundation models open up new possibilities for deploying agents to perform complex API tasks. However, managing large amounts of data and interacting with numerous APIs make…

Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks

2024-06-27 · Ibrahim Abdelaziz, Kinjal Basu, Mayank Agarwal, Sadhana Kumaravel 외

Large language models (LLMs) have recently shown tremendous promise in serving as the backbone to agentic systems, as demonstrated by their performance in multi-faceted, challenging benchmarks like SWE-Bench and Agent-Be…

Multi-Task LearningResponse Generation

An LLM Compiler for Parallel Function Calling

2023-12-07 · Sehoon Kim, Suhong Moon, Ryan Tabrizi, Nicholas Lee 외

The reasoning capabilities of the recent LLMs enable them to execute external function calls to overcome their inherent limitations, such as knowledge cutoffs, poor arithmetic skills, or lack of access to private data. T…