Skip to content

mlrepa/dvc-7-monorepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monorepo with Modes dependencies

Demo Project Structure


    .
    ├── data
    │   ├── processed               <- processed data
    │   └── raw                     <- original unmodified/raw data
    ├── models                      <- folder for ML models
    ├── notebooks                   <- Jupyter Notebooks (ingored by Git)
    ├── reports                     <- folder for experiment reports
    ├── model-a                     <- Model A sub-directory (DVC repo)
    ├── model-b                     <- Model B sub-directory (DVC repo)
    ├── model-c                     <- Model C sub-directory (DVC repo)
    └── README.md

About

  • models A and B outputs are used by Model C as inputs

Create a Virtual environment

Create virtual environment named .venv (you may use other name)

python3 -m venv .venv
echo "export PYTHONPATH=$PWD" >> .venv/bin/activate
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt

Setup projects

Init main DVC project (in root dir)

    # Navigate to `model_a` dir: cd model_a
    dvc init 
    git add .dvc/config .dvc/.gitignore && git commit -m "Initialize DVC project"

Setup Model A project

    # Navigate to `model_a` dir: cd model_a
    dvc init --subdir
    git add .dvc/config .dvc/.gitignore && git commit -m "Initialize DVC project A"

Setup Model B project

    # Navigate to `model_b` dir: cd model_b
    dvc init --subdir
    git add .dvc/config .dvc/.gitignore && git commit -m "Initialize DVC project B"

Setup Model C project

    # Navigate to `model_c` dir: cd model_c
    dvc init --subdir
    git add .dvc/config .dvc/.gitignore && git commit -m "Initialize DVC project C"

Experimenting with Monorepo

    dvc exp run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages