LlamaDuo: LLMOps Pipeline for Seamless Migration from Service LLMs to Small-Scale Local LLMs
Not on the map. Why?
Abstract (arXiv)
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 service-oriented 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 leading-edge 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.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 36 of its 54 references that are in the map. First posted on arXiv 24 Aug 2024.
Builds on
36 of 54 references.
References · 36
- 2023GPT-4 Technical Reportcited by 18,132
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2023Mistral 7Bcited by 3,065
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2022Self-Instruct: Aligning Language Models with Self-Generated Instructionscited by 2,674
24 more
- 2023A Survey of Large Language Modelscited by 2,537
- 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,883
- 2024Mixtral of Expertscited by 1,785
- 2023A Survey on Evaluation of Large Language Modelscited by 1,227
- 2023LIMA: Less Is More for Alignmentcited by 1,080
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 734
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2024Self-Rewarding Language Modelscited by 654
- 2024A Survey on Large Language Models for Code Generationcited by 646
- 2023A Comprehensive Overview of Large Language Modelscited by 639
- 2023Instruction Tuning for Large Language Models: A Surveycited by 617
- 2024Security and Privacy Challenges of Large Language Models: A Surveycited by 179
- 2022Impact of Pretraining Term Frequencies on Few-Shot Reasoningcited by 142
- 2024Best Practices and Lessons Learned on Synthetic Datacited by 104
- 2020Training Question Answering Models From Synthetic Datacited by 95
- 2024Keeping LLMs Aligned After Fine-tuning: The Crucial Role of Prompt Templatescited by 94
- 2024A Survey on Data Selection for LLM Instruction Tuningcited by 76
- 2023Unveiling Security, Privacy, and Ethical Concerns of ChatGPTcited by 53
- 2023LLM-powered Data Augmentation for Enhanced Cross-lingual Performancecited by 51
- 2023Let's Synthesize Step by Step: Iterative Dataset Synthesis with Large Language Models by Extrapolating Errors from Small Modelscited by 30
- 2024HyperCLOVA X Technical Reportcited by 18
- 2023PULSAR at MEDIQA-Sum 2023: Large Language Models Augmented by Synthetic Dialogue Convert Patient Dialogues to Medical Recordscited by 11
- 2023Can LLMs Augment Low-Resource Reading Comprehension Datasets? Opportunities and Challengescited by 9
- 2023Improving Small Language Models on PubMedQA via Generative Data Augmentationcited by 6
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 4.
8 papers.
- 2025A Strategic Coordination Framework of Small LLMs Matches Large LLMs in Data Synthesiscited by 9
- 2024KaSA: Knowledge-Aware Singular-Value Adaptation of Large Language Modelscited by 8
- 2025Middo: Model-Informed Dynamic Data Optimization for Enhanced LLM Fine-Tuning via Closed-Loop Learningcited by 7
- 2025A Survey on Collaborating Small and Large Language Models for Performance, Cost-effectiveness, Cloud-edge Privacy, and Trustworthinesscited by 5
- 2026ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learningcited by 5
- 2026TAROT: Test-driven and Capability-adaptive Curriculum Reinforcement Fine-tuning for Code Generation with Large Language Modelscited by 1
- 2026WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learningcited by 1
- 2026FourierMoE: Fourier Mixture-of-Experts Adaptation of Large Language Modelscited by 0
- 2026WebGen-R1: Incentivizing Large Language Models to Generate Functional and Aesthetic Websites with Reinforcement Learning22 Apr 2026
- 2026FourierMoE: Fourier Mixture-of-Experts Adaptation of Large Language Models2 Apr 2026
- 2026ReflexiCoder: Teaching Large Language Models to Self-Reflect on Generated Code and Self-Correct It via Reinforcement Learning6 Mar 2026
- 2026TAROT: Test-driven and Capability-adaptive Curriculum Reinforcement Fine-tuning for Code Generation with Large Language Models17 Feb 2026
- 2025A Survey on Collaborating Small and Large Language Models for Performance, Cost-effectiveness, Cloud-edge Privacy, and Trustworthiness14 Oct 2025
- 2025Middo: Model-Informed Dynamic Data Optimization for Enhanced LLM Fine-Tuning via Closed-Loop Learning29 Aug 2025
- 2025A Strategic Coordination Framework of Small LLMs Matches Large LLMs in Data Synthesis11 Apr 2025
- 2024KaSA: Knowledge-Aware Singular-Value Adaptation of Large Language Models8 Dec 2024