Skip to content

Commit c11e751

Browse files
mattheliujzhang533
andauthored
[Docs] Add Unsloth fine-tuning tutorial for ERNIE-4.5-VL-28B-A3B (EN/ZH) (#1411)
* docs: add Unsloth fine-tuning guide for ERNIE-4.5-VL-28B-A3B (EN & ZH) * skip test ci if only doc changed --------- Signed-off-by: Zhang Jun <jzhang533@gmail.com> Co-authored-by: Zhang Jun <jzhang533@gmail.com>
1 parent c36a9ef commit c11e751

6 files changed

Lines changed: 1062 additions & 1 deletion

File tree

.github/workflows/gpu_ci_test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,28 @@ concurrency:
1212
cancel-in-progress: true
1313

1414
jobs:
15+
Check-Changes:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
run_tests: ${{ steps.check_changes.outputs.run_tests }}
19+
steps:
20+
- uses: actions/checkout@v3
21+
with:
22+
fetch-depth: 0
23+
- name: Check Changes
24+
id: check_changes
25+
run: |
26+
git fetch origin ${{ github.base_ref }}
27+
changed_files=$(git diff --name-only origin/${{ github.base_ref }} HEAD)
28+
if echo "$changed_files" | grep -qE "^(data_processor|ernie|erniekit|examples|requirements|tests)/"; then
29+
echo "run_tests=true" >> $GITHUB_OUTPUT
30+
else
31+
echo "run_tests=false" >> $GITHUB_OUTPUT
32+
fi
33+
1534
Test:
35+
needs: Check-Changes
36+
if: needs.Check-Changes.outputs.run_tests == 'true'
1637
name: Test
1738
runs-on: [self-hosted, ernie-8gpu]
1839
steps:

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,28 @@ env:
1111
BRANCH: ${{ github.event.pull_request.base.ref }}
1212
TASK: ERNIE-Codestyle-${{ github.event.pull_request.number }}
1313
jobs:
14+
Check-Changes:
15+
runs-on: ubuntu-latest
16+
outputs:
17+
run_lint: ${{ steps.check_changes.outputs.run_lint }}
18+
steps:
19+
- uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
- name: Check Changes
23+
id: check_changes
24+
run: |
25+
git fetch origin ${{ github.base_ref }}
26+
changed_files=$(git diff --name-only origin/${{ github.base_ref }} HEAD)
27+
if echo "$changed_files" | grep -qE "^(cookbook|data_processor|ernie|erniekit|examples|requirements|tests|tools)/"; then
28+
echo "run_lint=true" >> $GITHUB_OUTPUT
29+
else
30+
echo "run_lint=false" >> $GITHUB_OUTPUT
31+
fi
32+
1433
Lint:
34+
needs: Check-Changes
35+
if: needs.Check-Changes.outputs.run_lint == 'true'
1536
name: Lint
1637
runs-on: [self-hosted, ernie-cpu-01]
1738
permissions:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ demo_data/index-cache
99
log
1010
docs/site/
1111
uv.lock
12+
.DS_Store

docs/source/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ Welcome to the ERNIE documentation.
1212
- [Chat Arguments](chat_args.md)
1313
- [Export Arguments](export_args.md)
1414
- [FP8 Quantization-Aware Training (QAT)](fp8_qat.md)
15-
- [WINT8 Mixed Precision LoRA](wint8mix_lora.md)
15+
- [WINT8 Mixed Precision LoRA](wint8mix_lora.md)

0 commit comments

Comments
 (0)