Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

workloads.yaml 1.7 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
  1. name: workloads
  2. on:
  3. workflow_dispatch: # manual
  4. pull_request:
  5. branches:
  6. - main
  7. permissions: write-all
  8. jobs:
  9. workloads:
  10. runs-on: ubuntu-22.04
  11. steps:
  12. # Configure AWS credentials
  13. - name: Configure AWS credentials
  14. uses: aws-actions/configure-aws-credentials@v2
  15. with:
  16. role-to-assume: arn:aws:iam::593241322649:role/github-actions-madewithml
  17. role-session-name: s3access
  18. aws-region: us-west-2
  19. # Set up dependencies
  20. - uses: actions/checkout@v3
  21. - uses: actions/setup-python@v4
  22. with:
  23. python-version: '3.10.11'
  24. cache: 'pip'
  25. - run: python3 -m pip install anyscale==0.5.131 typer==0.9.0
  26. # Run workloads
  27. - name: Workloads
  28. run: |
  29. export ANYSCALE_HOST=${{ secrets.ANYSCALE_HOST }}
  30. export ANYSCALE_CLI_TOKEN=${{ secrets.ANYSCALE_CLI_TOKEN }}
  31. anyscale jobs submit deploy/jobs/workloads.yaml --wait
  32. # Read results from S3
  33. - name: Read results from S3
  34. run: |
  35. mkdir results
  36. aws s3 cp s3://madewithml/${{ github.actor }}/results/ results/ --recursive
  37. python .github/workflows/json_to_md.py results/training_results.json results/training_results.md
  38. python .github/workflows/json_to_md.py results/evaluation_results.json results/evaluation_results.md
  39. # Comment results to PR
  40. - name: Comment training results on PR
  41. uses: thollander/actions-comment-pull-request@v2
  42. with:
  43. filePath: results/training_results.md
  44. - name: Comment evaluation results on PR
  45. uses: thollander/actions-comment-pull-request@v2
  46. with:
  47. filePath: results/evaluation_results.md
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...