Skip to content

Commit abe9972

Browse files
authored
Update README.md
1 parent 2e19029 commit abe9972

File tree

1 file changed

+20
-10
lines changed
  • AI-and-Analytics/Getting-Started-Samples/Intel_oneCCL_Bindings_For_PyTorch_GettingStarted

1 file changed

+20
-10
lines changed

AI-and-Analytics/Getting-Started-Samples/Intel_oneCCL_Bindings_For_PyTorch_GettingStarted/README.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ You will need to download and install the following toolkits, tools, and compone
4141

4242
**1. Get AI Tools**
4343

44-
Required AI Tools: Intel® Extension for PyTorch* - (CPU) or (GPU)
44+
Required AI Tools: Intel® Extension for PyTorch* - (CPU or GPU)
4545

4646
If you have not already, select and install these Tools 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.
4747

4848
>**Note**: If Docker option is chosen in AI Tools Selector, refer to [Working with Preset Containers](https://github.com/intel/ai-containers/tree/main/preset) to learn how to run the docker and samples.
4949
5050
**2. (Offline Installer) Activate the AI Tools bundle base environment**
51-
<!-- this step is from AI Tools GSG, please don't modify unless GSG is updated -->
51+
5252
If the default path is used during the installation of AI Tools:
5353
```
5454
source $HOME/intel/oneapi/intelpython/bin/activate
@@ -58,7 +58,8 @@ If a non-default path is used:
5858
source <custom_path>/bin/activate
5959
```
6060

61-
**3. (Offline Installer) Activate relevant Conda environment**
61+
**3. (Offline Installer) Activate relevant Conda environment**
62+
6263
For CPU
6364
```
6465
conda activate pytorch
@@ -92,40 +93,49 @@ Go to the section which corresponds to the installation method chosen in [AI Too
9293
* [AI Tools Offline Installer (Validated)](#ai-tools-offline-installer-validated)
9394
* [Docker](#docker)
9495

95-
### AI Tools Offline Installer (Validated)
96+
### AI Tools Offline Installer (Validated)
97+
9698
**1. Register Conda kernel to Jupyter Notebook kernel**
99+
97100
For CPU
101+
98102
If the default path is used during the installation of AI Tools:
99103

100104
```
101105
$HOME/intel/oneapi/intelpython/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch
102106
```
107+
103108
If a non-default path is used:
104109
```
105110
<custom_path>/bin/python -m ipykernel install --user --name=pytorch
106111
```
107112

108113
For GPU
114+
109115
If the default path is used during the installation of AI Tools:
110116

111117
```
112-
$HOME/intel/oneapi/intelpython/envs/pytorch/bin/python -m ipykernel install --user --name=pytorch-gpu
118+
$HOME/intel/oneapi/intelpython/envs/pytorch-gpu/bin/python -m ipykernel install --user --name=pytorch-gpu
113119
```
120+
114121
If a non-default path is used:
115122
```
116123
<custom_path>/bin/python -m ipykernel install --user --name=pytorch-gpu
117124
```
118-
2. Launch Jupyter Notebook.
125+
**2. Launch Jupyter Notebook.**
119126
```
120127
jupyter notebook --ip=0.0.0.0 --port 8888 --allow-root
121128
```
122-
3. Follow the instructions to open the URL with the token in your browser.
123-
4. Select the Notebook.
129+
**3. Follow the instructions to open the URL with the token in your browser.**
130+
131+
**4. Select the Notebook.**
124132
```
125133
oneCCL_Bindings_GettingStarted.ipynb
126134
```
127-
5. Change kernel to **pytorch** or **pytorch-gpu**.
128-
6. Run every cell in the Notebook in sequence.
135+
136+
**5. Change kernel to **pytorch** or **pytorch-gpu**.**
137+
138+
**6. Run every cell in the Notebook in sequence.**
129139

130140
### Docker
131141
AI Tools Docker images already have Get Started samples pre-installed. Refer to [Working with Preset Containers](https://github.com/intel/ai-containers/tree/main/preset) to learn how to run the docker and samples.

0 commit comments

Comments
 (0)