Skip to content

Commit

Permalink
Rename "mlc_chat" to "mlc_llm" (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJH5574 authored Mar 12, 2024
1 parent ce2c4f4 commit e0719ab
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 42 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/wheel_applesiliconmac_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,36 +67,36 @@ jobs:
STABLE_BUILD: ${{ matrix.pkg_kind == 'stable' && 1 || 0 }}
run: |
scripts/build_mlc_ai_wheel_single_python_apple_silicon.sh wheel-3-12
- name: Build mlc-chat @ 3.8
- name: Build mlc-llm @ 3.8
if: matrix.pkg_kind == 'nightly'
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-8
- name: Build mlc-chat @ 3.9
scripts/build_mlc_llm_wheel_single_python_apple_silicon.sh wheel-3-8
- name: Build mlc-llm @ 3.9
if: matrix.pkg_kind == 'nightly'
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-9
- name: Build mlc-chat @ 3.10
scripts/build_mlc_llm_wheel_single_python_apple_silicon.sh wheel-3-9
- name: Build mlc-llm @ 3.10
if: matrix.pkg_kind == 'nightly'
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-10
- name: Build mlc-chat @ 3.11
scripts/build_mlc_llm_wheel_single_python_apple_silicon.sh wheel-3-10
- name: Build mlc-llm @ 3.11
if: matrix.pkg_kind == 'nightly'
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-11
- name: Build mlc-chat @ 3.12
scripts/build_mlc_llm_wheel_single_python_apple_silicon.sh wheel-3-11
- name: Build mlc-llm @ 3.12
if: matrix.pkg_kind == 'nightly'
env:
CONDA_HOME: ${{ secrets.M1_MAC_CONDA_HOME }}
run: |
scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh wheel-3-12
scripts/build_mlc_llm_wheel_single_python_apple_silicon.sh wheel-3-12
# Use system python instead of conda for upload
- name: Wheel-Deploy
if: github.ref == 'refs/heads/main'
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/wheel_mac_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
- name: Sync MLC AI Package
run: |
python3 scripts/sync_package.py --package tvm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-ai-nightly' || 'mlc-ai' }} --revision origin/mlc ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
- name: Sync MLC Chat Package
- name: Sync MLC LLM Package
if: matrix.pkg_kind == 'nightly'
run: |
python3 scripts/sync_package.py --package mlc-llm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-chat-nightly' || 'mlc-chat' }} --revision origin/main ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
python3 scripts/sync_package.py --package mlc-llm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-llm-nightly' || 'mlc-llm' }} --revision origin/main ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
# Use conda for LLVM dep
- uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -59,10 +59,10 @@ jobs:
- name: Build@MacOS
run: >-
scripts/build_mlc_ai_lib_osx.sh
- name: Build MLC-Chat@MacOS
- name: Build MLC-LLM@MacOS
if: matrix.pkg_kind == 'nightly'
run: >-
scripts/build_mlc_chat_lib_osx.sh
scripts/build_mlc_llm_lib_osx.sh
# Build wheel for three python versions
- name: Setup@Py38
uses: conda-incubator/setup-miniconda@v2
Expand All @@ -76,7 +76,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py38
- name: Wheel-Build-MLC-LLM@Py38
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -94,7 +94,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py39
- name: Wheel-Build-MLC-LLM@Py39
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -112,7 +112,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py310
- name: Wheel-Build-MLC-LLM@Py310
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -130,7 +130,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py311
- name: Wheel-Build-MLC-LLM@Py311
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -148,7 +148,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py312
- name: Wheel-Build-MLC-LLM@Py312
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/wheel_manylinux_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,23 @@ jobs:
- name: Sync MLC AI Package
run: |
python scripts/sync_package.py --gpu ${{ matrix.config.gpu }} --package tvm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-ai-nightly' || 'mlc-ai' }} --revision origin/mlc ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
- name: Sync MLC Chat Package
- name: Sync MLC LLM Package
if: matrix.pkg_kind == 'nightly'
run: |
python scripts/sync_package.py --gpu ${{ matrix.config.gpu }} --package mlc-llm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-chat-nightly' || 'mlc-chat' }} --revision origin/main ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
python scripts/sync_package.py --gpu ${{ matrix.config.gpu }} --package mlc-llm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-llm-nightly' || 'mlc-llm' }} --revision origin/main ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
- name: Build TVM Unity
env:
IMAGE: ${{ matrix.config.image }}
GPU: ${{ matrix.config.gpu }}
run: |
docker/bash.sh --no-gpu $IMAGE ./scripts/build_mlc_ai_wheel_manylinux.sh --gpu $GPU
- name: Build MLC-Chat
- name: Build MLC-LLM
if: matrix.pkg_kind == 'nightly'
env:
IMAGE: ${{ matrix.config.image }}
GPU: ${{ matrix.config.gpu }}
run: |
docker/bash.sh --no-gpu $IMAGE ./scripts/build_mlc_chat_wheel_manylinux.sh --gpu $GPU
docker/bash.sh --no-gpu $IMAGE ./scripts/build_mlc_llm_wheel_manylinux.sh --gpu $GPU
- name: Wheel-Deploy
if: github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v1
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/wheel_win_nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
- name: Sync MLC AI Package
run: |
python3 scripts/sync_package.py --package tvm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-ai-nightly' || 'mlc-ai' }} --revision origin/mlc ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
- name: Sync MLC Chat Package
- name: Sync MLC LLM Package
if: matrix.pkg_kind == 'nightly'
run: |
python3 scripts/sync_package.py --package mlc-llm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-chat-nightly' || 'mlc-chat' }} --revision origin/main ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
python3 scripts/sync_package.py --package mlc-llm --package-name ${{ matrix.pkg_kind == 'nightly' && 'mlc-llm-nightly' || 'mlc-llm' }} --revision origin/main ${{ matrix.pkg_kind == 'nightly' && '--skip-checkout' || '' }} --skip-conda
# Use conda for LLVM dep
- uses: conda-incubator/setup-miniconda@v2
with:
Expand Down Expand Up @@ -73,10 +73,10 @@ jobs:
echo tvm.dll does not exist.
exit /b 1
)
- name: Build MLC-Chat@Win
- name: Build MLC-LLM@Win
if: matrix.pkg_kind == 'nightly'
run: >-
scripts/build_mlc_chat_lib_win.bat
scripts/build_mlc_llm_lib_win.bat
# Build wheel for three python versions
- name: Setup@Py38
uses: conda-incubator/setup-miniconda@v2
Expand All @@ -90,7 +90,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py38
- name: Wheel-Build-MLC-LLM@Py38
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -108,7 +108,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py39
- name: Wheel-Build-MLC-LLM@Py39
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -126,7 +126,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py310
- name: Wheel-Build-MLC-LLM@Py310
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -144,7 +144,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py311
- name: Wheel-Build-MLC-LLM@Py311
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand All @@ -162,7 +162,7 @@ jobs:
python -m pip install setuptools Cython wheel
cd tvm/python
python setup.py bdist_wheel
- name: Wheel-Build-MLC-Chat@Py312
- name: Wheel-Build-MLC-LLM@Py312
if: matrix.pkg_kind == 'nightly'
run: |
python --version
Expand Down
4 changes: 2 additions & 2 deletions conda/mlc-llm/deploy-environment.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# deploy environment
name: mlc-chat
name: mlc-llm

channels:
- conda-forge
- mlc-ai

dependencies:
- mlc-chat-nightly
- mlc-llm-nightly
2 changes: 1 addition & 1 deletion conda/mlc-llm/recipe/meta.in.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This file is used as input for scripts/sync_package.py to generate meta.yaml
{% set default_pkg_name = 'mlc-chat' %}
{% set default_pkg_name = 'mlc-llm' %}
{% set pkg_name = pkg_name | default(default_pkg_name) %}
{% set version = '0.7.0' %}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ rm -rf mlc-llm && git clone https://github.com/mlc-ai/mlc-llm mlc-llm --recursiv

for name in "${conda_env_names[@]}"
do
./scripts/build_mlc_chat_wheel_single_python_apple_silicon.sh $name
./scripts/build_mlc_llm_wheel_single_python_apple_silicon.sh $name
done
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ function in_array() {
return 1
}

function build_mlc_chat_wheel() {
function build_mlc_llm_wheel() {
python_dir=$1
PYTHON_BIN="${python_dir}/bin/python"

cd "${MLC_LLM_PYTHON_DIR}" &&
${PYTHON_BIN} setup.py bdist_wheel
}

function audit_mlc_chat_wheel() {
function audit_mlc_llm_wheel() {
python_version_str=$1

cd "${MLC_LLM_PYTHON_DIR}" &&
Expand Down Expand Up @@ -141,10 +141,10 @@ for python_version in ${PYTHON_VERSIONS[*]}; do

if [ -d "${cpython_dir}" ]; then
echo "Generating package for Python ${python_version}."
build_mlc_chat_wheel ${cpython_dir}
build_mlc_llm_wheel ${cpython_dir}

echo "Running auditwheel on package for Python ${python_version}."
audit_mlc_chat_wheel ${python_version_str}
audit_mlc_llm_wheel ${python_version_str}
else
echo "Python ${python_version} not found. Skipping."
fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ echo "Start build for $CONDA_ENV_NAME"
conda activate $CONDA_ENV_NAME

# sync package
python scripts/sync_package.py --package mlc-llm --package-name mlc-chat-nightly --revision origin/main --skip-checkout --skip-conda
python scripts/sync_package.py --package mlc-llm --package-name mlc-llm-nightly --revision origin/main --skip-checkout --skip-conda
# build mlc-llm
./scripts/build_mlc_chat_lib_apple_silicon.sh
./scripts/build_mlc_llm_lib_apple_silicon.sh

# build wheel
cd mlc-llm/python && python setup.py bdist_wheel && cd -
Expand Down

0 comments on commit e0719ab

Please sign in to comment.