Skip to content

Commit 9a71046

Browse files
authored
fix: metaworld deps (RLinf#373)
Signed-off-by: Hao Lin <linhaomails@gmail.com>
1 parent 5983380 commit 9a71046

File tree

5 files changed

+18
-13
lines changed

5 files changed

+18
-13
lines changed

docker/torch-2.6/Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ RUN uv venv ${VENV_TARGET} --python ${PYTHON_VERSION}
169169
RUN source switch_env ${VENV_TARGET} && UV_TORCH_BACKEND=auto uv sync --active
170170
RUN source switch_env ${VENV_TARGET} && uv sync --extra embodied --active
171171
RUN source switch_env ${VENV_TARGET} && GIT_LFS_SKIP_SMUDGE=1 uv pip install git+https://github.com/RLinf/openpi
172-
RUN source switch_env ${VENV_TARGET} && uv pip install metaworld==3.0.0
173172
RUN source switch_env ${VENV_TARGET} && uv pip uninstall pynvml
174173
RUN cp -r ${UV_PATH}/${VENV_TARGET}/lib/python${PYTHON_VERSION}/site-packages/openpi/models_pytorch/transformers_replace/* ${UV_PATH}/${VENV_TARGET}/lib/python${PYTHON_VERSION}/site-packages/transformers/
175174

docs/source-en/rst_source/examples/metaworld.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,13 @@ Algorithm
6161
Dependency Installation
6262
-----------------------
6363

64-
If you are using the Docker image, please pull the latest image via `docker pull` to get the required dependencies.
64+
MetaWorld is currently only supported for `openpi`. Make sure you have installed the required dependencies as per the :doc:`installation guide <../start/installation>`.
6565

66-
If you have set up the environment manually, please run `uv pip install metaworld` to install the MetaWorld package along with its dependencies.
66+
Then, install MetaWorld with:
6767

68+
.. code:: bash
69+
70+
uv pip install metaworld==3.0.0
6871
6972
Model Download
7073
--------------

docs/source-zh/rst_source/examples/metaworld.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@
6161
依赖安装
6262
-----------
6363

64-
如果您使用的是 Docker 镜像,请通过 `docker pull` 拉取最新镜像以获取所需的依赖项
64+
MetaWorld 目前仅支持 `openpi`。请确保您已按照 :doc:`安装指南 <../start/installation>` 安装了所需的依赖项
6565

66-
如果您已经手动安装了uv虚拟环境,请运行 `uv pip install metaworld` 来安装 MetaWorld 包及其依赖项。
66+
然后,使用以下命令安装 MetaWorld:
67+
68+
.. code:: bash
69+
70+
uv pip install metaworld==3.0.0
6771
6872
6973
模型下载

requirements/install.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ if [[ " ${EMBODIED_TARGET[*]} " == *" $TARGET "* ]]; then
4040
uv sync --extra embodied
4141
uv pip uninstall pynvml
4242
bash requirements/install_embodied_deps.sh # Must be run after the above command
43-
mkdir -p /opt && git clone https://github.com/RLinf/LIBERO.git /opt/libero
44-
echo "export PYTHONPATH=/opt/libero:$PYTHONPATH" >> .venv/bin/activate
43+
git clone https://github.com/RLinf/LIBERO.git .venv/libero
44+
echo "export PYTHONPATH=$(pwd)/.venv/libero:$PYTHONPATH" >> .venv/bin/activate
4545
echo "export NVIDIA_DRIVER_CAPABILITIES=all" >> .venv/bin/activate
4646
echo "export VK_DRIVER_FILES=/etc/vulkan/icd.d/nvidia_icd.json" >> .venv/bin/activate
4747
echo "export VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json" >> .venv/bin/activate
@@ -52,8 +52,8 @@ if [ "$TARGET" = "openvla" ]; then
5252
elif [ "$TARGET" = "openvla-oft" ]; then
5353
UV_TORCH_BACKEND=auto uv pip install -r requirements/openvla_oft.txt --no-build-isolation
5454
if [ "$ENABLE_BEHAVIOR" = "true" ]; then
55-
git clone -b RLinf/v3.7.1 --depth 1 https://github.com/RLinf/BEHAVIOR-1K.git /opt/BEHAVIOR-1K
56-
cd /opt/BEHAVIOR-1K && ./setup.sh --omnigibson --bddl --joylo --confirm-no-conda --accept-nvidia-eula && cd -
55+
git clone -b RLinf/v3.7.1 --depth 1 https://github.com/RLinf/BEHAVIOR-1K.git .venv/BEHAVIOR-1K
56+
cd .venv/BEHAVIOR-1K && ./setup.sh --omnigibson --bddl --joylo --confirm-no-conda --accept-nvidia-eula && cd -
5757
uv pip uninstall flash-attn
5858
uv pip install https://github.com/Dao-AILab/flash-attention/releases/download/v2.7.4.post1/flash_attn-2.7.4.post1+cu12torch2.5cxx11abiFALSE-cp310-cp310-linux_x86_64.whl
5959
uv pip install ml_dtypes==0.5.3 protobuf==3.20.3
@@ -67,11 +67,11 @@ elif [ "$TARGET" = "openpi" ]; then
6767
elif [ "$TARGET" = "reason" ]; then
6868
uv sync --extra sglang-vllm
6969
uv pip uninstall pynvml
70-
mkdir -p /opt && git clone https://github.com/NVIDIA/Megatron-LM.git -b core_r0.13.0 /opt/Megatron-LM
70+
git clone https://github.com/NVIDIA/Megatron-LM.git -b core_r0.13.0 .venv/Megatron-LM
7171
if [ "$TEST_BUILD" != "true" ]; then
7272
APEX_CPP_EXT=1 APEX_CUDA_EXT=1 NVCC_APPEND_FLAGS="--threads 24" APEX_PARALLEL_BUILD=24 uv pip install -r requirements/megatron.txt --no-build-isolation
7373
fi
74-
echo "export PYTHONPATH=/opt/Megatron-LM:$PYTHONPATH" >> .venv/bin/activate
74+
echo "export PYTHONPATH=$(pwd)/.venv/Megatron-LM:$PYTHONPATH" >> .venv/bin/activate
7575
else
7676
echo "Unknown target: $TARGET. Supported targets are: openvla, openvla-oft, openpi, reason."
7777
exit 1

requirements/openpi.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11

2-
openpi @ git+https://github.com/RLinf/openpi
3-
metaworld==3.0.0
2+
openpi @ git+https://github.com/RLinf/openpi

0 commit comments

Comments
 (0)