Skip to content

Conversation

@tianyu-l
Copy link
Contributor

@tianyu-l tianyu-l commented Oct 14, 2025

In the past, the terms "args" and "config" have been used in a mix.

To make it unambiguous, in torchtitan we use

  • "args" as in ModelArgs to refer to parameters used to define a model in model code
  • "config" as in JobConfig to refer to configurable training job commands used in training script

This also PR also moves custom_args_module (which should be custom_config_module according to the naming rule above) from Experimental to Job, as it has been extensively used by various models in torchtitan, especially those in the experiments folder.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 14, 2025
@tianyu-l tianyu-l force-pushed the job_config branch 2 times, most recently from ae38610 to 60295cb Compare October 14, 2025 07:56
Copy link
Contributor

@wwwjn wwwjn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Please fix minor issues

Copy link
Contributor

@fegin fegin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the approval permission to the forge folder. Need @wwwjn for the review of the forge folder.

@tianyu-l tianyu-l merged commit 7c10480 into main Oct 14, 2025
6 of 12 checks passed
@tianyu-l tianyu-l deleted the job_config branch October 14, 2025 19:52
githubsgi pushed a commit to githubsgi/torchtitan that referenced this pull request Oct 15, 2025
…pytorch#1871)

In the past, the terms "args" and "config" have been used in a mix.

To make it unambiguous, in torchtitan we use
- "args" as in `ModelArgs` to refer to parameters used to define a model
in model code
- "config" as in `JobConfig` to refer to configurable training job
commands used in training script

This also PR also moves `custom_args_module` (which should be
`custom_config_module` according to the naming rule above) from
`Experimental` to `Job`, as it has been extensively used by various
models in torchtitan, especially those in the `experiments` folder.
githubsgi pushed a commit to githubsgi/torchtitan that referenced this pull request Oct 16, 2025
…pytorch#1871)

In the past, the terms "args" and "config" have been used in a mix.

To make it unambiguous, in torchtitan we use
- "args" as in `ModelArgs` to refer to parameters used to define a model
in model code
- "config" as in `JobConfig` to refer to configurable training job
commands used in training script

This also PR also moves `custom_args_module` (which should be
`custom_config_module` according to the naming rule above) from
`Experimental` to `Job`, as it has been extensively used by various
models in torchtitan, especially those in the `experiments` folder.
tianyu-l pushed a commit that referenced this pull request Oct 16, 2025
githubsgi pushed a commit to githubsgi/torchtitan that referenced this pull request Oct 29, 2025
…pytorch#1871)

In the past, the terms "args" and "config" have been used in a mix.

To make it unambiguous, in torchtitan we use
- "args" as in `ModelArgs` to refer to parameters used to define a model
in model code
- "config" as in `JobConfig` to refer to configurable training job
commands used in training script

This also PR also moves `custom_args_module` (which should be
`custom_config_module` according to the naming rule above) from
`Experimental` to `Job`, as it has been extensively used by various
models in torchtitan, especially those in the `experiments` folder.
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 Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants