Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/gpu_ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,28 @@ concurrency:
cancel-in-progress: true

jobs:
Check-Changes:
runs-on: ubuntu-latest
outputs:
run_tests: ${{ steps.check_changes.outputs.run_tests }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check Changes
id: check_changes
run: |
git fetch origin ${{ github.base_ref }}
changed_files=$(git diff --name-only origin/${{ github.base_ref }} HEAD)
if echo "$changed_files" | grep -qE "^(data_processor|ernie|erniekit|examples|requirements|tests)/"; then
echo "run_tests=true" >> $GITHUB_OUTPUT
else
echo "run_tests=false" >> $GITHUB_OUTPUT
fi

Test:
needs: Check-Changes
if: needs.Check-Changes.outputs.run_tests == 'true'
name: Test
runs-on: [self-hosted, ernie-8gpu]
steps:
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,28 @@ env:
BRANCH: ${{ github.event.pull_request.base.ref }}
TASK: ERNIE-Codestyle-${{ github.event.pull_request.number }}
jobs:
Check-Changes:
runs-on: ubuntu-latest
outputs:
run_lint: ${{ steps.check_changes.outputs.run_lint }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check Changes
id: check_changes
run: |
git fetch origin ${{ github.base_ref }}
changed_files=$(git diff --name-only origin/${{ github.base_ref }} HEAD)
if echo "$changed_files" | grep -qE "^(cookbook|data_processor|ernie|erniekit|examples|requirements|tests|tools)/"; then
echo "run_lint=true" >> $GITHUB_OUTPUT
else
echo "run_lint=false" >> $GITHUB_OUTPUT
fi

Lint:
needs: Check-Changes
if: needs.Check-Changes.outputs.run_lint == 'true'
name: Lint
runs-on: [self-hosted, ernie-cpu]
permissions:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ demo_data/index-cache
log
docs/site/
uv.lock
.DS_Store
2 changes: 1 addition & 1 deletion docs/source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Welcome to the ERNIE documentation.
- [Chat Arguments](chat_args.md)
- [Export Arguments](export_args.md)
- [FP8 Quantization-Aware Training (QAT)](fp8_qat.md)
- [WINT8 Mixed Precision LoRA](wint8mix_lora.md)
- [WINT8 Mixed Precision LoRA](wint8mix_lora.md)
Loading