You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AI-and-Analytics/Getting-Started-Samples/Intel_Extension_For_PyTorch_GettingStarted/README.md
+88-27Lines changed: 88 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,64 +48,120 @@ The sample uses pretrained model provided by Intel and published as part of [Int
48
48
## Environment Setup
49
49
You will need to download and install the following toolkits, tools, and components to use the sample.
50
50
51
+
51
52
**1. Get Intel® AI Tools**
52
53
53
-
Required AI Tools: <https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html>
54
-
<br>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.
54
+
Required AI Tools: Intel® Extension for PyTorch* - GPU
55
+
56
+
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.
57
+
58
+
>**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.
59
+
60
+
**2. (Offline Installer) Activate the AI Tools bundle base environment**
55
61
56
-
**2. Install dependencies**
62
+
If the default path is used during the installation of AI Tools:
cd oneAPI-samples/AI-and-Analytics/Getting-Started-Samples/Intel_Extension_For_PyTorch_GettingStarted/
82
+
```
83
+
84
+
**5. Install dependencies**
85
+
86
+
>**Note**: Before running the following commands, make sure your Conda/Python environment with AI Tools installed is activated
87
+
88
+
```
89
+
pip install -r requirements.txt
90
+
pip install notebook
91
+
```
92
+
For Jupyter Notebook, refer to [Installing Jupyter](https://jupyter.org/install) for detailed installation instructions.
61
93
62
94
63
95
## Run the Sample
64
96
>**Note**: Before running the sample, make sure [Environment Setup](#environment-setup) is completed.
97
+
65
98
Go to the section which corresponds to the installation method chosen in [AI Tools Selector](https://www.intel.com/content/www/us/en/developer/tools/oneapi/ai-tools-selector.html) to see relevant instructions:
1. If you have not already done so, activate the AI Tools bundle base environment. If you used the default location to install AI Tools, open a terminal and type the following
104
+
105
+
**1. Register Conda kernel to Jupyter Notebook kernel**
106
+
107
+
If the default path is used during the installation of AI Tools:
>**Note**: Read more information about the mkldnn log at [https://oneapi-src.github.io/oneDNN/dev_guide_verbose.html](https://oneapi-src.github.io/oneDNN/dev_guide_verbose.html).
92
147
93
-
4. Launch Jupyter Notebook:
94
-
> **Note**: You might need to register Conda kernel to Jupyter Notebook kernel,
95
-
feel free to check [the instruction](https://github.com/IntelAI/models/tree/master/docs/notebooks/perf_analysis#option-1-conda-environment-creation)
*Other names and brands may be claimed as the property of others. [Trademarks](https://www.intel.com/content/www/us/en/legal/trademarks.html)
125
187
126
-
Third party program Licenses can be found here: [third-party-programs.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/third-party-programs.txt).
0 commit comments