Skip to content

Commit 1fdf6f0

Browse files
authored
Add precommit config (intel#1216)
1 parent 3f62ceb commit 1fdf6f0

File tree

603 files changed

+4851
-3025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

603 files changed

+4851
-3025
lines changed

.github/license_template.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (c) 2024 Intel Corporation
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ how to reproduce the test (including hardware information)
1818

1919
## Dependency Change?
2020

21-
any library dependency introduced or removed
21+
any library dependency introduced or removed

.github/workflows/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,3 @@ If you want to run tests locally, please refer to test yml and corresponding scr
3333
| Kernel Benchmark | [sparse_lib_CI.yml](./sparse_lib_CI.yml) | [kernel-benchmark](./script/SparseLibCI/) |
3434
| NeuralChat Workflows | [chatbot-test.yml](./chatbot-test.yml) | [chatbot](./script/chatbot/) |
3535
|Copyright Check | [copyright_check.yml](./copyright_check.yml) | N/A |
36-
37-
38-

.github/workflows/chatbot-finetune-mpt-7b-chat-hpu.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Clean Up Working Directory
1616
run: sudo rm -rf ~/itrex-actions-runner/_work/intel-extension-for-transformers/intel-extension-for-transformers/*
17-
17+
1818
- uses: actions/checkout@v3
1919
with:
2020
submodules: "recursive"
@@ -59,8 +59,8 @@ jobs:
5959
--device hpu \
6060
--use_habana \
6161
--use_lazy_mode "
62-
63-
docker exec "chatbotfinetune-hpu-s0" bash -c "$cmd"
62+
63+
docker exec "chatbotfinetune-hpu-s0" bash -c "$cmd"
6464
6565
- name: Stop Container
6666
if: success() || failure()

.github/workflows/chatbot-finetune-mpt-7b-chat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818
- name: Load environment variables
19-
run:
19+
run:
2020
cat ~/itrex-actions-runner/.env >> $GITHUB_ENV
2121
- name: Prepare Cache
2222
run: cp ${{ env.CACHE }}/torch/* ./
2323

2424
- name: Build Docker Image
25-
run:
25+
run:
2626
if [[ $(docker images | grep chatbotfinetune-mpi | wc -l) == 0 ]]; then
2727
docker build ./ --target cpu --build-arg REPO=${{ github.server_url }}/${{ github.repository }}.git --build-arg ITREX_VER=${{ github.head_ref }} --build-arg REPO_PATH="." --build-arg http_proxy="${{ env.HTTP_PROXY_IMAGE_BUILD }}" --build-arg https_proxy="${{ env.HTTPS_PROXY_IMAGE_BUILD }}" -f intel_extension_for_transformers/neural_chat/docker/Dockerfile -t chatbotfinetune-mpi:latest && yes | docker container prune && yes | docker image prune;
2828
fi
@@ -55,7 +55,7 @@ jobs:
5555
- name: Print Logs and Check Finetuning Status
5656
if: success() || failure()
5757
run: |
58-
sh .github/workflows/script/chatbot/finish_ft_mpt-7b-chat_mpi.sh
58+
sh .github/workflows/script/chatbot/finish_ft_mpt-7b-chat_mpi.sh
5959
6060
- name: Stop Container
6161
if: success() || failure()

.github/workflows/chatbot-inference-llama-2-7b-chat-hf.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: cat ~/actions-runner/.env >> $GITHUB_ENV
2020

2121
- name: Build Docker Image
22-
run:
22+
run:
2323
if [ $(docker images | grep chatbotinfer-1-gha | wc -l) == 0 ]; then
2424
docker build --no-cache ./ --target cpu --build-arg REPO=${{ github.server_url }}/${{ github.repository }}.git --build-arg ITREX_VER=${{ github.head_ref }} --build-arg REPO_PATH="." --build-arg http_proxy="${{ env.HTTP_PROXY_IMAGE_BUILD }}" --build-arg https_proxy="${{ env.HTTPS_PROXY_IMAGE_BUILD }}" -f intel_extension_for_transformers/neural_chat/docker/Dockerfile -t chatbotinfer-1-gha:latest && yes | docker container prune && yes | docker image prune;
2525
fi

.github/workflows/chatbot-inference-mpt-7b-chat-hpu.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
submodules: "recursive"
2121

2222
- name: Load environment variables
23-
run:
23+
run:
2424
cat ~/itrex-actions-runner/.env >> $GITHUB_ENV
25-
25+
2626
- name: Build Docker Image
2727
run: docker build --no-cache ./ --target hpu --build-arg ITREX_VER=${{ github.event.pull_request.head.ref }} --build-arg REPO=${{ github.server_url }}/${{ github.event.pull_request.head.repo.full_name }}.git --build-arg REPO_PATH="." --build-arg http_proxy="${{ env.HTTP_PROXY_IMAGE_BUILD }}" --build-arg https_proxy="${{ env.HTTPS_PROXY_IMAGE_BUILD }}" -f intel_extension_for_transformers/neural_chat/docker/Dockerfile -t chatbotinfer-hpu:latest && yes | docker container prune && yes | docker image prune
2828

@@ -44,4 +44,3 @@ jobs:
4444
4545
- name: Test Summary
4646
run: echo "Inference completed successfully"
47-

.github/workflows/chatbot-inference-mpt-7b-chat.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
uses: actions/checkout@v2
1717

1818
- name: Load environment variables
19-
run:
19+
run:
2020
cat ~/actions-runner/.env >> $GITHUB_ENV
2121

2222
- name: Build Docker Image
23-
run:
23+
run:
2424
if [ $(docker images | grep chatbotinfer-1-gha | wc -l) == 0 ]; then
2525
docker build --no-cache ./ --target cpu --build-arg REPO=${{ github.server_url }}/${{ github.repository }}.git --build-arg ITREX_VER=${{ github.head_ref }} --build-arg REPO_PATH="." --build-arg http_proxy="${{ env.HTTP_PROXY_IMAGE_BUILD }}" --build-arg https_proxy="${{ env.HTTPS_PROXY_IMAGE_BUILD }}" -f intel_extension_for_transformers/neural_chat/docker/Dockerfile -t chatbotinfer-1-gha:latest && yes | docker container prune && yes | docker image prune;
2626
fi

.github/workflows/chatbot-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ jobs:
5050
#
5151
# call-finetune-mpt-7b-chat-hpu:
5252
# uses: ./.github/workflows/chatbot-finetune-mpt-7b-chat-hpu.yml
53-

.github/workflows/chatbot_finetuning.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@ concurrency:
1111
jobs:
1212
call-finetune-mpt-7b-chat:
1313
uses: ./.github/workflows/chatbot-finetune-mpt-7b-chat.yml
14-

0 commit comments

Comments
 (0)