【环境部署】安装flash-attention

bash 复制代码
FlashAttention:具有 IO 感知能力的快速且内存高效的精确注意力机制
https://github.com/Dao-AILab/flash-attention

安装方式

pip 安装失败,需要官方下载whl,离线安装,下载地址

bash 复制代码
# linux版本
https://github.com/Dao-AILab/flash-attention/releases?page=1
# Windows版本
https://github.com/kingbri1/flash-attention/releases
  • cu12torch2.4->代表安装了torch2.4+cu12的版本
  • cp310->代表python版本
相关推荐
Warren9817 小时前
Pytest Fixture 作用域详解:Function、Class、Module、Session 怎么选
面试·职场和发展·单元测试·pytest·pip·模块测试·jira
Java后端的Ai之路5 天前
【Python小知识】-pip install xxx 命令安装的 ,在电脑的哪个盘?
开发语言·python·pip·pip install
gsgbgxp6 天前
安装库是优先用conda还是pip
深度学习·ubuntu·conda·pip
玄同7656 天前
深入理解 SQLAlchemy 的 relationship:让 ORM 关联像 Python 对象一样简单
人工智能·python·sql·conda·fastapi·pip·sqlalchemy
好好学习啊天天向上7 天前
C盘容量不够,python , pip,安装包的位置
linux·python·pip
好好学习啊天天向上8 天前
conda pip更新安装路径,解决C盘容易不够的问题
python·conda·pip·2025yfb3003605
小毅&Nora8 天前
【后端】【Python】① Windows系统下Python环境变量设置指南
python·pip
理智.62910 天前
根据requirements.txt 完成环境中的依赖库导入
python·conda·pip
万粉变现经纪人10 天前
如何解决 pip install pyodbc 报错 缺少 ‘cl.exe’ 或 ‘sql.h’(ODBC 头文件)问题
数据库·python·sql·网络协议·bug·ssl·pip
AlenTech11 天前
如何解决Ubuntu中使用系统pip报错的问题,error: externally-managed-environment
linux·ubuntu·pip