Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Option to Adjust Hyperparams via Env Vars #270

Open
Maxusmusti opened this issue Aug 29, 2022 · 1 comment
Open

Add Option to Adjust Hyperparams via Env Vars #270

Maxusmusti opened this issue Aug 29, 2022 · 1 comment

Comments

@Maxusmusti
Copy link

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.

@kpouget
Copy link

kpouget commented Aug 30, 2022

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}"

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

No branches or pull requests

2 participants