Skip to content

Conversation

@ishachirimar
Copy link
Contributor

Summary:
add support for piping a json into torchx run command, like

JSON | torchx run

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or cat json_file.json.

Next steps:

  • add a json schema to improve authoring experience for this new config format
  • more robust validation
  • accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

Differential Revision: D80731827

@meta-cla meta-cla 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 Sep 2, 2025
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

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

ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 2, 2025
Summary:
Pull Request resolved: meta-pytorch#1107

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`.

Next steps:
- add a json schema to improve authoring experience for this new config format
- more robust validation
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

Differential Revision: D80731827
ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 2, 2025
Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 2, 2025
Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 2, 2025
Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 3, 2025
Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 3, 2025
Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

ishachirimar added a commit to ishachirimar/torchx that referenced this pull request Sep 3, 2025
Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

Summary:

add support for piping a json into torchx run command, like

`JSON | torchx run`

where the JSON contains the args for torchx run (while maintaining the functionality of the regular CLI)

This can be done with either a JSON directly in the terminal or `cat json_file.json`. 

Next steps:
- add a json schema to improve authoring experience for this new config format 
- more robust validation 
- accept varargs for component args/ test this case

Reviewed By: daniel-ohayon

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

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

@facebook-github-bot facebook-github-bot merged commit 448e08e into meta-pytorch:main Sep 3, 2025
22 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