Skip to content

Commit 27cd073

Browse files
committed
fix github link
1 parent 329e6fb commit 27cd073

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

docs/installation.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ For more examples, see [Showcase](./showcase/showcase.mdx).
144144

145145
## Customizing Dockerfile {#selfdocker}
146146

147-
Refer to the [example Dockerfile](https://github.com/torchpipe/torchpipe/-/blob/master/docker/torchpipe.base). After downloading TensorRT and OpenCV in advance, you can compile the corresponding base image.
147+
Refer to the [example Dockerfile](https://github.com/torchpipe/torchpipe/blob/main/docker/trt9.1.base). After downloading [TensorRT](https://github.com/NVIDIA/TensorRT/tree/release/9.1#optional---if-not-using-tensorrt-container-specify-the-tensorrt-ga-release-build-path) in advance, you can compile the corresponding base image.
148148
```
149-
# put TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-11.8.tar.gz into thirdparty/
150-
wget https://codeload.github.com/opencv/opencv/zip/refs/tags/4.5.4 -O thirdparty/opencv-4.5.4.zip
151-
# docker build --network=host -f docker/torchpipe.base -t hub.c.163.com/neteaseis/ai/torchpipe:base_trt-8.6 .
149+
# put TensorRT-9.1.0.4.Linux.x86_64-gnu.cuda-11.8.tar.gz into thirdparty/
152150
153-
# docker run --rm --network=host --gpus=all --ulimit memlock=-1 --ulimit stack=67108864 --privileged=true -v `pwd`:/workspace -it hub.c.163.com/neteaseis/ai/torchpipe:base_trt-8.6 /bin/bash
151+
# docker build --network=host -f docker/trt9.1.base -t torchpipe:base_trt-9.1 .
152+
153+
# docker run --rm --network=host --gpus=all --ulimit memlock=-1 --ulimit stack=67108864 --privileged=true -v `pwd`:/workspace -it torchpipe:base_trt-9.1 /bin/bash
154154
155155
```
156156
Base images compiled in this way have smaller sizes than NGC PyTorch images. Please note that `_GLIBCXX_USE_CXX11_ABI==0`.

docs/python/test.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def test_all_files(file_dir:str, num_clients=10, batch_size = 1,
392392

393393

394394
### Clients with Different Batch Sizes
395-
In the example provided [here](https://github.com/torchpipe/torchpipe/-/blob/master/examples/yolox/yolox_multithreads_test.py), we use ten clients, each requesting different amounts of data per request, ranging from 1 to 10. We validate the consistency of the results in this case.
395+
In the example provided [here](https://github.com/torchpipe/torchpipe/blob/main/examples/yolox/yolox_multithreads_test.py), we use ten clients, each requesting different amounts of data per request, ranging from 1 to 10. We validate the consistency of the results in this case.
396396

397397
Typically, users can iterate through all the data in a directory and repeatedly send requests to verify the stability and consistency of the results.
398398

i18n/zh/docusaurus-plugin-content-docs/current/installation.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,13 +133,13 @@ print(input["result"].shape) # 失败则此键值一定不存在,即使输入
133133

134134
## 自定义dockerfile {#selfdocker}
135135

136-
参考[示例dockerfile](https://github.com/torchpipe/torchpipe/-/blob/master/docker/torchpipe.base)预先下载tensorrt和opencv后可编译相关基础镜像
137-
```
138-
# put TensorRT-8.6.1.6.Linux.x86_64-gnu.cuda-11.8.tar.gz into thirdparty/
139-
wget https://codeload.github.com/opencv/opencv/zip/refs/tags/4.5.4 -O thirdparty/opencv-4.5.4.zip
140-
# docker build --network=host -f docker/torchpipe.base -t hub.c.163.com/neteaseis/ai/torchpipe:base_trt-8.6 .
136+
参考[示例dockerfile](https://github.com/torchpipe/torchpipe/blob/main/docker/trt9.1.base)预先下载[TensorRT](https://github.com/NVIDIA/TensorRT/tree/release/9.1#optional---if-not-using-tensorrt-container-specify-the-tensorrt-ga-release-build-path)后可编译相关基础环境镜像
137+
```bash
138+
# put TensorRT-9.1.0.4.Linux.x86_64-gnu.cuda-11.8.tar.gz into thirdparty/
139+
140+
# docker build --network=host -f docker/trt9.1.base -t torchpipe:base_trt-9.1 .
141141

142-
# docker run --rm --network=host --gpus=all --ulimit memlock=-1 --ulimit stack=67108864 --privileged=true -v `pwd`:/workspace -it hub.c.163.com/neteaseis/ai/torchpipe:base_trt-8.6 /bin/bash
142+
# docker run --rm --network=host --gpus=all --ulimit memlock=-1 --ulimit stack=67108864 --privileged=true -v `pwd`:/workspace -it torchpipe:base_trt-9.1 /bin/bash
143143

144144
```
145145
这种方式编译出的基础镜像比NGC pytorch镜像体积更小. 需要注意,其`_GLIBCXX_USE_CXX11_ABI==0`

i18n/zh/docusaurus-plugin-content-docs/current/python/test.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def test_all_files(file_dir:str, num_clients=10, batch_size = 1,
389389
```
390390

391391
### 不同batchsize的客户端
392-
[此处例子](https://github.com/torchpipe/torchpipe/-/blob/master/examples/yolox/yolox_multithreads_test.py)中,我们使用十个客户端,客户端每次请求的数据量分别为1,2,3,...10。我们验证了在这种情况下结果的一致性。
392+
[此处例子](https://github.com/torchpipe/torchpipe/blob/main/examples/yolox/yolox_multithreads_test.py)中,我们使用十个客户端,客户端每次请求的数据量分别为1,2,3,...10。我们验证了在这种情况下结果的一致性。
393393
通常来讲,用户可遍历一个目录中的所有数据,并多次重复发送,以验证结果的稳定性和一致性。
394394
:::warning tensorrt模型推理结果不一致
395395
如果模型本身batchsize>1,tensorrt推理结果可能会有少量差异(输入数据的batchsize不同时,模型选取的优化方法可能不同);如果batchsize==1,这种差异不应该存在,然而重新生成模型后,推理结果仍然有可能变化。

0 commit comments

Comments
 (0)