LlamaDuo: LLMOps Pipeline for Seamless Migration from Service LLMs to Small-Scale Local LLMs

The widespread adoption of cloud-based proprietary large language models (LLMs) has introduced significant challenges, including operational dependencies, privacy concerns, and the necessity of continuous internet connectivity.In this work, we introduce an LLMOps pipeline, "LlamaDuo", for the seamless migration of knowledge and abilities from serviceoriented LLMs to smaller, locally manageable models.This pipeline is crucial for ensuring service continuity in the presence of operational failures, strict privacy policies, or offline requirements.Our LlamaDuo involves fine-tuning a small language model against the service LLM using a synthetic dataset generated by the latter.If the performance of the fine-tuned model falls short of expectations, it is automatically improved through additional fine-tuning using extra similar data generated by the service LLM.This multi-turn process guarantees that the smaller model can eventually match or even surpass the service LLM's capabilities in specific downstream tasks, offering a practical and scalable solution for managing AI deployments in constrained environments.Extensive experiments with leadingedge LLMs are conducted to demonstrate the effectiveness, adaptability, and affordability of LlamaDuo across various downstream tasks.Our pipeline implementation is available at https://github.com/deep-diver/llamaduo.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.acl-long.1592
Primary Topic
Scientific Computing and Data Management
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LlamaDuo: LLMOps Pipeline for Seamless Migration from Service LLMs to Small-Scale Local LLMs

Fan Wang, Chansung Park, Jing Tang, Juyong Jiang et al.
Scientific Computing and Data Management
article

LlamaDuo: LLMOps Pipeline for Seamless Migration from Service LLMs to Small-Scale Local LLMs

Fan Wang, Chansung Park, Jing Tang, Juyong Jiang, Sayak Paul
article en

Abstract

The widespread adoption of cloud-based proprietary large language models (LLMs) has introduced significant challenges, including operational dependencies, privacy concerns, and the necessity of continuous internet connectivity.In this work, we introduce an LLMOps pipeline, "LlamaDuo", for the seamless migration of knowledge and abilities from serviceoriented LLMs to smaller, locally manageable models.This pipeline is crucial for ensuring service continuity in the presence of operational failures, strict privacy policies, or offline requirements.Our LlamaDuo involves fine-tuning a small language model against the service LLM using a synthetic dataset generated by the latter.If the performance of the fine-tuned model falls short of expectations, it is automatically improved through additional fine-tuning using extra similar data generated by the service LLM.This multi-turn process guarantees that the smaller model can eventually match or even surpass the service LLM's capabilities in specific downstream tasks, offering a practical and scalable solution for managing AI deployments in constrained environments.Extensive experiments with leadingedge LLMs are conducted to demonstrate the effectiveness, adaptability, and affordability of LlamaDuo across various downstream tasks.Our pipeline implementation is available at https://github.com/deep-diver/llamaduo.

National Natural Science Foundation of China, Ministry of Science and ICT, South Korea, Guangzhou Municipal Science and Technology Bureau, Institute for Information and Communications Technology Promotion, Basic and Applied Basic Research Foundation of Guangdong Province
Openalex Percentile: Top 81%
Scientific Computing and Data Management
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.