Commit a9694a5
authored
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 30082cb commit a9694a5
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2317 | 2317 | | |
2318 | 2318 | | |
2319 | 2319 | | |
2320 | | - | |
| 2320 | + | |
2321 | 2321 | | |
2322 | 2322 | | |
2323 | 2323 | | |
| |||
0 commit comments