InternNav 环境配置:Failed to build flash_attn解决办法

python 复制代码
# create a new isolated environment for model server
conda create -n <internnav> python=3.10 libxcb=1.14
conda activate <internnav>

# install PyTorch (CUDA 11.8)
pip install torch==2.5.1 torchvision==0.20.1 torchaudio==2.5.1 \
    --index-url https://download.pytorch.org/whl/cu118

# install InternNav with model dependencies
pip install -e .[model] --no-build-isolation
python 复制代码
running bdist_wheel
      Guessing wheel URL:  https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.2.post1/flash_attn-2.7.2.post1+cu11torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
      error: Remote end closed connection without response
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for flash_attn
Successfully built internnav depth-camera-filtering
Failed to build flash_attn

install Internnav 的时候一直报flash_attn的错

解决办法:

python 复制代码
wget https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.2.post1/flash_attn-2.7.2.post1+cu11torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
python 复制代码
pip install flash_attn-2.7.2.post1+cu11torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl --no-build-isolation
相关推荐
Coder_Boy_2 小时前
基于SpringAI的智能OPS平台AIops介绍
人工智能·spring boot·aiops·faiss
Apifox.2 小时前
Apifox 12 月更新| AI 生成用例同步生成测试数据、接口文档完整性检测、设计 SSE 流式接口、从 Git 仓库导入数据
前端·人工智能·git·ai·postman·团队开发
冒冒菜菜2 小时前
根据txt标签文件在图像上生成真实标签框
人工智能·计算机视觉
集芯微电科技有限公司2 小时前
PC1001超高频率(50HMZ)单通单低侧GaN FET驱动器支持正负相位配置
数据结构·人工智能·单片机·嵌入式硬件·神经网络·生成对抗网络·fpga开发
Love Song残响2 小时前
VSCode高效AI开发全攻略
ide·人工智能·vscode
zcg19422 小时前
不用干净数据也能学会降噪——N2N派
深度学习·计算机视觉
码农小白猿2 小时前
IACheck提升锅炉安装验收报告审核效率:智能化审核为安全合规保驾护航
运维·人工智能·ai·iacheck
hello我是小菜鸡2 小时前
马尔可夫跳变系统镇定
人工智能·机器学习