🐛 Fix model kwargs handling in pipeline function #3578
Workflow file for this run
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
name: ONNX Runtime / Test GPU | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 1 */3 * * # at 1am every 3 days | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
# uncomment to enable on PR merge on main branch: | |
#push: | |
# branches: | |
# - main | |
jobs: | |
do-the-job: | |
if: ${{ (github.event_name == 'workflow_dispatch') || (github.event_name == 'schedule') || contains( github.event.pull_request.labels.*.name, 'gpu-test') }} | |
name: Start self-hosted EC2 runner | |
runs-on: | |
group: aws-g6-4xlarge-plus | |
env: | |
AWS_REGION: us-east-1 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build image | |
run: | | |
docker build -f tests/onnxruntime/docker/Dockerfile_onnxruntime_gpu -t onnxruntime-gpu . | |
- name: Test with unittest within docker container | |
run: | | |
docker run --rm --gpus all -v /mnt/cache/.cache/huggingface:/root/.cache/huggingface --workdir=/workspace/optimum/tests onnxruntime-gpu:latest |