跳到正文
EasyXiv 检索
投稿 关于 登录

按回车检索 · 直接输入编号(如 1706.03762)可跳转到论文

计算机科学 > 机器学习

arXiv:2501.02573 (cs)
[提交于 2025年1月7日]

标题:LeetDecoding: A PyTorch Library for Exponentially Decaying Causal Linear Attention with CUDA Implementations

作者:Jiaping Wang, Simiao Zhang, Qiao-Chu He, Yifan Chen
查看论文《LeetDecoding: A PyTorch Library for Exponentially Decaying Causal Linear Attention with CUDA Implementations》的 PDF
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读
摘要:The machine learning and data science community has made significant while dispersive progress in accelerating transformer-based large language models (LLMs), and one promising approach is to replace the original causal attention in a generative pre-trained transformer (GPT) with \emph{exponentially decaying causal linear attention}. In this paper, we present LeetDecoding, which is the first Python package that provides a large set of computation routines for this fundamental operator. The launch of LeetDecoding was motivated by the current lack of (1) clear understanding of the complexity regarding this operator, (2) a comprehensive collection of existing computation methods (usually spread in seemingly unrelated fields), and (3) CUDA implementations for fast inference on GPU. LeetDecoding's design is easy to integrate with existing linear-attention LLMs, and allows for researchers to benchmark and evaluate new computation methods for exponentially decaying causal linear attention. The usage of LeetDecoding does not require any knowledge of GPU programming and the underlying complexity analysis, intentionally making LeetDecoding accessible to LLM practitioners. The source code of LeetDecoding is provided at \href{https://github.com/Computational-Machine-Intelligence/LeetDecoding}{this GitHub repository}, and users can simply install LeetDecoding by the command \texttt{pip install leet-decoding}.
评论: The source code of LeetDecoding is hosted at https://github.com/Computational-Machine-Intelligence/LeetDecoding
主题: 机器学习 (cs.LG); 计算与语言 (cs.CL); 数学软件 (cs.MS)
引用方式: arXiv:2501.02573 [cs.LG]
  (或者 arXiv:2501.02573v1 [cs.LG] 对于此版本)
  https://doi.org/10.48550/arXiv.2501.02573

提交历史

来自:Yifan Chen
[v1] 2025年1月7日 星期二 00:00:00 UTC
全文链接:

访问论文:

  • 查看原文 PDF
  • 中文 PDF (下批处理)
  • EasyResearch 阅读
  • TeX 源文件
  • arXiv 原文页面
查看许可

当前浏览上下文:

cs.LG
< 上一篇   |   下一篇 >
最新 | 近期 | 2025-01
切换浏览方式为:
cs
cs.CL
cs.MS

参考文献与引用

  • Google Scholar
  • Semantic Scholar

BibTeX 格式的引用

EasyXiv 是独立运营的中文预印本站点,与 arXiv 及康奈尔大学无隶属关系。 论文元数据与原文来自 arXiv.org,感谢 arXiv 提供开放获取服务。
关于 · 帮助 · 投稿指南 · 版权 · arXiv 原站