-
Notifications
You must be signed in to change notification settings - Fork 9
Legacy engine migration
Legacy engine to runtime migration helps to migrate the ML workloads from legacy engines (to be deprecated) to ml runtimes. Below mentioned are the details for smooth migration
-
Create
<home-directory>/.cmlutils/import-config.inifile to populate the engine to runtime mapping. Please refer this
-
Run the command
-
cmlutil helpers populate_engine_runtimes_mappingto populate the mapping - Above command creates
<home-directory>/.cmlutils/legacy_engine_runtime_constants.json. Please make sure the tool is having necessary write permissions to create/update the file in the<home-directory>/.cmlutils/folder.
-
-
Export
- Export command automatically picks up the available
<home-directory>/.cmlutils/legacy_engine_runtime_constants.jsonand prepares the metadata accordingly.
- Export command automatically picks up the available
-
Import
- Now running the import command will make sure ML Workloads with legacy engines are automatically migrated to runtimes.
-
{ "python3": "docker.repository.cloudera.com/cloudera/cdsw/ml-runtime-workbench-python3.9-standard:2022.11.2-b2", "python2": "docker.repository.cloudera.com/cloudera/cdsw/ml-runtime-workbench-python3.9-standard:2022.11.2-b2", "r": "docker.repository.cloudera.com/cloudera/cdsw/ml-runtime-workbench-r4.1-standard:2022.11.2-b2", "scala": "docker.repository.cloudera.com/cloudera/cdsw/ml-runtime-workbench-scala2.11-standard:2022.11.2-b2", "default": "docker.repository.cloudera.com/cloudera/cdsw/ml-runtime-workbench-python3.9-standard:2023.05.2-b7" } -
The mapping in the
<home-directory>/.cmlutils/legacy_engine_runtime_constants.jsonfile can be edited to customise the runtimes mapping as required.
Projects using the legacy engine can be migrated to engine based projects by following below process
- Create an empty
<home-directory>/.cmlutils/legacy_engine_runtime_constants.jsoni.e contents of the json should be{} - Run the export command
- Run the import command
Legacy Engines are deprecated since June 2021 and are removed in recent releases. Starting with version 2.0.38, on new workspaces Legacy Engines are disabled by default and no Legacy Engine image is registered in the workspace. Cloudera recommends using ML Runtimes for all new projects, and urges customers to migrate existing Engine-based projects to ML Runtimes. Refer this
Python 3.6,3.7 are EOS by the community and Cloudera is not maintaining the kernels beyond that point.
-
If you are still willing to use these runtimes, you can build a self maintained custom PBJ Runtime. https://docs.cloudera.com/machine-learning/1.5.1/runtimes/topics/ml-pbj-workbench-dockerfile.html
-
Other option is to use the ActiveState Platform to build a custom ML Runtime that you can register directly in CML. https://blog.cloudera.com/how-to-ensure-supply-chain-security-for-ai-applications/