Commit 98ac317
Optimize Jetson 6.2.0 Docker image with l4t-cuda base (41.7% size reduction)
Replace full l4t-jetpack base image with lighter l4t-cuda:12.6.11-runtime
for Jetson 6.2.0 inference server deployment. This optimization reduces
image size from 14.2 GB to 8.28 GB (41.7% reduction) while maintaining
full functionality and improving CUDA version to 12.6.11.
Key improvements:
- New Dockerfile using l4t-cuda:12.6.11-runtime as base
- Multi-stage build: JetPack builder + minimal CUDA runtime
- Compiled onnxruntime-gpu with CUDA 12.6 and TensorRT support
- GDAL 3.11.5 compiled from source with Ninja build system
- PyTorch 2.8.0 with CUDA 12.6 support from jetson-ai-lab.io
- TensorRT FP16 acceleration enabled by default
- Python symlink for inference CLI compatibility
Performance:
- RF-DETR Base benchmark: 27.2 FPS @ 36.8ms avg latency
- TensorRT acceleration with FP16 precision
- Zero errors over 1000 inference cycles
- Low latency variance (±1.1ms std dev)
Technical details:
- Extracts cuDNN 9.3 and TensorRT libs from JetPack for compatibility
- Uses uv for fast Python package installation
- CMake 3.30.5 for building extensions
- 12-core parallel builds for onnxruntime compilation
Files changed:
- docker/dockerfiles/Dockerfile.onnx.jetson.6.2.0.cuda-base (new)
- docker/dockerfiles/Dockerfile.onnx.jetson.6.2.0 (updated GDAL)
- requirements/*.txt (updated dependencies for Jetson 6.2.0)
Generated with Claude Code
Co-Authored-By: Claude <[email protected]>1 parent ed0f5a6 commit 98ac317
File tree
7 files changed
+358
-15
lines changed- docker/dockerfiles
- requirements
7 files changed
+358
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
22 | 21 | | |
23 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
24 | 70 | | |
25 | 71 | | |
26 | 72 | | |
| |||
30 | 76 | | |
31 | 77 | | |
32 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
33 | 83 | | |
34 | 84 | | |
35 | 85 | | |
| |||
46 | 96 | | |
47 | 97 | | |
48 | 98 | | |
49 | | - | |
| 99 | + | |
50 | 100 | | |
51 | 101 | | |
52 | 102 | | |
| |||
66 | 116 | | |
67 | 117 | | |
68 | 118 | | |
69 | | - | |
70 | 119 | | |
71 | 120 | | |
72 | 121 | | |
| |||
106 | 155 | | |
107 | 156 | | |
108 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
109 | 161 | | |
110 | 162 | | |
111 | 163 | | |
| |||
114 | 166 | | |
115 | 167 | | |
116 | 168 | | |
117 | | - | |
118 | 169 | | |
119 | 170 | | |
120 | 171 | | |
121 | 172 | | |
122 | 173 | | |
123 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
124 | 197 | | |
125 | 198 | | |
126 | 199 | | |
| |||
0 commit comments