Skip to content

Commit

Permalink
[Doc] Use -U instead of --force-reinstall (mlc-ai#1062)
Browse files Browse the repository at this point in the history
`--force-reinstall` will reinstall all dependencies to a python package,
which is unnecessary. `-U` is a better choice in this case.
  • Loading branch information
junrushao authored Oct 13, 2023
1 parent ca8c11b commit edab9b5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
18 changes: 9 additions & 9 deletions docs/install/mlc_llm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,49 +29,49 @@ Select your operating system/compute platform and run the command in your termin
.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
.. tab:: CUDA 11.7

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu117 mlc-ai-nightly-cu117
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu117 mlc-ai-nightly-cu117
.. tab:: CUDA 11.8

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu118 mlc-ai-nightly-cu118
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu118 mlc-ai-nightly-cu118
.. tab:: CUDA 12.1

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu121 mlc-ai-nightly-cu121
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu121 mlc-ai-nightly-cu121
.. tab:: CUDA 12.2

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-cu122 mlc-ai-nightly-cu122
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-cu122 mlc-ai-nightly-cu122
.. tab:: ROCm 5.6

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-rocm56 mlc-ai-nightly-rocm56
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-rocm56 mlc-ai-nightly-rocm56
.. tab:: ROCm 5.7

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly-rocm57 mlc-ai-nightly-rocm57
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly-rocm57 mlc-ai-nightly-rocm57
.. tab:: Vulkan

Expand All @@ -94,7 +94,7 @@ Select your operating system/compute platform and run the command in your termin
.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
.. note::

Expand All @@ -115,7 +115,7 @@ Select your operating system/compute platform and run the command in your termin
.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-chat-nightly mlc-ai-nightly
.. note::
If encountering the error below:
Expand Down
18 changes: 9 additions & 9 deletions docs/install/tvm.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,49 +37,49 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
.. tab:: CUDA 11.7

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu117
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu117
.. tab:: CUDA 11.8

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu118
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu118
.. tab:: CUDA 12.1

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu121
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu121
.. tab:: CUDA 12.2

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-cu122
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-cu122
.. tab:: ROCm 5.6

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-rocm56
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm56
.. tab:: ROCm 5.7

.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly-rocm57
.. tab:: Vulkan

Expand All @@ -102,7 +102,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
.. note::

Expand All @@ -123,7 +123,7 @@ A nightly prebuilt Python package of Apache TVM Unity is provided.
.. code-block:: bash
conda activate your-environment
python3 -m pip install --pre --force-reinstall -f https://mlc.ai/wheels mlc-ai-nightly
python3 -m pip install --pre -U -f https://mlc.ai/wheels mlc-ai-nightly
.. note::
If encountering the error below:
Expand Down

0 comments on commit edab9b5

Please sign in to comment.