Skip to content

Commit 46bb1e8

Browse files
authored
Update README.MD
1 parent 12d58ef commit 46bb1e8

File tree

1 file changed

+16
-12
lines changed
  • AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch

1 file changed

+16
-12
lines changed

AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch/README.MD

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,6 @@ You will need to download and install the following toolkits, tools, and compone
4848
Required AI Tools: **Intel® Neural Compressor, Intel® Extension of PyTorch***.
4949
<br>If you have not already, select and install these Tools via via [AI Tools Selector](https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html). AI and Analytics samples are validated on AI Tools Offline Installer. It is recommended to select Offline Installer option in AI Tools Selector.
5050

51-
**2. Install dependencies**
52-
```
53-
pip install -r requirements.txt
54-
```
55-
**Install Jupyter Notebook** by running `pip install notebook`. Alternatively, see [Installing Jupyter](https://jupyter.org/install) for detailed installation instructions.
56-
5751
## Run the `Getting Started with Intel® Neural Compressor for Quantization` Sample
5852

5953
>**Note**: Before running the sample, make sure [Environment Setup](https://github.com/oneapi-src/oneAPI-samples/tree/master/AI-and-Analytics/Getting-Started-Samples/INC-Quantization-Sample-for-PyTorch#environment-setup) is completed.
@@ -82,19 +76,24 @@ conda activate pytorch
8276
git clone https://github.com/oneapi-src/oneAPI-samples.git
8377
cd oneAPI-samples/AI-and-Analytics/Getting-Started-Samples
8478
```
85-
4. Launch Jupyter Notebook:
79+
4. Install dependencies:
80+
```
81+
pip install -r requirements.txt
82+
```
83+
**Install Jupyter Notebook** by running `pip install notebook`. Alternatively, see [Installing Jupyter](https://jupyter.org/install) for detailed installation instructions.
84+
5. Launch Jupyter Notebook:
8685
> **Note**: You might need to register Conda kernel to Jupyter Notebook kernel,
8786
feel free to check [the instruction](https://github.com/IntelAI/models/tree/master/docs/notebooks/perf_analysis#option-1-conda-environment-creation)
8887
```
8988
jupyter notebook --ip=0.0.0.0
9089
```
91-
5. Follow the instructions to open the URL with the token in your browser.
92-
6. Select the Notebook:
90+
6. Follow the instructions to open the URL with the token in your browser.
91+
7. Select the Notebook:
9392
```
9493
quantize_with_inc.ipynb
9594
```
96-
7. Change the kernel to `pytorch`
97-
8. Run every cell in the Notebook in sequence.
95+
8. Change the kernel to `pytorch`
96+
9. Run every cell in the Notebook in sequence.
9897

9998
### Conda/PIP
10099
> **Note**: Make sure your Conda/Python environment with AI Tools installed is activated
@@ -103,7 +102,12 @@ quantize_with_inc.ipynb
103102
git clone https://github.com/oneapi-src/oneAPI-samples.git
104103
cd oneAPI-samples/AI-and-Analytics/Getting-Started-Samples
105104
```
106-
2. Launch Jupyter Notebook:
105+
2. Install dependencies:
106+
```
107+
pip install -r requirements.txt
108+
```
109+
**Install Jupyter Notebook** by running `pip install notebook`. Alternatively, see [Installing Jupyter](https://jupyter.org/install) for detailed installation instructions.
110+
3. Launch Jupyter Notebook:
107111
> **Note**: You might need to register Conda kernel to Jupyter Notebook kernel,
108112
feel free to check [the instruction](https://github.com/IntelAI/models/tree/master/docs/notebooks/perf_analysis#option-1-conda-environment-creation)
109113
```

0 commit comments

Comments
 (0)