Skip to content

Commit 503035d

Browse files
committed
format edits
1 parent 8a8cacf commit 503035d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

  • docs/guides/applications/big-data/ai-inferencing-with-tensorrt-and-pytorch

docs/guides/applications/big-data/ai-inferencing-with-tensorrt-and-pytorch/index.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,17 +148,17 @@ Set up and use a Python Virtual Environment (venv) so that you can isolate Pytho
148148

149149
### Install PyTorch and TensorRT
150150

151-
1. While using your virtual environment, install PyTorch, TensorRT, and dependencies. These are the primary AI libraries needed to run your inference workloads.
151+
While using your virtual environment, install PyTorch, TensorRT, and dependencies. These are the primary AI libraries needed to run your inference workloads.
152152

153-
```command
154-
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
155-
pip install requests
156-
pip install nvidia-pyindex
157-
pip install nvidia-tensorrt
158-
pip install torch-tensorrt -U
159-
```
153+
```command
154+
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121
155+
pip install requests
156+
pip install nvidia-pyindex
157+
pip install nvidia-tensorrt
158+
pip install torch-tensorrt -U
159+
```
160160

161-
## Create a Benchmark Using the ResNet50 Inference Model
161+
## Test and Benchmark the ResNet50 Inference Model
162162

163163
Create and run a Python script using a pre-trained ResNet50 computer vision model. Running this script tests to make sure the environment is configured correctly while providing a way to evaluate GPU performance using a real-world example. This example script is a foundation that can be adapted for other inference model architectures.
164164

@@ -236,7 +236,7 @@ Create and run a Python script using a pre-trained ResNet50 computer vision mode
236236
Average inference time: 0.0025 seconds
237237
```
238238
239-
We recommend timing how long it takes to run the model 20 times, and then divide by 20 to get the average time per inference. This should give you an idea of how quickly your GPU can process input using this model.
239+
It is recommended to time how long it takes to run the model 20 times, and then divide by 20 to get the average time per inference. This should give you an idea of how quickly your GPU can process input using this model.
240240
241241
## Next Steps
242242

0 commit comments

Comments
 (0)