forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (19 loc) · 916 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#---
# name: openvla
# group: robots
# config: config.py
# depends: [transformers, flash-attention, bitsandbytes, tensorboard, h5py]
# test: [test.sh, test.py]
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
ADD https://api.github.com/repos/dusty-nv/openvla/git/refs/heads/main /tmp/openvla_version.json
RUN git clone --depth=1 --recursive https://github.com/dusty-nv/openvla /opt/openvla && \
cd /opt/openvla && \
pip3 install --verbose -e .
# patch issue of NCCL P2P not being supported on Jetson, and accelerate not honoring alternate backends
RUN PYTHON_ROOT=`pip3 show accelerate | grep Location: | cut -d' ' -f2` && \
ACCELERATE_STATE="$PYTHON_ROOT/accelerate/state.py" && \
echo "patching $ACCELERATE_STATE to use distributed backend 'gloo' instead of 'nccl'" && \
sed -i 's|self.backend = backend|self.backend = "gloo"|g' ${ACCELERATE_STATE} && \
grep 'self.backend' $ACCELERATE_STATE