Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CML runner RUNNER_PATH parameter with cache #170

Closed
DavidGOrtega opened this issue Jul 21, 2020 · 1 comment
Closed

CML runner RUNNER_PATH parameter with cache #170

DavidGOrtega opened this issue Jul 21, 2020 · 1 comment
Assignees

Comments

@DavidGOrtega
Copy link
Contributor

User should be able to specify the work dir and could be very useful to be able also the pick it in a "dirty" state.
This is indeed needed if DVC cache can not help in #161

@DavidGOrtega DavidGOrtega self-assigned this Jul 21, 2020
@DavidGOrtega DavidGOrtega changed the title CML runner RUNNER_WORKDIR parameter CML runner RUNNER_PATH parameter Jul 21, 2020
@DavidGOrtega DavidGOrtega changed the title CML runner RUNNER_PATH parameter CML runner RUNNER_PATH parameter with cache Jul 23, 2020
@DavidGOrtega
Copy link
Contributor Author

We can't setup an easy cache mechanism on GH. However GL and GH allows you to cache things that works for #161 purposes allowing you to cache files or folders using even wildcards

jobs:
  train:
    # needs: deploy
    runs-on: [self-hosted,gpu]

    steps:
      - uses: actions/checkout@v2

      - name: Cache multiple paths
        uses: actions/cache@v2
        with:
          path: |
            report.md
          key: what

      - name: cml_run
        shell: bash
        env:
          repo_token: ${{ secrets.GITHUB_TOKEN }} 
        run: |
          echo 'Hi from CML' >> report.md
          cml-send-comment report.md
          echo "Trained!"
stages:
  - ml

train:
  stage: ml
  tags:
    - gpu

  cache:
    paths:
    - report.md
    
  script:
    - echo 'Hi from CML!' >> report.md
    - cml-send-comment report.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant