Skip to content

Commit aa94639

Browse files
authored
Merge pull request #39 from drisspg/update-readme
make readme prettier
2 parents 969038f + 06716b5 commit aa94639

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,26 @@ The torchao package contains apis and workflows used to apply AO techniques like
99
**Note: this library makes liberal use of several new features in pytorch, its recommended to use it with the current pytorch nightly if you want full feature coverage. If not, the subclass APIs may not work, though the module swap api's will still work.**
1010

1111
1. From PyPI:
12-
```
12+
```Shell
1313
pip install torchao
1414
```
1515

1616
2. From Source:
1717

18-
```
18+
```Shell
1919
git clone https://github.com/pytorch-labs/ao
2020
cd ao
2121
python setup.py install
2222
```
2323

2424
Verify Installation:
2525

26-
```
26+
```Shell
2727
pip list | grep torchao
2828
```
2929

3030
Expected Output
31-
```
31+
```Shell
3232
torchao 0.0.1 <install dir>
3333
```
3434

@@ -50,7 +50,7 @@ converts the floating point linear matmul of the original linear op to a dynamic
5050

5151
Example
5252

53-
```
53+
```Python
5454
import torch
5555
from torchao.quantization import quant_api
5656

@@ -76,7 +76,7 @@ converts the floating point linear matmul of the original linear op to a weight
7676

7777
Example
7878

79-
```
79+
```Python
8080
# some user model and example input
8181
...
8282

@@ -97,7 +97,7 @@ converts the floating point linear matmul of the original linear op to a weight
9797

9898
Example
9999

100-
```
100+
```Python
101101
# some user model and example input
102102
...
103103

@@ -123,7 +123,7 @@ Due to requiring calibration, the API is slightly more complicated and currently
123123

124124
Example
125125

126-
```
126+
```Python
127127
import torch
128128
from torchao.quantization.smoothquant import swap_linear_with_smooth_fq_linear, smooth_fq_linear_to_inference
129129

0 commit comments

Comments
 (0)