Skip to content

Commit 5fea663

Browse files
committed
Fix model unittest CI
1 parent 64bb588 commit 5fea663

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

.github/workflows/model-unittest-gpu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ defaults:
3434
jobs:
3535
model-unittest-gpu-ci:
3636
name: model-unittest-gpu-ci
37-
runs-on: ${{ inputs.runner || 'ernie-8gpu-1' }}
37+
runs-on: ${{ inputs.runner || 'ernie-8gpu' }}
3838
steps:
3939
- name: Determine Image Name
4040
env:
@@ -72,6 +72,8 @@ jobs:
7272
-e python_version \
7373
-e HF_PROXY_PATH=$work_dir/../../../proxy_huggingface \
7474
-e AISTUDIO_PROXY_PATH=$work_dir/../../../proxy_aistudio \
75+
-e "HF_DATASETS_CACHE=$work_dir/../../../paddlenlp/huggingface/datasets" \
76+
-e "TRANSFORMERS_CACHE=$work_dir/../../../paddlenlp/huggingface" \
7577
-w /workspace --runtime=nvidia --privileged $IMAGE_NAME
7678
7779
- name: Download Code

.github/workflows/unittest-gpu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ jobs:
7373
-e python_version \
7474
-e HF_PROXY_PATH=$work_dir/../../../proxy_huggingface \
7575
-e AISTUDIO_PROXY_PATH=$work_dir/../../../proxy_aistudio \
76+
-e "HF_DATASETS_CACHE=$work_dir/../../../paddlenlp/huggingface/datasets" \
77+
-e "TRANSFORMERS_CACHE=$work_dir/../../../paddlenlp/huggingface" \
7678
-w /workspace --runtime=nvidia --privileged $IMAGE_NAME
7779
7880
- name: Download Code

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ skip = ['paddleformers/transformers/__init__.py']
66
[tool.black]
77
line-length = 119
88
target_version = ['py35', 'py36', 'py37', 'py38', 'py39', 'py310']
9-
exclude = ['.flake8']
109

1110
[tool.pytest.ini_options]
1211
minversion = "6.0"

scripts/regression/test_dpo.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,7 @@ def test_dpo_lora(self):
177177
"--output_path",
178178
lora_merge_output_dir,
179179
]
180-
lora_merge_p = subprocess.run(
181-
lora_merge_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
182-
)
180+
lora_merge_p = subprocess.run(lora_merge_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
183181
self.dpotrain_tester.assert_result(lora_merge_p.returncode, lora_merge_p.stdout)
184182

185183
# test lora_merge_model generate

scripts/regression/test_sft.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ def test_sft_lora(self):
201201
"--output_path",
202202
lora_merge_output_dir,
203203
]
204-
lora_merge_p = subprocess.run(
205-
lora_merge_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
206-
)
204+
lora_merge_p = subprocess.run(lora_merge_cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
207205
self.sfttrain_tester.assert_result(lora_merge_p.returncode, lora_merge_p.stdout)
208206

209207
# test lora_merge_model generate

0 commit comments

Comments
 (0)