Skip to content

Commit

Permalink
Merge pull request #11 from intel-analytics/main
Browse files Browse the repository at this point in the history
Added new functions
  • Loading branch information
SANKHA1 authored Nov 3, 2024
2 parents 36df4d9 + 20755e8 commit 85a5bea
Show file tree
Hide file tree
Showing 228 changed files with 19,299 additions and 74,572 deletions.
2 changes: 2 additions & 0 deletions .github/actions/llm/download-llm-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ runs:
mv windows-avx2/* python/llm/llm-binary/
mv windows-avx-vnni/* python/llm/llm-binary/
mv windows-avx/* python/llm/llm-binary/
mv windows-npu-level0/* python/llm/llm-binary/
fi
rm -rf linux-avx2 || true
rm -rf linux-avx512 || true
Expand All @@ -36,3 +37,4 @@ runs:
rm -rf windows-avx2 || true
rm -rf windows-avx-vnni || true
rm -rf windows-avx || true
rm -rf windows-npu-level0 || true
56 changes: 56 additions & 0 deletions .github/workflows/llm-binary-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,62 @@ jobs:
path: |
release
check-windows-npu-level0-artifact:
if: ${{contains(inputs.platform, 'Windows')}}
runs-on: [Shire]
outputs:
if-exists: ${{steps.check_artifact.outputs.exists}}
steps:
- name: Check if built
id: check_artifact
uses: xSAVIKx/artifact-exists-action@v0
with:
name: windows-npu-level0

windows-build-npu-level0:
runs-on: [self-hosted, Windows, npu-level0]
needs: check-windows-npu-level0-artifact
if: needs.check-windows-npu-level0-artifact.outputs.if-exists == 'false'
steps:
- name: Set access token
run: |
echo "github_access_token=$env:GITHUB_ACCESS_TOKEN" >> $env:GITHUB_ENV
echo "github_access_token=$env:GITHUB_ACCESS_TOKEN"
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
with:
repository: "intel-analytics/llm.cpp"
ref: ${{ inputs.llmcpp-ref }}
token: ${{ env.github_access_token }}
submodules: "recursive"
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
with:
msbuild-architecture: x64
- name: Add cmake to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Build binary
shell: powershell
run: |
cd bigdl-core-npu-level0
mkdir build
cd build
cmake ..
cmake --build . --config Release -j
- name: Move release binary
shell: powershell
run: |
cd bigdl-core-npu-level0
if (Test-Path ./release) { rm -r -fo release }
mkdir release
mv build/Release/pipeline.dll release/pipeline.dll
- name: Archive build files
uses: actions/upload-artifact@v3
with:
name: windows-npu-level0
path: |
bigdl-core-npu-level0/release
# to make llm-binary-build optionally skippable
dummy-step:
if: ${{ inputs.platform == 'Dummy' }}
Expand Down
Loading

0 comments on commit 85a5bea

Please sign in to comment.