index.rst 5.54 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
.. raw:: html

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

.. only:: html

18
19
 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_speedup_thumb.png
     :alt: Speedup Model with Mask
J-shang's avatar
J-shang committed
20

21
     :ref:`sphx_glr_tutorials_pruning_speedup.py`
J-shang's avatar
J-shang committed
22
23
24
25
26
27
28
29
30

.. raw:: html

    </div>


.. toctree::
   :hidden:

31
   /tutorials/pruning_speedup
J-shang's avatar
J-shang committed
32
33
34

.. raw:: html

35
    <div class="sphx-glr-thumbcontainer" tooltip=" Introduction ------------">
J-shang's avatar
J-shang committed
36
37
38

.. only:: html

39
40
 .. figure:: /tutorials/images/thumb/sphx_glr_quantization_speedup_thumb.png
     :alt: SpeedUp Model with Calibration Config
J-shang's avatar
J-shang committed
41

42
     :ref:`sphx_glr_tutorials_quantization_speedup.py`
J-shang's avatar
J-shang committed
43
44
45
46
47
48
49
50
51

.. raw:: html

    </div>


.. toctree::
   :hidden:

52
   /tutorials/quantization_speedup
J-shang's avatar
J-shang committed
53
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="Model pruning is a technique to reduce the model size and computation by reducing model weight ...">
J-shang's avatar
J-shang committed
78
79
80

.. only:: html

81
82
 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_quick_start_mnist_thumb.png
     :alt: Pruning Quickstart
J-shang's avatar
J-shang committed
83

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

.. raw:: html

    </div>


.. toctree::
   :hidden:

94
   /tutorials/pruning_quick_start_mnist
J-shang's avatar
J-shang committed
95

J-shang's avatar
J-shang committed
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
.. 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

117
118
.. raw:: html

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

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
123
124
 .. figure:: /tutorials/images/thumb/sphx_glr_nasbench_as_dataset_thumb.png
     :alt: Use NAS Benchmarks as Datasets
125

Yuge Zhang's avatar
Yuge Zhang committed
126
     :ref:`sphx_glr_tutorials_nasbench_as_dataset.py`
127
128
129
130
131
132
133
134
135

.. raw:: html

    </div>


.. toctree::
   :hidden:

Yuge Zhang's avatar
Yuge Zhang committed
136
137
   /tutorials/nasbench_as_dataset

J-shang's avatar
J-shang committed
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
.. 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
.. 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
179
180
181
182
183
184
.. raw:: html

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



liuzhe-lz's avatar
liuzhe-lz committed
185
186
187
188
189
190
191
.. _sphx_glr_tutorials_hpo_quickstart_pytorch:




.. raw:: html

liuzhe-lz's avatar
liuzhe-lz committed
192
    <div class="sphx-glr-thumbcontainer" tooltip="There is also a TensorFlow version&lt;../hpo_quickstart_tensorflow/main&gt; if you prefer it.">
liuzhe-lz's avatar
liuzhe-lz committed
193
194
195
196
197
198
199
200
201
202
203
204
205
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

.. 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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
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
.. _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>



289
290
291
292
293
.. only:: html

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

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