|
60 | 60 | sudo yum install -y docker.io |
61 | 61 | sudo usermod -aG docker $USER |
62 | 62 |
|
63 | | - Logout and log back in to refresh membership. |
| 63 | + Logout and log back in to refresh membership. |
64 | 64 |
|
65 | 65 | .. dropdown:: Verify Docker |
66 | 66 | :class-title: sphinx-design-class-title-small |
|
97 | 97 | https://docs.docker.com/get-started/ |
98 | 98 |
|
99 | 99 | .. dropdown:: Verify Neuron Component |
100 | | - :class-title: sphinx-design-class-title-small |
101 | | - :class-body: sphinx-design-class-body-small |
102 | | - :animate: fade-in |
| 100 | + :class-title: sphinx-design-class-title-small |
| 101 | + :class-body: sphinx-design-class-body-small |
| 102 | + :animate: fade-in |
103 | 103 |
|
104 | | - Once the environment is setup, a container can be started with |
105 | | - --device=/dev/neuron# to specify desired set of Inferentia/Trainium devices to be |
106 | | - exposed to the container. To find out the available neuron devices on |
107 | | - your instance, use the command ``ls /dev/neuron*``. |
| 104 | + Once the environment is setup, a container can be started with |
| 105 | + --device=/dev/neuron# to specify desired set of Inferentia/Trainium devices to be |
| 106 | + exposed to the container. To find out the available neuron devices on |
| 107 | + your instance, use the command ``ls /dev/neuron*``. |
108 | 108 |
|
109 | | - When running neuron-ls inside a container, you will only see the set of |
110 | | - exposed Trainiums. For example: |
| 109 | + When running neuron-ls inside a container, you will only see the set of |
| 110 | + exposed Trainiums. For example: |
111 | 111 |
|
112 | | - .. code:: bash |
| 112 | + .. code:: bash |
113 | 113 |
|
114 | | - docker run --device=/dev/neuron0 neuron-test neuron-ls |
| 114 | + docker run --device=/dev/neuron0 neuron-test neuron-ls |
115 | 115 |
|
116 | | - Would produce the following output in trn1.32xlarge: |
| 116 | + Would produce the following output in trn1.32xlarge: |
117 | 117 |
|
118 | | - :: |
| 118 | + :: |
119 | 119 |
|
120 | | - +--------+--------+--------+---------+ |
121 | | - | NEURON | NEURON | NEURON | PCI | |
122 | | - | DEVICE | CORES | MEMORY | BDF | |
123 | | - +--------+--------+--------+---------+ |
124 | | - | 0 | 2 | 32 GB | 10:1c.0 | |
125 | | - +--------+--------+--------+---------+ |
| 120 | + +--------+--------+--------+---------+ |
| 121 | + | NEURON | NEURON | NEURON | PCI | |
| 122 | + | DEVICE | CORES | MEMORY | BDF | |
| 123 | + +--------+--------+--------+---------+ |
| 124 | + | 0 | 2 | 32 GB | 10:1c.0 | |
| 125 | + +--------+--------+--------+---------+ |
126 | 126 |
|
127 | 127 | .. dropdown:: Build and Run Docker Image |
128 | 128 | :class-title: sphinx-design-class-title-small |
|
146 | 146 | :class-title: sphinx-design-class-title-small |
147 | 147 | :class-body: sphinx-design-class-body-small |
148 | 148 | :animate: fade-in |
149 | | - |
150 | | - .. include:: /general/setup/install-templates/launch-inf1.txt |
| 149 | + .. include:: /general/setup/install-templates/launch-inf1.txt |
151 | 150 |
|
152 | 151 | .. dropdown:: Install Drivers |
153 | 152 | :class-title: sphinx-design-class-title-small |
|
195 | 194 | sudo yum install -y docker.io |
196 | 195 | sudo usermod -aG docker $USER |
197 | 196 |
|
198 | | - Logout and log back in to refresh membership. |
| 197 | + Logout and log back in to refresh membership. |
199 | 198 |
|
200 | 199 | .. dropdown:: Verify Docker |
201 | 200 | :class-title: sphinx-design-class-title-small |
|
233 | 232 |
|
234 | 233 |
|
235 | 234 | .. dropdown:: Verify Neuron Component |
236 | | - :class-title: sphinx-design-class-title-small |
237 | | - :class-body: sphinx-design-class-body-small |
238 | | - :animate: fade-in |
| 235 | + :class-title: sphinx-design-class-title-small |
| 236 | + :class-body: sphinx-design-class-body-small |
| 237 | + :animate: fade-in |
239 | 238 |
|
240 | | - Once the environment is setup, a container can be started with |
241 | | - --device=/dev/neuron# to specify desired set of Inferentia/Trainium devices to be |
242 | | - exposed to the container. To find out the available neuron devices on |
243 | | - your instance, use the command ``ls /dev/neuron*``. |
| 239 | + Once the environment is setup, a container can be started with |
| 240 | + --device=/dev/neuron# to specify desired set of Inferentia/Trainium devices to be |
| 241 | + exposed to the container. To find out the available neuron devices on |
| 242 | + your instance, use the command ``ls /dev/neuron*``. |
244 | 243 |
|
245 | | - When running neuron-ls inside a container, you will only see the set of |
246 | | - exposed Inferentias. For example: |
| 244 | + When running neuron-ls inside a container, you will only see the set of |
| 245 | + exposed Inferentias. For example: |
247 | 246 |
|
248 | | - .. code:: bash |
| 247 | + .. code:: bash |
249 | 248 |
|
250 | | - docker run --device=/dev/neuron0 neuron-test neuron-ls |
| 249 | + docker run --device=/dev/neuron0 neuron-test neuron-ls |
251 | 250 |
|
252 | | - Would produce the following output in inf1.xlarge: |
| 251 | + Would produce the following output in inf1.xlarge: |
253 | 252 |
|
254 | | - :: |
| 253 | + :: |
255 | 254 |
|
256 | | - +--------------+---------+--------+-----------+-----------+------+------+ |
257 | | - | PCI BDF | LOGICAL | NEURON | MEMORY | MEMORY | EAST | WEST | |
258 | | - | | ID | CORES | CHANNEL 0 | CHANNEL 1 | | | |
259 | | - +--------------+---------+--------+-----------+-----------+------+------+ |
260 | | - | 0000:00:1f.0 | 0 | 4 | 4096 MB | 4096 MB | 0 | 0 | |
261 | | - +--------------+---------+--------+-----------+-----------+------+------+ |
| 255 | + +--------------+---------+--------+-----------+-----------+------+------+ |
| 256 | + | PCI BDF | LOGICAL | NEURON | MEMORY | MEMORY | EAST | WEST | |
| 257 | + | | ID | CORES | CHANNEL 0 | CHANNEL 1 | | | |
| 258 | + +--------------+---------+--------+-----------+-----------+------+------+ |
| 259 | + | 0000:00:1f.0 | 0 | 4 | 4096 MB | 4096 MB | 0 | 0 | |
| 260 | + +--------------+---------+--------+-----------+-----------+------+------+ |
262 | 261 |
|
263 | 262 | .. dropdown:: Run Tutorial |
264 | 263 | :class-title: sphinx-design-class-title-small |
|
0 commit comments