Skip to content

Commit 6f05301

Browse files
authored
release bigdl-llm (#5169)
* release bigdl-llm * update * update * update * revert * revert * set bigdl-core-cpp version * rename
1 parent ca9de76 commit 6f05301

File tree

3 files changed

+86
-28
lines changed

3 files changed

+86
-28
lines changed
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: BigDL-LLM Nightly Build
2+
3+
on:
4+
# pull_request:
5+
# branches: [ main ]
6+
# paths:
7+
# - '.github/workflows/nightly_build.yml'
8+
schedule:
9+
- cron: '30 12 * * *' # GMT time, 12:30 GMT == 20:30 China
10+
workflow_dispatch:
11+
12+
env:
13+
GIST_ID: 48dbd87983219d4fe264adfea701815a
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
20+
# llm-cpp-build:
21+
# uses: ./.github/workflows/llm-binary-build.yml
22+
23+
bigdl-llm-build:
24+
# python build can only be published once a day, please do not publish it manually
25+
if: ${{ github.event.schedule || github.event_name == 'workflow_dispatch' }}
26+
runs-on: [self-hosted, Bree]
27+
# needs: llm-cpp-build
28+
steps:
29+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
30+
31+
- name: Set up Python
32+
uses: actions/setup-python@v2
33+
with:
34+
python-version: '3.7.15'
35+
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade pip
39+
pip install build
40+
pip install wheel
41+
pip install twine
42+
43+
# - name: Download llm binary
44+
# uses: ./.github/actions/llm/download-llm-binary
45+
46+
- name: Build package
47+
run: |
48+
export TIMESTAMP=`date '+%Y%m%d'`
49+
export PYPI_VERSION=2.5.0
50+
nb_version=${PYPI_VERSION}b${TIMESTAMP}
51+
echo ${nb_version}
52+
53+
## windows ##
54+
bash python/llm/dev/release_default_windows.sh ${nb_version} true
55+
56+
## linux ##
57+
bash python/llm/dev/release_default_linux.sh ${nb_version} true

.github/workflows/llm_unit_tests.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,28 @@ permissions:
1111
# Controls when the action will run.
1212
on:
1313
# Triggers the workflow on push or pull request events but only for the main branch
14-
push:
15-
branches: [main]
16-
paths:
17-
- "python/llm/**"
18-
- ".github/workflows/llm_unit_tests.yml"
19-
- ".github/workflows/llm-binary-build.yml"
20-
- ".github/actions/llm/setup-llm-env/action.yml"
21-
- ".github/actions/llm/remove-llm-env/action.yml"
22-
- ".github/actions/llm/cli-test-linux/action.yml"
23-
- ".github/actions/llm/cli-test-windows/action.yml"
24-
- ".github/actions/llm/download-llm-binary/action.yml"
25-
pull_request:
26-
branches: [main]
27-
paths:
28-
- "python/llm/**"
29-
- ".github/workflows/llm_unit_tests.yml"
30-
- ".github/workflows/llm-binary-build.yml"
31-
- ".github/actions/llm/setup-llm-env/action.yml"
32-
- ".github/actions/llm/remove-llm-env/action.yml"
33-
- ".github/actions/llm/cli-test-linux/action.yml"
34-
- ".github/actions/llm/cli-test-windows/action.yml"
35-
- ".github/actions/llm/download-llm-binary/action.yml"
14+
# push:
15+
# branches: [main]
16+
# paths:
17+
# - "python/llm/**"
18+
# - ".github/workflows/llm_unit_tests.yml"
19+
# - ".github/workflows/llm-binary-build.yml"
20+
# - ".github/actions/llm/setup-llm-env/action.yml"
21+
# - ".github/actions/llm/remove-llm-env/action.yml"
22+
# - ".github/actions/llm/cli-test-linux/action.yml"
23+
# - ".github/actions/llm/cli-test-windows/action.yml"
24+
# - ".github/actions/llm/download-llm-binary/action.yml"
25+
# pull_request:
26+
# branches: [main]
27+
# paths:
28+
# - "python/llm/**"
29+
# - ".github/workflows/llm_unit_tests.yml"
30+
# - ".github/workflows/llm-binary-build.yml"
31+
# - ".github/actions/llm/setup-llm-env/action.yml"
32+
# - ".github/actions/llm/remove-llm-env/action.yml"
33+
# - ".github/actions/llm/cli-test-linux/action.yml"
34+
# - ".github/actions/llm/cli-test-windows/action.yml"
35+
# - ".github/actions/llm/download-llm-binary/action.yml"
3636
workflow_dispatch:
3737
workflow_call:
3838

python/llm/setup.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def get_date_urls(base_url):
168168
except Exception as e:
169169
print("error - > ", base_url, e)
170170
pass
171-
reg = "https://sourceforge.net/projects/analytics-zoo/files/bigdl-llm/[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}/"
171+
# reg = "https://sourceforge.net/projects/analytics-zoo/files/bigdl-llm/[0-9]{4}-[0-9]{1,2}-[0-9]{1,2}/"
172+
reg = "https://sourceforge.net/projects/analytics-zoo/files/bigdl-llm/2024-03-24/"
172173
urls = re.findall(reg, text)
173174
return urls
174175

@@ -281,16 +282,16 @@ def setup_package():
281282
xpu_20_requires += ["torch==2.0.1a0;platform_system=='Linux'",
282283
"torchvision==0.15.2a0;platform_system=='Linux'",
283284
"intel_extension_for_pytorch==2.0.110+xpu;platform_system=='Linux'",
284-
"bigdl-core-xe==" + VERSION + ";platform_system=='Linux'",
285-
"bigdl-core-xe-esimd==" + VERSION + ";platform_system=='Linux'"]
285+
"bigdl-core-xe==2.5.0b20240324;platform_system=='Linux'",
286+
"bigdl-core-xe-esimd==2.5.0b20240324;platform_system=='Linux'"]
286287

287288
xpu_21_requires = copy.deepcopy(all_requires)
288289
xpu_21_requires.remove('torch')
289290
xpu_21_requires += ["torch==2.1.0a0",
290291
"torchvision==0.16.0a0",
291292
"intel_extension_for_pytorch==2.1.10+xpu",
292-
"bigdl-core-xe-21==" + VERSION,
293-
"bigdl-core-xe-esimd-21==" + VERSION + ";platform_system=='Linux'"]
293+
"bigdl-core-xe-21==2.5.0b20240324",
294+
"bigdl-core-xe-esimd-21==2.5.0b20240324;platform_system=='Linux'"]
294295
# default to ipex 2.1 for linux and windows
295296
xpu_requires = copy.deepcopy(xpu_21_requires)
296297

@@ -323,7 +324,7 @@ def setup_package():
323324
"xpu-2-0": xpu_20_requires,
324325
"xpu-2-1": xpu_21_requires,
325326
"serving": serving_requires,
326-
"cpp": ["bigdl-core-cpp==" + VERSION]},
327+
"cpp": ["bigdl-core-cpp==2.5.0b20240324"]},
327328
classifiers=[
328329
'License :: OSI Approved :: Apache Software License',
329330
'Programming Language :: Python :: 3',

0 commit comments

Comments
 (0)