Skip to content

dvc-cml container working with Gitlab and Github - #12

Merged
dmpetrov merged 4 commits into
masterfrom
dvc-cml-container
Mar 20, 2020
Merged

dmpetrov merged 4 commits into
masterfrom
dvc-cml-container

Conversation

@DavidGOrtega

Copy link
Copy Markdown
Contributor

No description provided.

@DavidGOrtega
DavidGOrtega requested a review from dmpetrov March 19, 2020 18:38
Comment thread .github/workflows/deploy.yaml Outdated
- name: Publish to dockerhub
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: davidgortega/dvc-cml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use iterative? where does this name go?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! This is actually an error, in the original branch I had it right but I had to redo it and I overlooked it.

Comment thread README.md
[your own runners](https://help.github.com/en/actions/hosting-your-own-runners)
with special capabilities like GPUs.
tool for ML experimentation. This repo offers the possibility of using DVC to
establish your ML pipeline to be run by Github Actions runners or Gitlab

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Github Action runners

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Github product is named Github Action, maybe has to be double quoted?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was about typo Actions - Action .. in english you don't put two plurals one after another

Comment thread README.md Outdated
or [your own Gitlab runners](https://docs.gitlab.com/runner/) with special
capabilities like GPUs...

Major beneficts of using DVC-CML in your ML projects includes:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not clear so far what CML stands for to be honest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Continuous Machine Learning, I have not chosen the name but I really like it

Comment thread README.md Outdated
all the dependencies, so you don't have to. Additionally your experiment is
always running under the same software constrains so you dont have to worry
about replicating the same enviroment again.
always running under the same constrains so you dont have to worry about

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't

do you run some editor with spell checking, by chance? )

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope this is not going to be the real README! This is going to be redone by someone else as far I understand.

Comment thread README.md Outdated
- Releases: DVC-action tags every experiment that runs with repro. Aside of that
DVC-action is just a job inside your workflow that could generate your model
releases or deployment according to your bussiness requirements.
experiments run through the DVC Report offeered as checks in Github or

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here ... please use some tools to fix simple language typos, stylistic mistakes, etc

Comment thread README.md Outdated
experiments run through the DVC Report offeered as checks in Github or
Releases in Gitlab.
- Releases: DVC-action tags every experiment that runs with repro generating the
report. Aside of that DVC-cml is just a step in your

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DVC-cml or DVC-CML - use one style

Comment thread README.md Outdated
or [your own Gitlab runners](https://docs.gitlab.com/runner/) with special
capabilities like GPUs...

Major beneficts of using DVC-CML in your ML projects includes:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we mention benefits, and non of them about simple things that are essential to CI (running tests/training independently to make sure that build is "green") and we don't mention another big one - running infra for you to train something

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about the last benefit, actually, I would expect ML users to be running their own runners using gpu, locally or cloud like AWS or Azure or any other gpu vendor.
IMHO the benefits of CI ML are Releases and Reproducibility and having everything containerised helps with that a lot since the environments are going to be consistent.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean, it still manages the workflow for you. As a data scientist I don't care if there is AWS machine or something - I just push and wait. I don't provision, dockerize, SSH, copy data, etc ... It's one of the major benefits of this whole thing unless I'm missing something cc @dmpetrov

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I see. Yep, thats a benefit. Actually shared by teaming and reproducibility.
Its very easy to have a model and results just only branching and pushing new changes, without having to setup the enviroment.
And its reproducible since all are working with the same software/hardware constrains...

Comment thread README.md Outdated

Example of a simple DVC-cml workflow in Gitlab:

> :eyes: Some needed variables like remote credentials and GITLAB_TOKEN are

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needed -> required
variables -> environment variables
are setted -> are set (or even come up with a better term)
as CI/CD ... -> as Gitlab Runners ... in Gitlab settings ... or what is the right term here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI/CD enviroment variables is the way to go in Gitlab

Comment thread README.md Outdated

dvc:
stage: dvc_action_run
image: davidgortega/dvc-cml:dev

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image name?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dvcorg/dvc-cml:latest

Comment thread README.md Outdated

This workflow will run everytime that you push code or do a Pull/Merge Request.
When triggered DVC-cml will setup the runner and DVC will run the pipelines
specified by repro_targets. Two scenarios may happen:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

repro_targets -> repro_targets

Comment thread README.md Outdated
| metrics_diff_targets | string | no | | Comma delimited array of metrics files. If not specified will use all the metric files |
| rev | string | no | origin/master | Revision to be compared with current experiment. I.E. HEAD~1. |

> :warning: In Gitlab is needed that you generate the GITLAB_TOKEN that is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is required

Comment thread README.md Outdated

> :warning: In Gitlab is needed that you generate the GITLAB_TOKEN that is
> analogous to GITHUB_TOKEN. See
> [Tensorflow Mnist in Gitlab](#tensorflow-mnist-in-gitlab) example For a

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For -> for

Comment thread README.md
- actions/setup-python

Example of a simple DVC-action workflow:
> :eyes: Note the use of the container

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explain why do I need to note this

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To not forget it in the job definition. It might be a pitfall. People adding DVC-CML inside an existing job that and the don't add the container section

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so, put that explanation in the note itself?

Comment thread action.yml Outdated
@@ -1,29 +1,6 @@
name: 'DVC-action'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is name, description different now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Its not actually doing anything and its only useful if we publish the repo as a Github Action

Comment thread docker/Dockerfile Outdated
@@ -0,0 +1,27 @@
FROM ubuntu:18.04

LABEL Iterative Inc

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor: Iterative, Inc

Comment thread src/gitlab.js Outdated
CI_PROJECT_URL,
CI_COMMIT_REF_NAME,
CI_COMMIT_SHA,
// CI_COMMIT_BEFORE_SHA,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we don't need it - remove it

@dmpetrov dmpetrov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 some comments are inline

Comment thread .github/workflows/deploy.yaml Resolved
Comment thread .github/workflows/deploy.yaml Outdated
- name: Publish to dockerhub
uses: elgohr/Publish-Docker-Github-Action@master
with:
name: davidgortega/dvc-cml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we use iterative/dvc-cml?

@DavidGOrtega DavidGOrtega Mar 20, 2020 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dvcorg/dvc-cml its the dockerhub 🙂

@dmpetrov
dmpetrov merged commit 37d8e9a into master Mar 20, 2020
@dmpetrov
dmpetrov deleted the dvc-cml-container branch March 20, 2020 19:15
Comment thread README.md
or [your own Gitlab runners](https://docs.gitlab.com/runner/) with special
capabilities like GPUs...

Major benefits of using DVC-CML in your ML projects includes:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still don't understand this list of benefits ... can you summarize them w/o this official language - like A,B,C - the way you understand them?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

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

Successfully merging this pull request may close these issues.

3 participants