mlcommons / ck

Collective Mind (CM) is a small, modular, cross-platform and decentralized workflow automation framework with a human-friendly interface and reusable automation recipes to make it easier to build, run, benchmark and optimize AI, ML and other applications and systems across diverse and continuously changing models, data, software and hardware

Home Page:https://access.cKnowledge.org/challenges

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add universal check of env vars in cmind.utils

gfursin opened this issue · comments

We have lots of following code in CM scripts:

    if str(env.get('CM_DOCKER_PUSH_IMAGE', '')).lower() in ['true', 'yes', 'on']:

I suggest to provide a cmind.utils.is_env_true and cmind.utils.is_env_false` to unify it ...
We will then need to add an extra check for min CM versions in such updated scripts: mlcommons/cm4mlops#15