-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
913 changed files
with
34,656 additions
and
7,553 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Self-hosted runner (benchmark) | ||
|
||
on: | ||
schedule: | ||
- cron: "17 2 * * *" | ||
workflow_call: | ||
|
||
env: | ||
HF_HOME: /mnt/cache | ||
TF_FORCE_GPU_ALLOW_GROWTH: true | ||
|
||
|
||
jobs: | ||
benchmark: | ||
name: Benchmark | ||
runs-on: [single-gpu, nvidia-gpu, a10, ci] | ||
container: | ||
image: huggingface/transformers-all-latest-gpu | ||
options: --gpus all --privileged --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/ | ||
steps: | ||
- name: Update clone | ||
working-directory: /transformers | ||
run: | | ||
git fetch && git checkout ${{ github.sha }} | ||
- name: Reinstall transformers in edit mode (remove the one installed during docker image build) | ||
working-directory: /transformers | ||
run: python3 -m pip uninstall -y transformers && python3 -m pip install -e . | ||
|
||
- name: Benchmark (daily) | ||
if: github.event_name == 'schedule' | ||
working-directory: /transformers | ||
run: | | ||
python3 -m pip install optimum-benchmark>=0.2.0 | ||
HF_TOKEN=${{ secrets.TRANSFORMERS_BENCHMARK_TOKEN }} python3 benchmark/benchmark.py --repo_id hf-internal-testing/benchmark_results --path_in_repo $(date +'%Y-%m-%d') --config-dir benchmark/config --config-name generation --commit=${{ github.sha }} backend.model=google/gemma-2b backend.cache_implementation=null,static backend.torch_compile=false,true --multirun | ||
- name: Benchmark (merged to main event) | ||
if: github.event_name == 'push' && github.ref_name == 'main' | ||
working-directory: /transformers | ||
run: | | ||
python3 -m pip install optimum-benchmark>=0.2.0 | ||
HF_TOKEN=${{ secrets.TRANSFORMERS_BENCHMARK_TOKEN }} python3 benchmark/benchmark.py --repo_id hf-internal-testing/benchmark_results_merge_event --path_in_repo $(date +'%Y-%m-%d') --config-dir benchmark/config --config-name generation --commit=${{ github.sha }} backend.model=google/gemma-2b backend.cache_implementation=null,static backend.torch_compile=false,true --multirun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Self-hosted runner (nightly-ci) | ||
|
||
|
||
on: | ||
repository_dispatch: | ||
schedule: | ||
- cron: "17 2 * * *" | ||
push: | ||
branches: | ||
- run_nightly_ci* | ||
|
||
jobs: | ||
build_nightly_ci_images: | ||
name: Build Nightly CI Docker Images | ||
if: (github.event_name == 'schedule') || ((github.event_name == 'push') && startsWith(github.ref_name, 'run_nightly_ci')) | ||
uses: ./.github/workflows/build-nightly-ci-docker-images.yml | ||
secrets: inherit | ||
|
||
model-ci: | ||
name: Model CI | ||
needs: [build_nightly_ci_images] | ||
uses: ./.github/workflows/self-scheduled.yml | ||
with: | ||
job: run_models_gpu | ||
slack_report_channel: "#transformers-ci-past-future" | ||
runner: ci | ||
docker: huggingface/transformers-all-latest-torch-nightly-gpu | ||
ci_event: Nightly CI | ||
secrets: inherit | ||
|
||
deepspeed-ci: | ||
name: DeepSpeed CI | ||
needs: [build_nightly_ci_images] | ||
uses: ./.github/workflows/self-scheduled.yml | ||
with: | ||
job: run_torch_cuda_extensions_gpu | ||
slack_report_channel: "#transformers-ci-past-future" | ||
runner: ci | ||
# test deepspeed nightly build with the latest release torch | ||
docker: huggingface/transformers-pytorch-deepspeed-latest-gpu | ||
ci_event: Nightly CI | ||
working-directory-prefix: /workspace | ||
secrets: inherit |
Oops, something went wrong.