2024 · 90 citations · 12 references
ComputingComputer EngineeringComputer ScienceArtificial IntelligenceMachine LearningNatural Language ProcessingDeep LearningGraphics Processing UnitsHardware AccelerationLanguage ModelingMemory Hierarchy OptimizationNeural NetworksDeep Learning AccelerationDeep Learning On GpusEnergy-efficient ComputationLarge Language ModelsMemory DemandsModel Accuracy AssessmentPower DistributionSparsity Problem
This paper introduces PowerInfer, a high-speed Large Language Model (LLM) inference engine on a personal computer (PC) equipped with a single consumer-grade GPU. The key principle underlying the design of PowerInfer is exploiting the high locality inherent in LLM inference, characterized by a power-law distribution in neuron activation. This distribution indicates that a small subset of neurons, termed hot neurons, are consistently activated across inputs, while the majority, cold neurons, vary based on specific inputs. PowerInfer exploits such an insight to design a GPU-CPU hybrid inference engine: hot-activated neurons are preloaded onto the GPU for fast access, while cold-activated neurons are computed on the CPU, thus significantly reducing GPU memory demands and CPU-GPU data transfers. PowerInfer further integrates adaptive predictors and neuron-aware sparse operators, optimizing the efficiency of neuron activation and computational sparsity. The evaluation shows that PowerInfer significantly outperforms llama.cpp by up to 11.69× while retaining model accuracy across various LLMs (including OPT-175B) on a single NVIDIA RTX 4090 GPU. For the OPT-30B model, PowerInfer achieves performance comparable to that of a high-end server-grade A100 GPU, reaching 82% of its token generation rate on a single consumer-grade RTX 4090 GPU.
12
Byung-Gon Chun, Sunghwan Ihm, Petros Maniatis et al. · 2011 · 1.9K citations
Efficient Memory Management for Large Language Model Serving with PagedAttention
Woosuk Kwon, Z. Li, Siyuan Zhuang et al. · 2023 · 1.1K citations · Full text
PIQA: Reasoning about Physical Commonsense in Natural Language
Yonatan Bisk, Rowan Zellers, Ronan Le Bras et al. · 2020 · 594 citations
Computing, Computer Science, Physics +14
Keisuke Sakaguchi, Ronan Le Bras, Chandra Bhagavatula et al. · Communications of the ACM · 2021 · 295 citations · Full text