Chalmers University of Technology
Exploring Optimized CPU-Inference for Latency-Critical Machine Learning Tasks
Abstract
dc:description.abstractIn recent years, machine learning has grown to become increasingly prevalent for a wide range of applications spanning multiple industries. For some of these applica tions, low latency can be critical, which may limit the types of hardware that can be used. Graphical Processing Units (GPUs) have long been the go-to hardware for machine learning tasks, often outperforming alternatives like Central Process ing Units (CPUs), but these are not practical in all situations. We explore CPUs, leveraging modern optimization techniques like pruning and quantization, as a com petitive alternative to GPUs with comparable predictive performance. This thesis provides a comparison of the two hardware types on a real-time latency-critical vi sion task. On the GPU side, TensorRT in combination with quantization is used to achieve state-of-the-art inference performance on the hardware. On the CPU side, the model is optimized using SparseML to introduce unstructured sparsity and quantization. This optimized model is then used by the DeepSparse runtime engine for optimized inference. Our findings show that the CPU approach can outperform the GPU hardware in certain situations. This suggests that CPU hardware could potentially be used in applications previously limited to GPUs.
Degree
thesis:*- Level thesis:degree_level
- H
- Department dc:contributor.department
- Chalmers tekniska högskola / Institutionen för fysik
- Year dc:date.issued
- 2024
Author and committee
dc:creator, dc:contributor.*- Authors dc:creator
-
- SIKLUND, AMANDA
- SEDERSTEN, MAX
- Advisor dc:contributor.supervisor
-
- Wikman, Filip
- Committee member dc:contributor.committeemember
-
- Granath, Mats
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Coursecode
- TIFX05