Skip to content

Commit

Permalink
[CI][Docs] Update nightly CPU package (#2903)
Browse files Browse the repository at this point in the history
This PR updates the uses of the nightly CPU package
  • Loading branch information
MasterJH5574 authored Sep 14, 2024
1 parent 8f6b8e1 commit 6277afb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ci/task/pylint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export PYTHONPATH="./python":${PYTHONPATH:-""}
if [[ -n ${MLC_CI_SETUP_DEPS:-} ]]; then
echo "MLC_CI_SETUP_DEPS=1 start setup deps"
# TVM Unity is a dependency to this testing
pip install --quiet --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
pip install --quiet --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
pip install --quiet --pre -U cuda-python
fi

Expand Down
10 changes: 5 additions & 5 deletions ci/task/test_model_compile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ elif [[ ${GPU} == rocm* ]]; then
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
elif [[ ${GPU} == metal ]]; then
TARGET=metal
pip install --pre -U --force-reinstal -f https://mlc.ai/wheels mlc-ai-nightly
pip install --pre -U --force-reinstal -f https://mlc.ai/wheels mlc-ai-nightly-cpu
elif [[ ${GPU} == wasm* ]]; then
TARGET=wasm
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
export TVM_SOURCE_DIR=$(dirname $(python -c 'import tvm; print(tvm.__file__)'))
export TVM_HOME=${TVM_SOURCE_DIR}
export MLC_LLM_SOURCE_DIR=$(pwd)
cd $TVM_SOURCE_DIR/web/ && make -j${NUM_THREADS} && cd -
cd $MLC_LLM_SOURCE_DIR/web/ && make -j${NUM_THREADS} && cd -
elif [[ ${GPU} == ios ]]; then
TARGET=ios
pip install --pre -U --force-reinstal -f https://mlc.ai/wheels mlc-ai-nightly
pip install --pre -U --force-reinstal -f https://mlc.ai/wheels mlc-ai-nightly-cpu
elif [[ ${GPU} == android* ]]; then
TARGET=android
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
source /android_env_vars.sh
else
TARGET=vulkan
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
fi

python tests/python/integration/test_model_compile.py $TARGET $NUM_THREADS
6 changes: 3 additions & 3 deletions docs/install/mlc_llm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Select your operating system/compute platform and run the command in your termin
.. code-block:: bash
conda activate your-environment
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly mlc-ai-nightly
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
.. tab:: CUDA 12.1

Expand Down Expand Up @@ -98,7 +98,7 @@ Select your operating system/compute platform and run the command in your termin
.. code-block:: bash
conda activate your-environment
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly mlc-ai-nightly
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
.. note::

Expand All @@ -124,7 +124,7 @@ Select your operating system/compute platform and run the command in your termin
.. code-block:: bash
conda activate your-environment
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly mlc-ai-nightly
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly-cpu mlc-ai-nightly-cpu
.. note::
Please make sure your conda environment comes with python and pip.
Expand Down
6 changes: 3 additions & 3 deletions docs/install/tvm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
.. code-block:: bash
conda activate your-environment
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
.. tab:: CUDA 12.1

Expand Down Expand Up @@ -88,7 +88,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
.. code-block:: bash
conda activate your-environment
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
.. note::

Expand All @@ -109,7 +109,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
.. code-block:: bash
conda activate your-environment
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
python -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cpu
.. note::
Make sure you also install vulkan loader and clang to avoid vulkan
Expand Down

0 comments on commit 6277afb

Please sign in to comment.