Automatically create/update tiny models (#22275)

* Automatically create or update tiny models

* Skip failed tests

* update workflow file

* use revision

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
Yih-Dar
2023-03-23 19:14:17 +01:00
committed by GitHub
parent a92e0ad2e2
commit e8cc02555e
12 changed files with 5025 additions and 1671 deletions

View File

@@ -0,0 +1,47 @@
name: Self-hosted runner (push)
on:
push:
branches:
- update_tiny_models*
repository_dispatch:
schedule:
- cron: "0 2 * * *"
env:
TOKEN: ${{ secrets.SYLVAIN_HF_TOKEN }}
jobs:
update_tiny_models:
name: Update tiny models
runs-on: ubuntu-latest
steps:
- name: Checkout transformers
uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Install
run: |
python -m pip install -U .[dev]
python -m pip install -U natten
- name: Update tiny models
run: |
python utils/update_tiny_models.py
- name: Full report
run: cat tiny_models/reports/tiny_model_creation_report.json
- name: Failure report
run: cat tiny_models/reports/simple_failed_report.txt
- name: Summary report
run: cat tiny_models/reports/tiny_model_summary.json
- name: Test suite reports artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: tiny_model_creation_reports
path: tiny_models/reports