評估利用固態硬碟加速深度學習應用之可行性
Evaluating the DNN Model Acceleration on Solid State Drive
摘要
基於神經網路的個人化推薦系統已經深入人們的生活,包含社群媒體、搜索和電 子商務。目前流行的推薦模型都需要大型的嵌入表,其中包含數十億個參數需要儲存 在記憶體內,才能夠讓模型運作。然而要容納大量資料的記憶體空間會帶來巨大的硬 體成本。本研究提出將大型的嵌入表放入現有的 SSD 內,針對推薦系統內的運算子分 析不同的 I/O 方式才能夠減少運行時間。藉由預載入部分的嵌入表搭配合適的 I/O 讀 取,加速特定運算子的執行時間,最高不僅有 1.67 倍的加速,同時只使用 1/8 原本記 憶體使用量。
Personalized recommendations systems based on neural networks are widely used in people’s lives, including social media, search and ecommerce. Large embedding tables containing billions of parameters must be stored in memory for current recommendation models to work. The memory space required to store a large amount of data, on the other hand, comes at a significant hardware cost. In order to reduce running time, our study proposes inserting embedding tables into a commercial SSD and analyzing different I/O ways for the operators of the recommendation systems. The execution time of a specific operator can be sped up to 1.67 times while using only 1/8 of the original memory usage by preloading a portion of the embedding tables with appropriate I/O read.