"src/llamafactory/chat/base_engine.py" did not exist on "6cedac147c989817368a06ac32ea206ed05e7232"
build_wheel.sh 645 Bytes
Newer Older
facebook-github-bot's avatar
facebook-github-bot committed
1
#!/bin/bash
2
# Copyright (c) Meta Platforms, Inc. and affiliates.
Patrick Labatut's avatar
Patrick Labatut committed
3
4
5
6
7
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

facebook-github-bot's avatar
facebook-github-bot committed
8
9
10
11
12
set -ex

script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
. "$script_dir/pkg_helpers.bash"

13
14
VERSION=$(python -c "exec(open('${script_dir}/../pytorch3d/__init__.py').read()); print(__version__)")

facebook-github-bot's avatar
facebook-github-bot committed
15
export BUILD_TYPE=wheel
16
setup_env "$VERSION"
facebook-github-bot's avatar
facebook-github-bot committed
17
18
19
setup_wheel_python
pip_install numpy
setup_pip_pytorch_version
20
download_nvidiacub_if_needed
facebook-github-bot's avatar
facebook-github-bot committed
21
22
python setup.py clean
IS_WHEEL=1 python setup.py bdist_wheel