From 90dfa29032d8f49be8569f635e6f043b9874e35f Mon Sep 17 00:00:00 2001 From: Tyler Titsworth Date: Wed, 27 Mar 2024 09:42:26 -0700 Subject: [PATCH] Add Auto-License Hook (#217) * add pre-commit ci and license handling * add licenses * test ci * add gha * remove ci --- .github/action.yml | 14 ++++++++++++++ .github/dependabot.yml | 14 ++++++++++++++ .github/license_template.txt | 13 +++++++++++++ .github/linters/.hadolint.yaml | 14 ++++++++++++++ .github/linters/.markdown-lint.yaml | 14 ++++++++++++++ .github/linters/.yaml-lint.yml | 14 ++++++++++++++ .github/linters/actionlint.yml | 14 ++++++++++++++ .github/utils/val-args.sh | 14 ++++++++++++++ .github/workflows/bandit.yaml | 14 ++++++++++++++ .../workflows/container-pipeline-tester.yaml | 14 ++++++++++++++ .github/workflows/lint.yaml | 14 ++++++++++++++ .github/workflows/ossf.yaml | 14 ++++++++++++++ .github/workflows/review-trigger.yml | 14 ++++++++++++++ .github/workflows/unit-test.yaml | 14 ++++++++++++++ .pre-commit-config.yaml | 17 +++++++++++++++-- classical-ml/base/.patch_sklearn.py | 14 ++++++++++++++ classical-ml/docker-compose.yaml | 14 ++++++++++++++ classical-ml/tests/tests.yaml | 14 ++++++++++++++ docs/_config.yml | 14 ++++++++++++++ docs/ai-containers.yaml | 14 ++++++++++++++ docs/generate_landing_page.py | 14 ++++++++++++++ preset/classical-ml/tests.yaml | 14 ++++++++++++++ .../tests/modin/modin_quickstart.py | 14 ++++++++++++++ preset/classical-ml/tests/modin/test_modin.sh | 14 ++++++++++++++ preset/classical-ml/tests/scikit/kmeans.py | 14 ++++++++++++++ preset/classical-ml/tests/scikit/test_scikit.sh | 14 ++++++++++++++ .../classical-ml/tests/xgboost/test_xgboost.py | 14 ++++++++++++++ .../classical-ml/tests/xgboost/test_xgboost.sh | 14 ++++++++++++++ preset/data-analytics/tests.yaml | 14 ++++++++++++++ .../tests/modin/modin_quickstart.py | 14 ++++++++++++++ preset/data-analytics/tests/modin/test_modin.sh | 14 ++++++++++++++ .../demo/pytorch-distributed/pytorch_mnist.py | 14 ++++++++++++++ preset/deep-learning/tests.yaml | 14 ++++++++++++++ .../intel_extension_for_pytorch/test_ipex.py | 14 ++++++++++++++ .../notebooks/inc-ipex-quantization/dataset.py | 14 ++++++++++++++ .../notebooks/inc-itex/alexnet.py | 14 ++++++++++++++ .../notebooks/inc-itex/alexnet.yaml | 14 ++++++++++++++ .../notebooks/inc-itex/inc_quantize_model.py | 14 ++++++++++++++ .../notebooks/inc-itex/mnist_dataset.py | 14 ++++++++++++++ .../notebooks/inc-itex/profiling_inc.py | 14 ++++++++++++++ .../scripts/freeze_optimize_v2.py | 14 ++++++++++++++ .../itex-inference/scripts/profile_utils.py | 14 ++++++++++++++ .../itex-inference/scripts/tf_pb_utils.py | 14 ++++++++++++++ preset/inference-optimization/tests.yaml | 14 ++++++++++++++ .../intel_extension_for_pytorch/test_ipex.py | 14 ++++++++++++++ .../tests/neural_compressor/tensorflow/run.sh | 14 ++++++++++++++ .../tests/neural_compressor/torch/run.sh | 14 ++++++++++++++ preset/inference-optimization/tests/onnx/run.sh | 14 ++++++++++++++ .../tests/onnx/test_onnx.py | 14 ++++++++++++++ python/compose.override.yaml | 14 ++++++++++++++ python/docker-compose.yaml | 14 ++++++++++++++ pytorch/charts/inference/Chart.yaml | 14 ++++++++++++++ pytorch/charts/inference/templates/deploy.yaml | 14 ++++++++++++++ pytorch/charts/inference/templates/service.yaml | 14 ++++++++++++++ pytorch/charts/inference/values.yaml | 14 ++++++++++++++ pytorch/charts/training/Chart.yaml | 14 ++++++++++++++ pytorch/charts/training/templates/pvc.yaml | 14 ++++++++++++++ .../charts/training/templates/pytorchjob.yaml | 14 ++++++++++++++ pytorch/charts/training/values.yaml | 14 ++++++++++++++ pytorch/docker-compose.yaml | 14 ++++++++++++++ pytorch/serving/README.md | 2 +- pytorch/serving/build-kfs.sh | 14 ++++++++++++++ pytorch/serving/patch.yaml | 14 ++++++++++++++ pytorch/serving/tests.yaml | 14 ++++++++++++++ pytorch/tests/ipex-resnet50.py | 14 ++++++++++++++ pytorch/tests/tests.yaml | 14 ++++++++++++++ tensorflow/charts/inference/Chart.yaml | 14 ++++++++++++++ .../charts/inference/templates/deploy.yaml | 14 ++++++++++++++ tensorflow/charts/inference/templates/hpa.yaml | 14 ++++++++++++++ .../charts/inference/templates/service.yaml | 14 ++++++++++++++ tensorflow/charts/inference/values.yaml | 14 ++++++++++++++ tensorflow/charts/training/Chart.yaml | 14 ++++++++++++++ .../charts/training/templates/mpijob.yaml | 14 ++++++++++++++ tensorflow/charts/training/templates/pvc.yaml | 14 ++++++++++++++ tensorflow/charts/training/values.yaml | 14 ++++++++++++++ tensorflow/docker-compose.yaml | 14 ++++++++++++++ tensorflow/serving/half_plus_two.sh | 14 ++++++++++++++ tensorflow/serving/mnist.sh | 14 ++++++++++++++ tensorflow/serving/tests.yaml | 14 ++++++++++++++ tensorflow/tests/tests.yaml | 14 ++++++++++++++ test-runner/action.yml | 14 ++++++++++++++ test-runner/tests.yaml | 14 ++++++++++++++ test-runner/tests/utest.py | 14 ++++++++++++++ test-runner/utils/test.py | 14 ++++++++++++++ 84 files changed, 1163 insertions(+), 3 deletions(-) create mode 100644 .github/license_template.txt diff --git a/.github/action.yml b/.github/action.yml index 18460969..48d5c29b 100644 --- a/.github/action.yml +++ b/.github/action.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- name: Build Container Group Action description: Given the inputs found below, build all containers found in a docker-compose.yaml file for a given configuration diff --git a/.github/dependabot.yml b/.github/dependabot.yml index e7cb6de3..94fbb80c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # To get started with Dependabot version updates, you'll need to specify which # package ecosystems to update and where the package manifests are located. # Please see the documentation for all configuration options: diff --git a/.github/license_template.txt b/.github/license_template.txt new file mode 100644 index 00000000..9744588b --- /dev/null +++ b/.github/license_template.txt @@ -0,0 +1,13 @@ +Copyright (c) 2024 Intel Corporation + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/.github/linters/.hadolint.yaml b/.github/linters/.hadolint.yaml index 1da5d312..db030a29 100644 --- a/.github/linters/.hadolint.yaml +++ b/.github/linters/.hadolint.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- ignored: - DL3006 diff --git a/.github/linters/.markdown-lint.yaml b/.github/linters/.markdown-lint.yaml index cf67c140..9c8f80a1 100644 --- a/.github/linters/.markdown-lint.yaml +++ b/.github/linters/.markdown-lint.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- MD013: false MD024: false diff --git a/.github/linters/.yaml-lint.yml b/.github/linters/.yaml-lint.yml index 4cc96184..6c2a65c3 100644 --- a/.github/linters/.yaml-lint.yml +++ b/.github/linters/.yaml-lint.yml @@ -1,2 +1,16 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- ignore: '**/templates/**.yaml' diff --git a/.github/linters/actionlint.yml b/.github/linters/actionlint.yml index eff2d862..9281cbf2 100644 --- a/.github/linters/actionlint.yml +++ b/.github/linters/actionlint.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- self-hosted-runner: labels: diff --git a/.github/utils/val-args.sh b/.github/utils/val-args.sh index 9ea88fb8..8ea99a33 100755 --- a/.github/utils/val-args.sh +++ b/.github/utils/val-args.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -euf -o pipefail # Input string diff --git a/.github/workflows/bandit.yaml b/.github/workflows/bandit.yaml index 926bcc1a..cb740854 100644 --- a/.github/workflows/bandit.yaml +++ b/.github/workflows/bandit.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- name: Bandit Scan on: diff --git a/.github/workflows/container-pipeline-tester.yaml b/.github/workflows/container-pipeline-tester.yaml index 7686f739..db143c6e 100644 --- a/.github/workflows/container-pipeline-tester.yaml +++ b/.github/workflows/container-pipeline-tester.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- name: Container Pipeline Tester permissions: read-all diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 324d6451..60d8a52c 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- name: Lint permissions: read-all diff --git a/.github/workflows/ossf.yaml b/.github/workflows/ossf.yaml index e4ed532b..09392a52 100644 --- a/.github/workflows/ossf.yaml +++ b/.github/workflows/ossf.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # This workflow uses actions that are not certified by GitHub. They are provided # by a third-party and are governed by separate terms of service, privacy # policy, and support documentation. diff --git a/.github/workflows/review-trigger.yml b/.github/workflows/review-trigger.yml index adb014da..e661767d 100644 --- a/.github/workflows/review-trigger.yml +++ b/.github/workflows/review-trigger.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- name: Review Pipeline Validation on: diff --git a/.github/workflows/unit-test.yaml b/.github/workflows/unit-test.yaml index 2ecab062..510d0e83 100644 --- a/.github/workflows/unit-test.yaml +++ b/.github/workflows/unit-test.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- name: Test Runner Unit Tests on: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 949b3d8f..a5b188cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,4 @@ --- -# See https://pre-commit.com for more information -# See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.5.0 @@ -13,6 +11,21 @@ repos: - id: forbid-submodules - id: sort-simple-yaml - id: trailing-whitespace + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.5 + hooks: + - id: insert-license + files: | + (?x)^( + .*(py|yaml|yml|sh|Dockerfile)| + )$ + args: + [ + --license-filepath=.github/license_template.txt, + --use-current-year, + --detect-license-in-X-top-lines=40, + --skip-license-insertion-comment=Copyright, + ] - repo: https://github.com/hadolint/hadolint rev: v2.12.1-beta hooks: diff --git a/classical-ml/base/.patch_sklearn.py b/classical-ml/base/.patch_sklearn.py index b81bd0cd..5c1a131d 100644 --- a/classical-ml/base/.patch_sklearn.py +++ b/classical-ml/base/.patch_sklearn.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file from sklearnex import patch_sklearn, unpatch_sklearn diff --git a/classical-ml/docker-compose.yaml b/classical-ml/docker-compose.yaml index 87aaf6b1..e33331c4 100644 --- a/classical-ml/docker-compose.yaml +++ b/classical-ml/docker-compose.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '3' services: python: diff --git a/classical-ml/tests/tests.yaml b/classical-ml/tests/tests.yaml index 05603157..1adbe4e2 100644 --- a/classical-ml/tests/tests.yaml +++ b/classical-ml/tests/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- classical-ml-base-${PACKAGE_OPTION:-pip}-sklearn: img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-${PACKAGE_OPTION:-pip}-py${PYTHON_VERSION:-3.10}-scikit-learn-${SCIKIT_VERSION:-2024.2.0}-xgboost-${XGBOOST_VERSION:-2.0.3}-base diff --git a/docs/_config.yml b/docs/_config.yml index 55f1286a..fa140116 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- remote_theme: pages-themes/cayman@v0.2.0 markdown: GFM diff --git a/docs/ai-containers.yaml b/docs/ai-containers.yaml index 98f315d8..ae602e79 100644 --- a/docs/ai-containers.yaml +++ b/docs/ai-containers.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- ai-tools: _title: IntelĀ® AI Tools diff --git a/docs/generate_landing_page.py b/docs/generate_landing_page.py index eafa9dcf..80f1e24d 100644 --- a/docs/generate_landing_page.py +++ b/docs/generate_landing_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import yaml from py_markdown_table.markdown_table import markdown_table diff --git a/preset/classical-ml/tests.yaml b/preset/classical-ml/tests.yaml index 1d454e4e..771508d0 100644 --- a/preset/classical-ml/tests.yaml +++ b/preset/classical-ml/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- # cmd: conda run -n classical-ml bash -c 'yes | python -m dataset_librarian.dataset -n msmarco --download -d ~/msmarco' # img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-classical-ml-${PRESET_RELEASE:-2024.0.0}-py3.10 diff --git a/preset/classical-ml/tests/modin/modin_quickstart.py b/preset/classical-ml/tests/modin/modin_quickstart.py index 3e3da1e6..aaa6ea5b 100644 --- a/preset/classical-ml/tests/modin/modin_quickstart.py +++ b/preset/classical-ml/tests/modin/modin_quickstart.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import time diff --git a/preset/classical-ml/tests/modin/test_modin.sh b/preset/classical-ml/tests/modin/test_modin.sh index b7e55cbf..36837fd8 100755 --- a/preset/classical-ml/tests/modin/test_modin.sh +++ b/preset/classical-ml/tests/modin/test_modin.sh @@ -1,5 +1,19 @@ #! /bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -xe mkdir -p /home/dev/data SCRIPT_DIR=$(dirname "$0") diff --git a/preset/classical-ml/tests/scikit/kmeans.py b/preset/classical-ml/tests/scikit/kmeans.py index 68a38737..9120b7d0 100644 --- a/preset/classical-ml/tests/scikit/kmeans.py +++ b/preset/classical-ml/tests/scikit/kmeans.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file """ =========================================================== diff --git a/preset/classical-ml/tests/scikit/test_scikit.sh b/preset/classical-ml/tests/scikit/test_scikit.sh index df545d2a..a6b2f24e 100755 --- a/preset/classical-ml/tests/scikit/test_scikit.sh +++ b/preset/classical-ml/tests/scikit/test_scikit.sh @@ -1,4 +1,18 @@ #! /bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -xe SCRIPT_DIR=$(dirname "$0") diff --git a/preset/classical-ml/tests/xgboost/test_xgboost.py b/preset/classical-ml/tests/xgboost/test_xgboost.py index 29e0a838..d570af7a 100644 --- a/preset/classical-ml/tests/xgboost/test_xgboost.py +++ b/preset/classical-ml/tests/xgboost/test_xgboost.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import os import pickle diff --git a/preset/classical-ml/tests/xgboost/test_xgboost.sh b/preset/classical-ml/tests/xgboost/test_xgboost.sh index 06cc7714..84e43008 100755 --- a/preset/classical-ml/tests/xgboost/test_xgboost.sh +++ b/preset/classical-ml/tests/xgboost/test_xgboost.sh @@ -1,5 +1,19 @@ #! /bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + mkdir -p ~/data mkdir -p ~/output diff --git a/preset/data-analytics/tests.yaml b/preset/data-analytics/tests.yaml index ca6c9a37..083c82ce 100644 --- a/preset/data-analytics/tests.yaml +++ b/preset/data-analytics/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- dataset-librarian-3.10: cmd: conda run -n data-analytics bash -c 'yes | python -m dataset_librarian.dataset -n msmarco --download -d ~/msmarco' diff --git a/preset/data-analytics/tests/modin/modin_quickstart.py b/preset/data-analytics/tests/modin/modin_quickstart.py index 3e3da1e6..aaa6ea5b 100644 --- a/preset/data-analytics/tests/modin/modin_quickstart.py +++ b/preset/data-analytics/tests/modin/modin_quickstart.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import time diff --git a/preset/data-analytics/tests/modin/test_modin.sh b/preset/data-analytics/tests/modin/test_modin.sh index 62b8ea46..d0b0b3de 100755 --- a/preset/data-analytics/tests/modin/test_modin.sh +++ b/preset/data-analytics/tests/modin/test_modin.sh @@ -1,5 +1,19 @@ #! /bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -xe mkdir -p ~/data SCRIPT_DIR=$(dirname "$0") diff --git a/preset/deep-learning/demo/pytorch-distributed/pytorch_mnist.py b/preset/deep-learning/demo/pytorch-distributed/pytorch_mnist.py index af3f8037..d50a340d 100644 --- a/preset/deep-learning/demo/pytorch-distributed/pytorch_mnist.py +++ b/preset/deep-learning/demo/pytorch-distributed/pytorch_mnist.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file from __future__ import print_function diff --git a/preset/deep-learning/tests.yaml b/preset/deep-learning/tests.yaml index abc02a8b..f9b71f3c 100644 --- a/preset/deep-learning/tests.yaml +++ b/preset/deep-learning/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- deep-learning-ipex-3.10-cpu: cmd: conda run -n pytorch-cpu python -W ignore sample-tests/intel_extension_for_pytorch/test_ipex.py --device cpu --ipex diff --git a/preset/deep-learning/tests/intel_extension_for_pytorch/test_ipex.py b/preset/deep-learning/tests/intel_extension_for_pytorch/test_ipex.py index 06d5b5b8..f5355dd3 100755 --- a/preset/deep-learning/tests/intel_extension_for_pytorch/test_ipex.py +++ b/preset/deep-learning/tests/intel_extension_for_pytorch/test_ipex.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import argparse diff --git a/preset/inference-optimization/notebooks/inc-ipex-quantization/dataset.py b/preset/inference-optimization/notebooks/inc-ipex-quantization/dataset.py index 5121b347..34d20675 100755 --- a/preset/inference-optimization/notebooks/inc-ipex-quantization/dataset.py +++ b/preset/inference-optimization/notebooks/inc-ipex-quantization/dataset.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file from typing import List diff --git a/preset/inference-optimization/notebooks/inc-itex/alexnet.py b/preset/inference-optimization/notebooks/inc-itex/alexnet.py index bde2bd46..d4a7edb8 100755 --- a/preset/inference-optimization/notebooks/inc-itex/alexnet.py +++ b/preset/inference-optimization/notebooks/inc-itex/alexnet.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import os diff --git a/preset/inference-optimization/notebooks/inc-itex/alexnet.yaml b/preset/inference-optimization/notebooks/inc-itex/alexnet.yaml index c6dddd63..c2e6ab8e 100755 --- a/preset/inference-optimization/notebooks/inc-itex/alexnet.yaml +++ b/preset/inference-optimization/notebooks/inc-itex/alexnet.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: 1.0 model: diff --git a/preset/inference-optimization/notebooks/inc-itex/inc_quantize_model.py b/preset/inference-optimization/notebooks/inc-itex/inc_quantize_model.py index fb2ca036..04f92724 100755 --- a/preset/inference-optimization/notebooks/inc-itex/inc_quantize_model.py +++ b/preset/inference-optimization/notebooks/inc-itex/inc_quantize_model.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import sys diff --git a/preset/inference-optimization/notebooks/inc-itex/mnist_dataset.py b/preset/inference-optimization/notebooks/inc-itex/mnist_dataset.py index eb7bfd22..d4eef236 100755 --- a/preset/inference-optimization/notebooks/inc-itex/mnist_dataset.py +++ b/preset/inference-optimization/notebooks/inc-itex/mnist_dataset.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file # tf 2.x import tensorflow as tf diff --git a/preset/inference-optimization/notebooks/inc-itex/profiling_inc.py b/preset/inference-optimization/notebooks/inc-itex/profiling_inc.py index 089d9212..55712c64 100755 --- a/preset/inference-optimization/notebooks/inc-itex/profiling_inc.py +++ b/preset/inference-optimization/notebooks/inc-itex/profiling_inc.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import tensorflow as tf diff --git a/preset/inference-optimization/notebooks/itex-inference/scripts/freeze_optimize_v2.py b/preset/inference-optimization/notebooks/itex-inference/scripts/freeze_optimize_v2.py index 17c761dd..3ee4789b 100755 --- a/preset/inference-optimization/notebooks/itex-inference/scripts/freeze_optimize_v2.py +++ b/preset/inference-optimization/notebooks/itex-inference/scripts/freeze_optimize_v2.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import argparse import os diff --git a/preset/inference-optimization/notebooks/itex-inference/scripts/profile_utils.py b/preset/inference-optimization/notebooks/itex-inference/scripts/profile_utils.py index 7f9427f7..c4371eb6 100755 --- a/preset/inference-optimization/notebooks/itex-inference/scripts/profile_utils.py +++ b/preset/inference-optimization/notebooks/itex-inference/scripts/profile_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import ast import configparser diff --git a/preset/inference-optimization/notebooks/itex-inference/scripts/tf_pb_utils.py b/preset/inference-optimization/notebooks/itex-inference/scripts/tf_pb_utils.py index 919fb393..b299d6d0 100755 --- a/preset/inference-optimization/notebooks/itex-inference/scripts/tf_pb_utils.py +++ b/preset/inference-optimization/notebooks/itex-inference/scripts/tf_pb_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file #! /usr/bin/env python import argparse diff --git a/preset/inference-optimization/tests.yaml b/preset/inference-optimization/tests.yaml index bb5711bd..d7a52097 100644 --- a/preset/inference-optimization/tests.yaml +++ b/preset/inference-optimization/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- inference-optimization-inc-ipex-quantization-notebook-3.10-cpu: cmd: papermill --log-output jupyter/inc-ipex-quantization/quantize_with_inc.ipynb result.ipynb -k pytorch-cpu --cwd jupyter/inc-ipex-quantization diff --git a/preset/inference-optimization/tests/intel_extension_for_pytorch/test_ipex.py b/preset/inference-optimization/tests/intel_extension_for_pytorch/test_ipex.py index 06d5b5b8..f5355dd3 100755 --- a/preset/inference-optimization/tests/intel_extension_for_pytorch/test_ipex.py +++ b/preset/inference-optimization/tests/intel_extension_for_pytorch/test_ipex.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import argparse diff --git a/preset/inference-optimization/tests/neural_compressor/tensorflow/run.sh b/preset/inference-optimization/tests/neural_compressor/tensorflow/run.sh index e0ec2bcc..c35d24e5 100755 --- a/preset/inference-optimization/tests/neural_compressor/tensorflow/run.sh +++ b/preset/inference-optimization/tests/neural_compressor/tensorflow/run.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -xe mkdir -p ~/input_model #User might not have write permission to write at root of MLOps repo diff --git a/preset/inference-optimization/tests/neural_compressor/torch/run.sh b/preset/inference-optimization/tests/neural_compressor/torch/run.sh index ff024bc7..c647fbd8 100755 --- a/preset/inference-optimization/tests/neural_compressor/torch/run.sh +++ b/preset/inference-optimization/tests/neural_compressor/torch/run.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -xe mkdir -p ~/input_model #User might not have write permission to write at root of MLOps repo diff --git a/preset/inference-optimization/tests/onnx/run.sh b/preset/inference-optimization/tests/onnx/run.sh index 8e783396..8e5a05cb 100755 --- a/preset/inference-optimization/tests/onnx/run.sh +++ b/preset/inference-optimization/tests/onnx/run.sh @@ -1,4 +1,18 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + set -xe mkdir -p ~/onnx_test diff --git a/preset/inference-optimization/tests/onnx/test_onnx.py b/preset/inference-optimization/tests/onnx/test_onnx.py index b6b87144..ae238793 100644 --- a/preset/inference-optimization/tests/onnx/test_onnx.py +++ b/preset/inference-optimization/tests/onnx/test_onnx.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Taken from https://github.com/onnx/tensorflow-onnx/blob/main/examples/end2end_tfhub.py # SPDX-License-Identifier: Apache-2.0 # pylint: skip-file diff --git a/python/compose.override.yaml b/python/compose.override.yaml index 354d16e9..fc80a4c2 100644 --- a/python/compose.override.yaml +++ b/python/compose.override.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '3' services: idp-base: diff --git a/python/docker-compose.yaml b/python/docker-compose.yaml index 5ce1cc2f..e29794f7 100644 --- a/python/docker-compose.yaml +++ b/python/docker-compose.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '3' services: pip-base: diff --git a/pytorch/charts/inference/Chart.yaml b/pytorch/charts/inference/Chart.yaml index e5ed9bc1..01466011 100644 --- a/pytorch/charts/inference/Chart.yaml +++ b/pytorch/charts/inference/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v2 name: torchserve description: A Helm chart for Kubernetes diff --git a/pytorch/charts/inference/templates/deploy.yaml b/pytorch/charts/inference/templates/deploy.yaml index 3aa8dd5e..28225c09 100644 --- a/pytorch/charts/inference/templates/deploy.yaml +++ b/pytorch/charts/inference/templates/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/pytorch/charts/inference/templates/service.yaml b/pytorch/charts/inference/templates/service.yaml index 5daeb8cb..cff88f08 100644 --- a/pytorch/charts/inference/templates/service.yaml +++ b/pytorch/charts/inference/templates/service.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: v1 kind: Service diff --git a/pytorch/charts/inference/values.yaml b/pytorch/charts/inference/values.yaml index f633defe..215a8318 100644 --- a/pytorch/charts/inference/values.yaml +++ b/pytorch/charts/inference/values.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: ipex-serving deploy: image: pytorch/torchserve:latest-cpu diff --git a/pytorch/charts/training/Chart.yaml b/pytorch/charts/training/Chart.yaml index a92eee5c..3124d502 100644 --- a/pytorch/charts/training/Chart.yaml +++ b/pytorch/charts/training/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v2 name: IPEX Distributed description: A Helm chart for Kubernetes diff --git a/pytorch/charts/training/templates/pvc.yaml b/pytorch/charts/training/templates/pvc.yaml index 739a8e10..d2a76641 100644 --- a/pytorch/charts/training/templates/pvc.yaml +++ b/pytorch/charts/training/templates/pvc.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/pytorch/charts/training/templates/pytorchjob.yaml b/pytorch/charts/training/templates/pytorchjob.yaml index 1de6d6c3..2e160a48 100644 --- a/pytorch/charts/training/templates/pytorchjob.yaml +++ b/pytorch/charts/training/templates/pytorchjob.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: "kubeflow.org/v1" kind: PyTorchJob metadata: diff --git a/pytorch/charts/training/values.yaml b/pytorch/charts/training/values.yaml index 5e9dd3ac..37dbb782 100644 --- a/pytorch/charts/training/values.yaml +++ b/pytorch/charts/training/values.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + metadata: name: ipex-distributed namespace: kubeflow diff --git a/pytorch/docker-compose.yaml b/pytorch/docker-compose.yaml index c75e3e40..f65947fd 100644 --- a/pytorch/docker-compose.yaml +++ b/pytorch/docker-compose.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '3' include: - path: diff --git a/pytorch/serving/README.md b/pytorch/serving/README.md index 3bc9e4d7..65696cf8 100644 --- a/pytorch/serving/README.md +++ b/pytorch/serving/README.md @@ -248,7 +248,7 @@ Apply Intel Optimizations to KServe by patching the serving runtimes to use Inte filename=str(args.filename).split(".")[0], ext="json" ) with open(result_file, "w") as outfile: - json.dump(request, outfile, indent=4, sort_keys=True) + json.dump(request, outfile, indent=4, sort_keys=True) ``` Using the script will produce a json file to use as a prediction payload: diff --git a/pytorch/serving/build-kfs.sh b/pytorch/serving/build-kfs.sh index eec235e4..7cdedc93 100755 --- a/pytorch/serving/build-kfs.sh +++ b/pytorch/serving/build-kfs.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cd .. || exit docker compose pull torchserve docker tag "$(docker images -q | head -n1)" intel/torchserve:latest diff --git a/pytorch/serving/patch.yaml b/pytorch/serving/patch.yaml index a84092a7..f8c49ca9 100644 --- a/pytorch/serving/patch.yaml +++ b/pytorch/serving/patch.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- # Source: kserve/templates/clusterservingruntimes.yaml apiVersion: serving.kserve.io/v1alpha1 diff --git a/pytorch/serving/tests.yaml b/pytorch/serving/tests.yaml index 9c55ce77..db6010c5 100644 --- a/pytorch/serving/tests.yaml +++ b/pytorch/serving/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- ipex-serving-model-archive: img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-${PACKAGE_OPTION:-pip}-py${PYTHON_VERSION:-3.10}-torchserve diff --git a/pytorch/tests/ipex-resnet50.py b/pytorch/tests/ipex-resnet50.py index 06d5b5b8..f5355dd3 100644 --- a/pytorch/tests/ipex-resnet50.py +++ b/pytorch/tests/ipex-resnet50.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # pylint: skip-file import argparse diff --git a/pytorch/tests/tests.yaml b/pytorch/tests/tests.yaml index f8e96e69..552c0469 100644 --- a/pytorch/tests/tests.yaml +++ b/pytorch/tests/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ipex-cpu-${PACKAGE_OPTION:-pip}: img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-${PACKAGE_OPTION:-pip}-py${PYTHON_VERSION:-3.10}-ipex-${IPEX_VERSION:-2.2.0}-base cmd: python /tests/ipex-resnet50.py --ipex --device cpu diff --git a/tensorflow/charts/inference/Chart.yaml b/tensorflow/charts/inference/Chart.yaml index 66bc4632..a3f0b4dd 100644 --- a/tensorflow/charts/inference/Chart.yaml +++ b/tensorflow/charts/inference/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v2 name: tfserving description: A Helm chart for Kubernetes diff --git a/tensorflow/charts/inference/templates/deploy.yaml b/tensorflow/charts/inference/templates/deploy.yaml index cd003ed6..93bb6a0a 100644 --- a/tensorflow/charts/inference/templates/deploy.yaml +++ b/tensorflow/charts/inference/templates/deploy.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/tensorflow/charts/inference/templates/hpa.yaml b/tensorflow/charts/inference/templates/hpa.yaml index d8feaff2..b44d6073 100644 --- a/tensorflow/charts/inference/templates/hpa.yaml +++ b/tensorflow/charts/inference/templates/hpa.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: autoscaling/v1 kind: HorizontalPodAutoscaler metadata: diff --git a/tensorflow/charts/inference/templates/service.yaml b/tensorflow/charts/inference/templates/service.yaml index 52b5d8e3..080936e9 100644 --- a/tensorflow/charts/inference/templates/service.yaml +++ b/tensorflow/charts/inference/templates/service.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- apiVersion: v1 kind: Service diff --git a/tensorflow/charts/inference/values.yaml b/tensorflow/charts/inference/values.yaml index 79bb2687..e98827b1 100644 --- a/tensorflow/charts/inference/values.yaml +++ b/tensorflow/charts/inference/values.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: itex-serving deploy: image: intel/intel-extension-for-tensorflow:serving-cpu diff --git a/tensorflow/charts/training/Chart.yaml b/tensorflow/charts/training/Chart.yaml index a182798b..b6b76160 100644 --- a/tensorflow/charts/training/Chart.yaml +++ b/tensorflow/charts/training/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v2 name: ITEX Distributed description: A Helm chart for Kubernetes diff --git a/tensorflow/charts/training/templates/mpijob.yaml b/tensorflow/charts/training/templates/mpijob.yaml index e2d86fa3..8d17cb92 100644 --- a/tensorflow/charts/training/templates/mpijob.yaml +++ b/tensorflow/charts/training/templates/mpijob.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: kubeflow.org/v1 kind: MPIJob metadata: diff --git a/tensorflow/charts/training/templates/pvc.yaml b/tensorflow/charts/training/templates/pvc.yaml index 739a8e10..d2a76641 100644 --- a/tensorflow/charts/training/templates/pvc.yaml +++ b/tensorflow/charts/training/templates/pvc.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + apiVersion: v1 kind: PersistentVolumeClaim metadata: diff --git a/tensorflow/charts/training/values.yaml b/tensorflow/charts/training/values.yaml index 177fae45..d25fbb6d 100644 --- a/tensorflow/charts/training/values.yaml +++ b/tensorflow/charts/training/values.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + metadata: name: itex-distributed namespace: kubeflow diff --git a/tensorflow/docker-compose.yaml b/tensorflow/docker-compose.yaml index 468ea3fd..4392409a 100644 --- a/tensorflow/docker-compose.yaml +++ b/tensorflow/docker-compose.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + version: '3' services: python: diff --git a/tensorflow/serving/half_plus_two.sh b/tensorflow/serving/half_plus_two.sh index 55181aa7..6ea8571a 100644 --- a/tensorflow/serving/half_plus_two.sh +++ b/tensorflow/serving/half_plus_two.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pip install -r requirements.txt python half_plus_two_saved_model.py sleep 5 diff --git a/tensorflow/serving/mnist.sh b/tensorflow/serving/mnist.sh index 574ac1a6..216bbf3d 100755 --- a/tensorflow/serving/mnist.sh +++ b/tensorflow/serving/mnist.sh @@ -1,5 +1,19 @@ #!/bin/bash +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + pip install -r requirements.txt python mnist_saved_model.py mnist sleep 5 diff --git a/tensorflow/serving/tests.yaml b/tensorflow/serving/tests.yaml index 5165d2cb..924cbad3 100644 --- a/tensorflow/serving/tests.yaml +++ b/tensorflow/serving/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # itex-grpc-serving: # img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-intel-tensorflow-${TF_PACKAGE_VERSION:-2.13.0}-prod # cmd: bash /models/mnist.sh diff --git a/tensorflow/tests/tests.yaml b/tensorflow/tests/tests.yaml index 1dce7f9d..1c3b0b88 100644 --- a/tensorflow/tests/tests.yaml +++ b/tensorflow/tests/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + --- itex-xpu-jupyter-idp: img: ${REGISTRY}/aiops/mlops-ci:b-${GITHUB_RUN_NUMBER:-0}-${BASE_IMAGE_NAME:-ubuntu}-${BASE_IMAGE_TAG:-22.04}-idp-py${PYTHON_VERSION:-3.10}-itex-${TF_VERSION:-2.13}-itex-xpu-jupyter diff --git a/test-runner/action.yml b/test-runner/action.yml index 9d681b8a..d5f7ce2f 100644 --- a/test-runner/action.yml +++ b/test-runner/action.yml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Test Runner Action description: 'https://github.com/intel/ai-containers/blob/main/test-runner/README.md' author: tyler.titsworth@intel.com diff --git a/test-runner/tests.yaml b/test-runner/tests.yaml index dd95b300..be8d07cb 100644 --- a/test-runner/tests.yaml +++ b/test-runner/tests.yaml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + test1: img: ${REGISTRY}/aiops/compose-dev:latest # var substitution inline cmd: bash -c "head -n 1 /workspace/requirements.txt" # volume mounted file diff --git a/test-runner/tests/utest.py b/test-runner/tests/utest.py index fa2adbad..3cb75fbf 100644 --- a/test-runner/tests/utest.py +++ b/test-runner/tests/utest.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import sys diff --git a/test-runner/utils/test.py b/test-runner/utils/test.py index 36b52acf..a90cac50 100644 --- a/test-runner/utils/test.py +++ b/test-runner/utils/test.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Intel Corporation +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import os import sys