index.rst 5.85 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
:orphan:



.. _sphx_glr_tutorials:

Tutorials
=========



J-shang's avatar
J-shang committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Introduction ------------">

.. only:: html

 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_speed_up_thumb.png
     :alt: Speed Up Model with Mask

     :ref:`sphx_glr_tutorials_pruning_speed_up.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/pruning_speed_up

33
34
.. raw:: html

Yuge Zhang's avatar
Yuge Zhang committed
35
    <div class="sphx-glr-thumbcontainer" tooltip="Start and Manage a New Experiment">
36
37
38

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
39
40
 .. figure:: /tutorials/images/thumb/sphx_glr_nni_experiment_thumb.png
     :alt: Start and Manage a New Experiment
41

Yuge Zhang's avatar
Yuge Zhang committed
42
     :ref:`sphx_glr_tutorials_nni_experiment.py`
43
44
45
46
47
48
49
50
51

.. raw:: html

    </div>


.. toctree::
   :hidden:

Yuge Zhang's avatar
Yuge Zhang committed
52
   /tutorials/nni_experiment
53

J-shang's avatar
J-shang committed
54
55
.. raw:: html

56
    <div class="sphx-glr-thumbcontainer" tooltip="Quantization reduces model size and speeds up inference time by reducing the number of bits req...">
J-shang's avatar
J-shang committed
57
58
59

.. only:: html

60
61
 .. figure:: /tutorials/images/thumb/sphx_glr_quantization_quick_start_mnist_thumb.png
     :alt: Quantization Quickstart
J-shang's avatar
J-shang committed
62

63
     :ref:`sphx_glr_tutorials_quantization_quick_start_mnist.py`
J-shang's avatar
J-shang committed
64
65
66
67
68
69
70
71
72

.. raw:: html

    </div>


.. toctree::
   :hidden:

73
   /tutorials/quantization_quick_start_mnist
J-shang's avatar
J-shang committed
74
75
76

.. raw:: html

77
    <div class="sphx-glr-thumbcontainer" tooltip=" Introduction ------------">
J-shang's avatar
J-shang committed
78
79
80

.. only:: html

81
82
 .. figure:: /tutorials/images/thumb/sphx_glr_quantization_speed_up_thumb.png
     :alt: Speed Up Model with Calibration Config
J-shang's avatar
J-shang committed
83

84
     :ref:`sphx_glr_tutorials_quantization_speed_up.py`
J-shang's avatar
J-shang committed
85
86
87
88
89
90
91
92
93

.. raw:: html

    </div>


.. toctree::
   :hidden:

94
   /tutorials/quantization_speed_up
J-shang's avatar
J-shang committed
95
96
97

.. raw:: html

98
    <div class="sphx-glr-thumbcontainer" tooltip="Model pruning is a technique to reduce the model size and computation by reducing model weight ...">
J-shang's avatar
J-shang committed
99
100
101

.. only:: html

102
103
 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_quick_start_mnist_thumb.png
     :alt: Pruning Quickstart
J-shang's avatar
J-shang committed
104

105
     :ref:`sphx_glr_tutorials_pruning_quick_start_mnist.py`
J-shang's avatar
J-shang committed
106
107
108
109
110
111
112
113
114

.. raw:: html

    </div>


.. toctree::
   :hidden:

115
   /tutorials/pruning_quick_start_mnist
J-shang's avatar
J-shang committed
116

J-shang's avatar
J-shang committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="To write a new quantization algorithm, you can write a class that inherits nni.compression.pyto...">

.. only:: html

 .. figure:: /tutorials/images/thumb/sphx_glr_quantization_customize_thumb.png
     :alt: Customize a new quantization algorithm

     :ref:`sphx_glr_tutorials_quantization_customize.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/quantization_customize

138
139
.. raw:: html

Yuge Zhang's avatar
Yuge Zhang committed
140
    <div class="sphx-glr-thumbcontainer" tooltip="In this tutorial, we show how to use NAS Benchmarks as datasets. For research purposes we somet...">
141
142
143

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
144
145
 .. figure:: /tutorials/images/thumb/sphx_glr_nasbench_as_dataset_thumb.png
     :alt: Use NAS Benchmarks as Datasets
146

Yuge Zhang's avatar
Yuge Zhang committed
147
     :ref:`sphx_glr_tutorials_nasbench_as_dataset.py`
148
149
150
151
152
153
154
155
156

.. raw:: html

    </div>


.. toctree::
   :hidden:

Yuge Zhang's avatar
Yuge Zhang committed
157
158
   /tutorials/nasbench_as_dataset

J-shang's avatar
J-shang committed
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Users can easily customize a basic pruner in NNI. A large number of basic modules have been pro...">

.. only:: html

 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_customize_thumb.png
     :alt: Customize Basic Pruner

     :ref:`sphx_glr_tutorials_pruning_customize.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/pruning_customize

Yuge Zhang's avatar
Yuge Zhang committed
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="This is the 101 tutorial of Neural Architecture Search (NAS) on NNI. In this tutorial, we will ...">

.. only:: html

 .. figure:: /tutorials/images/thumb/sphx_glr_hello_nas_thumb.png
     :alt: Hello, NAS!

     :ref:`sphx_glr_tutorials_hello_nas.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/hello_nas
200
201
202
203
204
205
.. raw:: html

    <div class="sphx-glr-clear"></div>



liuzhe-lz's avatar
liuzhe-lz committed
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
.. _sphx_glr_tutorials_hpo_quickstart_pytorch:




.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The tutorial consists of 4 steps: ">

.. only:: html

 .. figure:: /tutorials/hpo_quickstart_pytorch/images/thumb/sphx_glr_main_thumb.png
     :alt: NNI HPO Quickstart with PyTorch

     :ref:`sphx_glr_tutorials_hpo_quickstart_pytorch_main.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_pytorch/main

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="It can be run directly and will have the exact same result as original version.">

.. only:: html

 .. figure:: /tutorials/hpo_quickstart_pytorch/images/thumb/sphx_glr_model_thumb.png
     :alt: Port PyTorch Quickstart to NNI

     :ref:`sphx_glr_tutorials_hpo_quickstart_pytorch_model.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_pytorch/model
.. raw:: html

    <div class="sphx-glr-clear"></div>



liuzhe-lz's avatar
liuzhe-lz committed
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
.. _sphx_glr_tutorials_hpo_quickstart_tensorflow:




.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="The tutorial consists of 4 steps: ">

.. only:: html

 .. figure:: /tutorials/hpo_quickstart_tensorflow/images/thumb/sphx_glr_main_thumb.png
     :alt: NNI HPO Quickstart with TensorFlow

     :ref:`sphx_glr_tutorials_hpo_quickstart_tensorflow_main.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_tensorflow/main

.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="It can be run directly and will have the exact same result as original version.">

.. only:: html

 .. figure:: /tutorials/hpo_quickstart_tensorflow/images/thumb/sphx_glr_model_thumb.png
     :alt: Port TensorFlow Quickstart to NNI

     :ref:`sphx_glr_tutorials_hpo_quickstart_tensorflow_model.py`

.. raw:: html

    </div>


.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_tensorflow/model
.. raw:: html

    <div class="sphx-glr-clear"></div>



310
311
312
313
314
.. only:: html

 .. rst-class:: sphx-glr-signature

    `Gallery generated by Sphinx-Gallery <https://sphinx-gallery.github.io>`_