阿里云镜像快速开始#
本指南适用于国内网络环境,使用阿里云镜像加速完成 FluxVLA 安装。
1) 创建 Conda 环境#
conda create -n fluxvla python=3.10 -y
conda activate fluxvla
2) 配置 pip 使用阿里云镜像#
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com
3) 安装 PyTorch(官方 CUDA 轮子源)#
pip install torch==2.6.0 torchvision==0.21.0 torchaudio==2.6.0 --index-url https://download.pytorch.org/whl/cu124
4) 安装 flash-attention#
pip install flash-attn==2.5.5 --no-build-isolation --find-links https://github.com/Dao-AILab/flash-attention/releases
若网络或编译环境受限,可参考 :doc:
0中的源码安装方式。
5) 安装 av#
conda install -c conda-forge av=14.4.0
6) 安装 FluxVLA#
pip install -r requirements.txt
pip install -e . --no-build-isolation
7) 修复 numpy 版本(必须)#
pip uninstall numpy
pip install numpy==1.26.4
可选:配置在线评测环境#
若需在无光线追踪功能的设备(如 A100)上评估 LIBERO,请参考 EGL 设备 GPU 渲染配置。
export MUJOCO_GL=egl
sudo apt install libegl-dev libgl1-mesa-dev libx11-dev libglew-dev libosmesa6-dev