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/IntelPyTorch_GettingStarted/README.md
+25-4Lines changed: 25 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,40 @@ This Hello World sample code is implemented for CPU using the Python language.
24
24
- The model is inherited from `torch.nn.Module`.
25
25
- For the inference portion, `to_mkldnn()` function in `torch.utils.mkldnn` can accelerate performance by eliminating data reorders between operations, which are supported by Intel(R) DNNL.
26
26
27
-
## License
27
+
## License
28
28
Code samples are licensed under the MIT license. See
29
29
[License.txt](https://github.com/oneapi-src/oneAPI-samples/blob/master/License.txt) for details.
30
30
31
31
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)
32
32
33
-
## How to Build and Run
33
+
## How to Build and Run
34
34
### Running Samples In DevCloud (Optional)
35
-
If running a sample in the Intel DevCloud, please follow the below steps to build the python environment. Also, remember that you must specify the compute node (CPU, GPU, FPGA) and whether to run in batch or interactive mode. For more information, see the [Intel® oneAPI Base Toolkit Get Started Guide](https://devcloud.intel.com/oneapi/get-started/base-toolkit/)
35
+
36
+
<!---Include the next paragraph ONLY if the sample runs in batch mode-->
37
+
### Run in Batch Mode
38
+
This sample runs in batch mode, so you must have a script for batch processing. Once you have a script set up, refer to the [Tensorflow Hello World](https://github.com/oneapi-src/oneAPI-samples/blob/master/AI-and-Analytics/Getting-Started-Samples/IntelTensorFlow_GettingStarted/README.md) instructions or the [PyTorch Hello World](https://github.com/oneapi-src/oneAPI-samples/blob/master/AI-and-Analytics/Getting-Started-Samples/IntelPyTorch_GettingStarted/README.md) instructions to run the sample.
39
+
40
+
<!---Include the next paragraph ONLY if the sample DOES NOT RUN in batch mode-->
41
+
### Run in Interactive Mode
42
+
This sample runs in interactive mode. Follow the directions in the README.md for the sample you want to run. If the sample can be run in interactive mode, the sample will have directions on how to run the sample in a Jupyter Notebook. An example can be found in the [Intel® Modin Getting Started](https://github.com/oneapi-src/oneAPI-samples/tree/master/AI-and-Analytics/Getting-Started-Samples/IntelModin_GettingStarted) sample.
43
+
44
+
### Request a Compute Node
45
+
In order to run on the DevCloud, you need to request a compute node using node properties such as: `gpu`, `xeon`, `fpga_compile`, `fpga_runtime` and others. For more information about the node properties, execute the `pbsnodes` command.
46
+
This node information must be provided when submitting a job to run your sample in batch mode using the qsub command. When you see the qsub command in the Run section of the [Hello World instructions](https://devcloud.intel.com/oneapi/get_started/aiAnalyticsToolkitSamples/), change the command to fit the node you are using. Nodes which are in bold indicate they are compatible with this sample:
PyTorch is ready for use once you finish the Intel AI Analytics Toolkit installation and have run the post installation script. These steps apply to DevCloud as well.
60
+
PyTorch is ready for use once you finish the Intel® AI Analytics Toolkit installation and have run the post installation script. These steps apply to DevCloud as well.
40
61
41
62
You can refer to the oneAPI [main page](https://software.intel.com/en-us/oneapi) for toolkit installation and the Toolkit [Getting Started Guide for Linux](https://software.intel.com/en-us/get-started-with-intel-oneapi-linux-get-started-with-the-intel-ai-analytics-toolkit) for post-installation steps and scripts.
0 commit comments