Commit 937e3a4
Fix SyntaxWarning during installation / import (#3184)
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:1 parent 2dedd73 commit 937e3a4
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2386 | 2386 | | |
2387 | 2387 | | |
2388 | 2388 | | |
2389 | | - | |
| 2389 | + | |
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
| |||
0 commit comments