Abstract: In the era of large language models (LLMs), Small Language Models (SLMs) are emerging as powerful alternatives for specialized tasks. This workshop explores the potential of SLMs and demonstrates how a collection of fine-tuned SLMs can often outperform a single multi-purpose LLM for many use cases.
Workshop Highlights:
Model Distillation: Learn how to distill the intelligence of an open-source large language model (Llama 3.1 405B) into a smaller, more efficient model (Llama 3.1 8B).
Performance Optimization: Discover techniques to maintain quality and accuracy while achieving:
3x increase in processing speed
66% reduction in operational costs
Real-world Application: Using an open-source healthcare dataset, we'll demonstrate how to leverage the expertise of the 405B model to fine-tune the 8B model for specialized medical tasks.
Hands-on Experience: Follow a step-by-step guide to create your own production-ready 8B model, tailored for specific use cases.
By the end of this workshop, participants will have practical knowledge of SLM fine-tuning and distillation techniques, enabling them to create powerful, efficient, and domain-specific language models for their unique applications.
Session Outline:
Lesson 1: Introduction to Model Distillation
Discover the benefits for model distillation, especially when dealing with limited labeled data and computing resources. By the end, you'll understand how distillation helps maintain accuracy while improving speed and reducing costs, learn how to load and work with models, and create prompts for labeling task.
Lesson 2: Dataset and prompt preparation
Learn how to prepare your dataset, set up a large model, and craft an effective list of prompts. This lesson provides a clear process for applying these techniques to your specific use case.
Lesson 3: Distilling Knowledge from a Large to a Small Model
Understand how to distill knowledge from a large model (Llama 3.1 405B) to its smaller sibling (Llama 3.1 8B). You’ll use the large language model to label data and train the smaller one to match its performance.
Lesson 4: Fine-tuning the Small Language Model
Explore the steps to fine-tune a small language model, specifically the Llama 3.1 8B model, for a classification task. You'll learn how to configure the training process, optimize model parameters, and evaluate performance to ensure that the final model is efficient and maintains high accuracy compared to the original model.
By the end of this workshop, participants will have practical knowledge of SLM fine-tuning and distillation techniques, enabling them to create powerful, efficient, and domain-specific language models for their unique applications.
Tools required:
transformers lib, pandas lib, matplotlib, scikit-learn
Hugging Face account
Google Colab
Unsloth Library
(optional) LLM Labs
Background Knowledge:
Understanding the concepts of RAG and Fine-tuning
Bio: Ivan Lee graduated with a Computer Science B.S. from Stanford University, then dropped out of his master’s degree to found his first mobile gaming company Loki Studios. After raising institutional funding and building a profitable game, Loki was acquired by Yahoo. Lee spent the next 10 years building AI products at Yahoo and Apple and discovered there was a gap in serving the rapid evolution of Natural Language Processing (NLP) technologies. He built Datasaur to focus on democratizing access to NLP and LLMs. Datasaur has raised $8m in venture funding from top-tier investors such as Initialized Capital, Greg Brockman (President, OpenAI) and Calvin French-Owen (CTO, Segment) and serves companies such as Google, Netflix, Qualtrics, Spotify, the FBI and more.



