arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2503.17422cs.LGcs.PF
收藏

V-Seek:在开放硬件服务器级RISC-V平台上加速大语言模型推理

V-Seek: Accelerating LLM Reasoning on Open-hardware Server-class RISC-V Platforms

Politecnico of Turin(都灵理工大学);ETHZ(苏黎世联邦理工学院)

Javier J. Poveda Rodrigo, Mohamed Amine Ahmdi, Alessio Burrello, Daniele Jahier Pagliari, Luca Benini

AI总结:

针对RISC-V平台LLM推理软硬件不成熟的问题,提出V-Seek优化方案,在Sophon SG2042 CPU上实现两款推理优化LLM的显著性能提升。

摘要:

大语言模型(LLM)近期的指数级增长一直依赖基于GPU的系统。然而,CPU正作为一种更灵活、成本更低的替代方案兴起,尤其适用于推理(inference)和逻辑推理(reasoning)工作负载。RISC-V凭借其开放、厂商中立的指令集架构(ISA),在该领域正迅速获得关注。但由于需要领域专属调优,面向LLM工作负载的RISC-V硬件及相应的软件生态系统尚未完全成熟和 streamlined。本文旨在填补这一空白,重点优化首款商用多核带向量处理能力的RISC-V CPU——Sophon SG2042上的LLM推理。在两款最新的面向推理优化的前沿LLM(DeepSeek R1 Distill Llama 8B和DeepSeek R1 Distill QWEN 14B)上,我们实现了4.32/2.29 token/s的token生成速度和6.54/3.68 token/s的提示处理速度,相比基线最高提速2.9倍/3.0倍。

英文摘要:

The recent exponential growth of Large Language Models (LLMs) has relied on GPU-based systems. However, CPUs are emerging as a flexible and lower-cost alternative, especially when targeting inference and reasoning workloads. RISC-V is rapidly gaining traction in this area, given its open and vendor-neutral ISA. However, the RISC-V hardware for LLM workloads and the corresponding software ecosystem are not fully mature and streamlined, given the requirement of domain-specific tuning. This paper aims at filling this gap, focusing on optimizing LLM inference on the Sophon SG2042, the first commercially available many-core RISC-V CPU with vector processing capabilities. On two recent state-of-the-art LLMs optimized for reasoning, DeepSeek R1 Distill Llama 8B and DeepSeek R1 Distill QWEN 14B, we achieve 4.32/2.29 token/s for token generation and 6.54/3.68 token/s for prompt processing, with a speed up of up 2.9x/3.0x compared to our baseline.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑