mlcube icon indicating copy to clipboard operation
mlcube copied to clipboard

Add Option to Adjust Hyperparams via Env Vars

Open Maxusmusti opened this issue 2 years ago • 1 comments

It would be nice for use in Kubernetes, OpenShift, and other cloud-based environments if the user had the option of setting hyperparameters via env vars rather than having to create and mount a ConfigMap for the yaml file, alter the image, or create a custom entrypoint script.

Maxusmusti avatar Aug 29 '22 22:08 Maxusmusti

Here is an example of how we can configure the execution, by specifying the hyperparameters as part of the Kubernetes Job/Pod environment specs:

apiVersion: batch/v1
kind: Job
metadata:
  name: {job_name}
spec:
    spec:
      containers:
      - name: cnt
        env:
        - name: SSD_THRESHOLD
          value: "{settings_threshold}"
        - name: SSD_EPOCH
          value: "{settings_epoch}"

kpouget avatar Aug 30 '22 06:08 kpouget