Skip to content

Fix typos - #1583

Closed
BioGeek wants to merge 1 commit into
pytorch:mainfrom
BioGeek:typo
Closed

BioGeek wants to merge 1 commit into
pytorch:mainfrom
BioGeek:typo

Conversation

@BioGeek

@BioGeek BioGeek commented Aug 16, 2025

Copy link
Copy Markdown
Contributor

Fix a few typos found by running codespell on the repository.

Command used was:

uvx codespell . --skip="*.json" -L "assertin,nd,datas,inpt"

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 16, 2025

@tianyu-l tianyu-l 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.

Appreciated a lot!

Not sure about CODE_OF_CONDUCT change, maybe we can revert it to land it fast.

Comment thread CODE_OF_CONDUCT.md
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
level of experience, education, socioeconomic status, nationality, personal

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.

For this one I'm not sure. Did we copy from somewhere standard and does it has to be word-to-word identical? @wconstab

While we are figuring this out, if you want to land this quickly, reverting this change is recommended.

@wwwjn wwwjn mentioned this pull request Aug 21, 2025
@wwwjn

wwwjn commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

Close because we create #1611 on top of this PR to unblock the new release

@wwwjn wwwjn closed this Aug 21, 2025
wwwjn added a commit that referenced this pull request Aug 21, 2025
We want to include this PR in our next release ASAP. Created another
branch and revert CODE_OF_CONDUCT.md from @BioGeek 's #1583 . Much
appreciated for @BioGeek's contribution!

---------

Co-authored-by: Jeroen Van Goey <[email protected]>
tianyu-l pushed a commit that referenced this pull request Oct 16, 2025
Follow-up to PRs #1583 /
#1611

Fixes a few typos found by running [`codespell`
](https://github.com/codespell-project/codespell)on the repository.

Also see related PR #1899
which adds a `codespell` pre-commit hook.
tianyu-l pushed a commit that referenced this pull request Oct 16, 2025
This PR adds a
[`codespell`](https://github.com/codespell-project/codespell) pre-commit
hook (see PRs #1583 /
#1611 /
#1898).

With this PR, if you run `pre-commit run --all-files` on the current
state of the repo, you will see:

```
trim trailing whitespace.................................................Passed
check python ast.........................................................Passed
check for merge conflicts................................................Passed
don't commit to branch...................................................Passed
check for added large files..............................................Passed
fix end of files.........................................................Passed
Insert license in comments...............................................Passed
flake8...................................................................Passed
Format files with µfmt...................................................Passed
pydoclint................................................................Passed
codespell................................................................Failed
- hook id: codespell
- exit code: 65

torchtitan/models/utils.py:51: caculate ==> calculate
torchtitan/models/utils.py:71: Calulate ==> Calculate
torchtitan/models/utils.py:71: dimesion ==> dimension
torchtitan/models/utils.py:71: demension ==> dimension
torchtitan/models/utils.py:76: divded ==> divided
torchtitan/experiments/vlm/job_config.py:28: avaliable ==> available
torchtitan/experiments/vlm/README.md:37: patchs ==> patches, paths
torchtitan/experiments/vlm/README.md:40: indicies ==> indices
torchtitan/components/quantization/__init__.py:28: re-usable ==> reusable
torchtitan/models/qwen3/model/state_dict_adapter.py:144: compatibile ==> compatible
torchtitan/models/attention.py:185: argumens ==> arguments
torchtitan/components/metrics.py:322: emtpy ==> empty
docs/torchft.md:60: sychronize ==> synchronize
torchtitan/experiments/simple_fsdp/README.md:56: addtional ==> additional
```
After PR #1898 is merged,
those warnings will disappear.

Configuration for codespell is in `pyproject.toml`:

```
skip = ["*.json"] # <- json files are skipped due to too many false positives
ignore-words-list = ["assertin", "datas" ,"indx", "inpt", "nd", "socio-economic"] # <- words that are ignored because they are used as variables etc.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
We want to include this PR in our next release ASAP. Created another
branch and revert CODE_OF_CONDUCT.md from @BioGeek 's pytorch#1583 . Much
appreciated for @BioGeek's contribution!

---------

Co-authored-by: Jeroen Van Goey <[email protected]>
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
Follow-up to PRs pytorch#1583 /
pytorch#1611

Fixes a few typos found by running [`codespell`
](https://github.com/codespell-project/codespell)on the repository.

Also see related PR pytorch#1899
which adds a `codespell` pre-commit hook.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 13, 2026
This PR adds a
[`codespell`](https://github.com/codespell-project/codespell) pre-commit
hook (see PRs pytorch#1583 /
pytorch#1611 /
pytorch#1898).

With this PR, if you run `pre-commit run --all-files` on the current
state of the repo, you will see:

```
trim trailing whitespace.................................................Passed
check python ast.........................................................Passed
check for merge conflicts................................................Passed
don't commit to branch...................................................Passed
check for added large files..............................................Passed
fix end of files.........................................................Passed
Insert license in comments...............................................Passed
flake8...................................................................Passed
Format files with µfmt...................................................Passed
pydoclint................................................................Passed
codespell................................................................Failed
- hook id: codespell
- exit code: 65

torchtitan/models/utils.py:51: caculate ==> calculate
torchtitan/models/utils.py:71: Calulate ==> Calculate
torchtitan/models/utils.py:71: dimesion ==> dimension
torchtitan/models/utils.py:71: demension ==> dimension
torchtitan/models/utils.py:76: divded ==> divided
torchtitan/experiments/vlm/job_config.py:28: avaliable ==> available
torchtitan/experiments/vlm/README.md:37: patchs ==> patches, paths
torchtitan/experiments/vlm/README.md:40: indicies ==> indices
torchtitan/components/quantization/__init__.py:28: re-usable ==> reusable
torchtitan/models/qwen3/model/state_dict_adapter.py:144: compatibile ==> compatible
torchtitan/models/attention.py:185: argumens ==> arguments
torchtitan/components/metrics.py:322: emtpy ==> empty
docs/torchft.md:60: sychronize ==> synchronize
torchtitan/experiments/simple_fsdp/README.md:56: addtional ==> additional
```
After PR pytorch#1898 is merged,
those warnings will disappear.

Configuration for codespell is in `pyproject.toml`:

```
skip = ["*.json"] # <- json files are skipped due to too many false positives
ignore-words-list = ["assertin", "datas" ,"indx", "inpt", "nd", "socio-economic"] # <- words that are ignored because they are used as variables etc.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
We want to include this PR in our next release ASAP. Created another
branch and revert CODE_OF_CONDUCT.md from @BioGeek 's pytorch#1583 . Much
appreciated for @BioGeek's contribution!

---------

Co-authored-by: Jeroen Van Goey <[email protected]>
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
Follow-up to PRs pytorch#1583 /
pytorch#1611

Fixes a few typos found by running [`codespell`
](https://github.com/codespell-project/codespell)on the repository.

Also see related PR pytorch#1899
which adds a `codespell` pre-commit hook.
xrsrke pushed a commit to NousResearch/torchtitan that referenced this pull request Feb 25, 2026
This PR adds a
[`codespell`](https://github.com/codespell-project/codespell) pre-commit
hook (see PRs pytorch#1583 /
pytorch#1611 /
pytorch#1898).

With this PR, if you run `pre-commit run --all-files` on the current
state of the repo, you will see:

```
trim trailing whitespace.................................................Passed
check python ast.........................................................Passed
check for merge conflicts................................................Passed
don't commit to branch...................................................Passed
check for added large files..............................................Passed
fix end of files.........................................................Passed
Insert license in comments...............................................Passed
flake8...................................................................Passed
Format files with µfmt...................................................Passed
pydoclint................................................................Passed
codespell................................................................Failed
- hook id: codespell
- exit code: 65

torchtitan/models/utils.py:51: caculate ==> calculate
torchtitan/models/utils.py:71: Calulate ==> Calculate
torchtitan/models/utils.py:71: dimesion ==> dimension
torchtitan/models/utils.py:71: demension ==> dimension
torchtitan/models/utils.py:76: divded ==> divided
torchtitan/experiments/vlm/job_config.py:28: avaliable ==> available
torchtitan/experiments/vlm/README.md:37: patchs ==> patches, paths
torchtitan/experiments/vlm/README.md:40: indicies ==> indices
torchtitan/components/quantization/__init__.py:28: re-usable ==> reusable
torchtitan/models/qwen3/model/state_dict_adapter.py:144: compatibile ==> compatible
torchtitan/models/attention.py:185: argumens ==> arguments
torchtitan/components/metrics.py:322: emtpy ==> empty
docs/torchft.md:60: sychronize ==> synchronize
torchtitan/experiments/simple_fsdp/README.md:56: addtional ==> additional
```
After PR pytorch#1898 is merged,
those warnings will disappear.

Configuration for codespell is in `pyproject.toml`:

```
skip = ["*.json"] # <- json files are skipped due to too many false positives
ignore-words-list = ["assertin", "datas" ,"indx", "inpt", "nd", "socio-economic"] # <- words that are ignored because they are used as variables etc.
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