Skip to content

[refactor] graduate custom_config_module and unify args/config naming - #1871

Merged
tianyu-l merged 1 commit into
mainfrom
job_config
Oct 14, 2025
Merged

tianyu-l merged 1 commit into
mainfrom
job_config

Conversation

@tianyu-l

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

Copy link
Copy Markdown
Contributor

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

@wwwjn wwwjn left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread docs/extension.md Resolved

@fegin fegin left a comment •

Copy link
Copy Markdown
Contributor

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.

Comment thread torchtitan/config/manager.py Resolved
Comment thread torchtitan/config/job_config.py Resolved
Comment thread .github/CODEOWNERS Resolved
@tianyu-l
tianyu-l merged commit 7c10480 into main Oct 14, 2025
@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.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
…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.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
…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.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
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.

3 participants