-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'perplexity-test' of https://github.com/nod-ai/sharktank …
…into perplexity-test
- Loading branch information
Showing
51 changed files
with
1,123 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,10 +20,10 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: '3.10.12' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# Copyright 2024 Advanced Micro Devices, Inc. | ||
# | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
||
name: CI - shortfin - Windows | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/ci_windows_x64-libshortfin.yml' | ||
- 'shortfin/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
concurrency: | ||
# A PR number if a pull request and otherwise the commit hash. This cancels | ||
# queued and in-progress runs for the same PR (presubmit) or commit | ||
# (postsubmit). The workflow name is prepended to avoid conflicts between | ||
# different workflows. | ||
group: ${{ github.workflow }}-${{ github.event.number || github.sha }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
IREE_REPO_DIR: ${{ github.workspace }}/iree | ||
LIBSHORTFIN_DIR: ${{ github.workspace }}/shortfin/ | ||
|
||
jobs: | ||
build-and-test: | ||
name: Build and test | ||
runs-on: windows-2022 | ||
|
||
steps: | ||
- name: Configure MSVC | ||
uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0 | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
submodules: false | ||
|
||
- name: Checkout IREE repo | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
repository: iree-org/iree | ||
path: ${{ env.IREE_REPO_DIR }} | ||
submodules: false | ||
ref: candidate-20240904.1006 | ||
|
||
- name: Initalize IREE submodules | ||
working-directory: ${{ env.IREE_REPO_DIR }} | ||
run : | | ||
git submodule update --init --depth 1 -- third_party/benchmark | ||
git submodule update --init --depth 1 -- third_party/cpuinfo/ | ||
git submodule update --init --depth 1 -- third_party/flatcc | ||
git submodule update --init --depth 1 -- third_party/googletest | ||
git submodule update --init --depth 1 -- third_party/hip-build-deps/ | ||
- name: Setup Python | ||
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | ||
with: | ||
python-version: "3.12" | ||
cache: "pip" | ||
- name: Install Python packages | ||
working-directory: ${{ env.LIBSHORTFIN_DIR }} | ||
run: | | ||
pip install -r requirements-tests.txt | ||
pip install -r requirements-iree-compiler.txt | ||
pip freeze | ||
- name: Build shortfin (full) | ||
working-directory: ${{ env.LIBSHORTFIN_DIR }} | ||
shell: bash | ||
run: | | ||
mkdir build | ||
cmake -GNinja \ | ||
-S. \ | ||
-Bbuild \ | ||
-DSHORTFIN_BUNDLE_DEPS=ON \ | ||
-DSHORTFIN_IREE_SOURCE_DIR="${{ env.IREE_REPO_DIR }}" \ | ||
-DSHORTFIN_BUILD_PYTHON_BINDINGS=ON | ||
cmake --build build --target all | ||
pip install -v -e build/ | ||
- name: Test shortfin (full) | ||
working-directory: ${{ env.LIBSHORTFIN_DIR }} | ||
run: | | ||
ctest --timeout 30 --output-on-failure --test-dir build | ||
pytest -s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,11 +78,10 @@ def initialize_options(self): | |
name=f"sharktank", | ||
version=f"{PACKAGE_VERSION}", | ||
author="SHARK Authors", | ||
author_email="[email protected]", | ||
description="SHARK layers and inference models for genai", | ||
long_description=README, | ||
long_description_content_type="text/markdown", | ||
url="https://github.com/nod-ai/sharktank", | ||
url="https://github.com/nod-ai/SHARK-Platform", | ||
license="Apache-2.0", | ||
classifiers=[ | ||
"Development Status :: 3 - Alpha", | ||
|
@@ -95,7 +94,7 @@ def initialize_options(self): | |
"sharktank": ["py.typed", "kernels/templates/*.mlir"], | ||
}, | ||
install_requires=[ | ||
"shark-turbine", | ||
"iree-turbine", | ||
], | ||
extras_require={ | ||
"testing": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.