Optimizing Large Language Model Inference and Fine-Tuning on Intel AI Laptops Using OpenVino: A CPU-Centric Approach
摘要
The rise of Generative Artificial Intelligence (GenAI) has traditionally been dependent on high-performance GPUs, limiting accessibility for cost-conscious developers and researchers. This project explores an alternative approach by deploying Large Language Models (LLMs) on Intel AI laptops, focusing on optimizing inference and fine-tuning capabilities using Intel’s OpenVino toolkit. This study investigates the computational efficiency of CPU-based LLM execution, benchmarks performance across different model configurations, and implements optimization techniques such as quantization and parallel execution to enhance processing speed and resource utilization. The analysis highlights key performance trade-offs between accuracy, latency, and power consumption under varying optimization levels. Additionally, a streamlined pipeline for fine-tuning LLMs on Intel hardware is developed, ensuring practical adaptability for real-world applications. By providing a detailed performance analysis, an optimization framework, and comprehensive documentation, this research contributes to making GenAI more efficient and accessible through CPU-based inference, broadening its impact on consumer-grade hardware.