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

Introduce parameter for config to materialize_appdef #848

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

ishachirimar
Copy link
Contributor

@ishachirimar ishachirimar commented Mar 12, 2024

Add optional param for config file to materialize_appdef.

If there is a config file, then it will be merged with the defaults/command line component arg values.

Differential Revision: D54777218

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 12, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54777218

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54777218

Summary:

Move away from using `component_defaults` to pass config values to `materialize_appdef`. Instead, create a new parameter for the config. This is so the api can also use configs, not just cli 

- assume yaml config is a dict representation (1:1 mapping) of component arg names to component arg values
- can take primitives or nested dicts for the arg type
- send this dict to `materialize_appdef` as an optional param, merge it with the namespace created by the argparser
- ensure required/ args with defaults still work

Reviewed By: yikaiMeta, Sanjay-Ganeshan

Differential Revision: D54777218
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D54777218

@facebook-github-bot facebook-github-bot merged commit edd1be0 into pytorch:main Mar 18, 2024
19 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants