product

Polyaxon v1.9: Converting params to cli args

With Polyaxon v1.9, users can easily turn their params to a CLI arguments using a single flag.

Converting all parameters to args

The context has now a new variable params.as_args that should convert all params to a CLI arguments, for instance the following example:

version: 1.1
kind: component
inputs:
  - name: message1
    type: str
  - name: message2
    type: str
  - name: message3
    type: str
run:
  kind: job
  container:
    image: IMAGE
    command: [COMMAND]
    args: ['--message1={{ message1 }}', '--message2={{ message2 }}', '--message3={{ message3 }}']

Can be written using the params.as_args:

version: 1.1
kind: component
inputs:
  - name: message1
    type: str
  - name: message2
    type: str
  - name: message3
    type: str
run:
  kind: job
  container:
    image: IMAGE
    command: [COMMAND]
    args: '{{ params.as_args }}'

Learn More about Polyaxon

This blog post just goes over a couple of features that we shipped since our last product update, several other features and fixes are worth checking. To learn more about all the features, fixes, and enhancements, please visit the release notes and the short term roadmap.

Polyaxon continues to grow quickly and keeps improving and providing the simplest machine learning abstraction. We hope that these updates will improve your workflows and increase your productivity, and again, thank you for your continued feedback and support.

Subscribe to Polyaxon Blog

Get the latest posts delivered right to your inbox