Skip to content

Commit 16f4454

Browse files
committed
ci: Multi-tenancy for tests and garbage collection
Signed-off-by: Oliver Koenig <[email protected]>
1 parent 1684d6f commit 16f4454

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/cicd-main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,10 +270,15 @@ jobs:
270270
- name: Checkout repository
271271
uses: actions/checkout@v4
272272
- run: |
273+
mkdir -p /home/TestData/nlp/megatron_gpt/starcoder-ci-hf/${{ github.run_id }};
273274
python scripts/checkpoint_converters/convert_starcoder_hf_to_nemo.py \
274275
--input_name_or_path /home/TestData/nlp/megatron_gpt/starcoder-ci-hf \
275-
--output_path /home/TestData/nlp/megatron_gpt/starcoder-ci-hf
276-
rm -f /home/TestData/nlp/megatron_gpt/starcoder-ci-hf/megatron_starcoder_tp1_pp1.nemo
276+
--output_path /home/TestData/nlp/megatron_gpt/starcoder-ci-hf/${{ github.run_id }}
277+
- name: Cleanup
278+
if: "always()"
279+
run: |
280+
rm -rf /home/TestData/nlp/megatron_gpt/starcoder-ci-hf/megatron_starcoder_tp1_pp1.nemo;
281+
rm -rf /home/TestData/nlp/megatron_gpt/starcoder-ci-hf/${{ github.run_id }}/
277282
- uses: "NVIDIA/NeMo/.github/actions/cancel-workflow@main"
278283
if: "failure()"
279284

0 commit comments

Comments
 (0)