Skip to content

Commit 3421ffc

Browse files
TAO 5.0 Release - PyTorch
1 parent 541ee92 commit 3421ffc

File tree

6 files changed

+4
-375
lines changed

6 files changed

+4
-375
lines changed

release/docker/Dockerfile

+1-10
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,8 @@ RUN rm -rf /usr/local/lib/python3.8/dist-packages/mpmath-1.2.1.dist-info
5252
RUN rm -rf /opt/nvidia/entrypoint.d/*.txt
5353
COPY release/docker/entrypoint.d/* /opt/nvidia/entrypoint.d/
5454

55-
# Copying tlt-converter and building it in the docker.
56-
ENV TRT_LIB_PATH="/usr/lib/x86_64-linux-gnu"
57-
ENV TRT_INCLUDE_PATH="/usr/include/x86_64-linux-gnu"
58-
COPY tao-converter /opt/nvidia/tools
59-
WORKDIR /opt/nvidia/tools
60-
RUN make \
61-
&& rm -rf Makefile *.cc *.h *.o
62-
RUN ln -s tao-converter converter
63-
6455
ENV NVIDIA_PRODUCT_NAME "TAO Toolkit"
65-
ENV TAO_TOOLKIT_VERSION="4.0.0"
56+
ENV TAO_TOOLKIT_VERSION="5.0.0"
6657
ENV NVIDIA_TAO_TOOLKIT_VERSION="${TAO_TOOLKIT_VERSION}-PyTorch"
6758

6859
ENV NVM_DIR=/usr/local/nvm

release/docker/build_wheel.sh

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
#!/bin/bash
2-
# Description: Script responsible for generation of an obf_src wheel using pyarmor package.
2+
# Description: Script responsible for generation of an src wheel
33

44
# Setting the repo root for local build environment or CI.
55
[[ -z "${WORKSPACE}" ]] && REPO_ROOT='/tao-pt' || REPO_ROOT="${WORKSPACE}"
66
echo "Building from ${REPO_ROOT}"
77

8-
echo "Installing required packages"
9-
pip install pyarmor pyinstaller pybind11
10-
echo "Registering pyarmor"
11-
pyarmor register ${REPO_ROOT}/release/docker/pyarmor-regfile-1219.zip || exit $?
12-
138
echo "Clearing build and dists"
149
python ${REPO_ROOT}/setup.py clean --all
1510
rm -rf dist/*
@@ -20,25 +15,20 @@ find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
2015
mkdir /dist
2116
cp -r ${REPO_ROOT}/nvidia_tao_pytorch/* /dist/
2217

23-
echo "Obfuscating the code using pyarmor"
24-
cd ${REPO_ROOT}
25-
python -c "from release.python.utils import encrypt_source_code; encrypt_source_code.encrypt_files('${REPO_ROOT}/nvidia_tao_pytorch')"
26-
2718
echo "Migrating codebase"
2819
# Move sources to orig_src
2920
rm -rf /orig_src
3021
mkdir /orig_src
3122
mv ${REPO_ROOT}/nvidia_tao_pytorch/* /orig_src/
3223

33-
# Move obf_src files to src
24+
# Move files to src
3425
mv /dist/* ${REPO_ROOT}/nvidia_tao_pytorch/
35-
mv ${REPO_ROOT}/nvidia_tao_pytorch/pytransform_vax_001219 ${REPO_ROOT}/
3626

3727
echo "Building bdist wheel"
3828
python setup.py bdist_wheel || exit $?
3929

4030
echo "Restoring the original project structure"
41-
# Move the obf_src files.
31+
# Move the files.
4232
rm -rf ${REPO_ROOT}/nvidia_tao_pytorch/*
4333

4434
# Move back the original files
@@ -47,5 +37,3 @@ mv /orig_src/* ${REPO_ROOT}/nvidia_tao_pytorch/
4737
# Remove the tmp folders.
4838
rm -rf /dist
4939
rm -rf /orig_src
50-
rm -rf /obf_src
51-
rm -rf ${REPO_ROOT}/pytransform_vax_001219

release/docker/pyarmor-regfile-1219.zip

-3
This file was deleted.

release/python/utils/encrypt_source_code.py

-73
This file was deleted.

0 commit comments

Comments
 (0)