Skip to content

Conversation

@jerryzh168
Copy link
Contributor

Summary:
Fixes a regex related syntax warning reported by Daniel / unsloth

Test Plan:
Only verified during installation but should apply for loading as well

Before:
Extracting torchao-0.15.0+git30082cb3d-py3.12.egg to …/lib/python3.12/site-packages
/data/users/jerryzh/miniconda3/envs/hmbd/lib/python3.12/site-packages/torchao-0.15.0+git30082cb3d-py3.12.egg/torchao/quantization/quant_api.py:2333: SyntaxWarning: invalid escape sequence '\.'
  * regex for module names, must start with `re:`, e.g. `re:language\.layers\..+\.q_proj`,
Adding torchao 0.15.0+git30082cb3d to easy-install.pth file


After:
creating …python3.12/site-packages/torchao-0.15.0+git30082cb3d-py3.12.egg
Extracting torchao-0.15.0+git30082cb3d-py3.12.egg to …lib/python3.12/site-packages
Adding torchao 0.15.0+git30082cb3d to easy-install.pth file

Installed …/torchao-0.15.0+git30082cb3d-py3.12.egg
Processing dependencies for torchao==0.15.0+git30082cb3d
Finished processing dependencies for torchao==0.15.0+git30082cb3d

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:
Fixes a regex related syntax warning reported by Daniel / unsloth

Test Plan:
Only verified during installation but should apply for loading as well

```
Before:
Extracting torchao-0.15.0+git30082cb3d-py3.12.egg to …/lib/python3.12/site-packages
/data/users/jerryzh/miniconda3/envs/hmbd/lib/python3.12/site-packages/torchao-0.15.0+git30082cb3d-py3.12.egg/torchao/quantization/quant_api.py:2333: SyntaxWarning: invalid escape sequence '\.'
  * regex for module names, must start with `re:`, e.g. `re:language\.layers\..+\.q_proj`,
Adding torchao 0.15.0+git30082cb3d to easy-install.pth file


After:
creating …python3.12/site-packages/torchao-0.15.0+git30082cb3d-py3.12.egg
Extracting torchao-0.15.0+git30082cb3d-py3.12.egg to …lib/python3.12/site-packages
Adding torchao 0.15.0+git30082cb3d to easy-install.pth file

Installed …/torchao-0.15.0+git30082cb3d-py3.12.egg
Processing dependencies for torchao==0.15.0+git30082cb3d
Finished processing dependencies for torchao==0.15.0+git30082cb3d
```

Reviewers:

Subscribers:

Tasks:

Tags:
@pytorch-bot
Copy link

pytorch-bot bot commented Oct 15, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3184

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit ad6a85d with merge base 30082cb (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@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 Oct 15, 2025
@jerryzh168 jerryzh168 added the topic: not user facing Use this tag if you don't want this PR to show up in release notes label Oct 16, 2025
@jerryzh168 jerryzh168 merged commit a9694a5 into main Oct 16, 2025
18 of 20 checks passed
andrewor14 pushed a commit that referenced this pull request Oct 16, 2025
Summary:
Fixes a regex related syntax warning reported by Daniel / unsloth

Test Plan:
Only verified during installation but should apply for loading as well

```
Before:
Extracting torchao-0.15.0+git30082cb3d-py3.12.egg to …/lib/python3.12/site-packages
/data/users/jerryzh/miniconda3/envs/hmbd/lib/python3.12/site-packages/torchao-0.15.0+git30082cb3d-py3.12.egg/torchao/quantization/quant_api.py:2333: SyntaxWarning: invalid escape sequence '\.'
  * regex for module names, must start with `re:`, e.g. `re:language\.layers\..+\.q_proj`,
Adding torchao 0.15.0+git30082cb3d to easy-install.pth file


After:
creating …python3.12/site-packages/torchao-0.15.0+git30082cb3d-py3.12.egg
Extracting torchao-0.15.0+git30082cb3d-py3.12.egg to …lib/python3.12/site-packages
Adding torchao 0.15.0+git30082cb3d to easy-install.pth file

Installed …/torchao-0.15.0+git30082cb3d-py3.12.egg
Processing dependencies for torchao==0.15.0+git30082cb3d
Finished processing dependencies for torchao==0.15.0+git30082cb3d
```

Reviewers:

Subscribers:

Tasks:

Tags:
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. topic: not user facing Use this tag if you don't want this PR to show up in release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants