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
相关推荐
23遇见13 小时前
AI视角下的 CANN 仓库架构全解析:高效计算的核心
人工智能
有趣的杰克13 小时前
开源|macOS 菜单栏 AI 启动器 GroAsk:⌥Space 一键直达 ChatGPT / Claude / Gemini
人工智能·macos·chatgpt
yumgpkpm13 小时前
预测:2026年大数据软件+AI大模型的发展趋势
大数据·人工智能·算法·zookeeper·kafka·开源·cloudera
星爷AG I13 小时前
11-2 距离知觉(AGI基础理论)
人工智能·agi
算法狗213 小时前
大模型面试题:在混合精度训练中如何选择合适的精度
人工智能·深度学习·机器学习·语言模型
晚霞的不甘13 小时前
Flutter for OpenHarmony实现 RSA 加密:从数学原理到可视化演示
人工智能·flutter·计算机视觉·开源·视觉检测
图学习小组13 小时前
Degradation-Aware Feature Perturbation for All-in-One Image Restoration
人工智能·深度学习·计算机视觉
CoovallyAIHub13 小时前
AAAI 2026这篇杰出论文说了什么?用LLM给CLIP换了个“聪明大脑”
深度学习·算法·计算机视觉
迎仔13 小时前
05-AI与网络安全
人工智能·安全·web安全
Aric_Jones14 小时前
后台文章发布页添加 AI 自动生成摘要功能
人工智能