index.rst 6.18 KB
Newer Older
1
2
3
4
:orphan:



Yuge Zhang's avatar
Yuge Zhang committed
5
.. _sphx_glr_tutorials:
6

Yuge Zhang's avatar
Yuge Zhang committed
7
8
Tutorials
=========
9
10
11



J-shang's avatar
J-shang committed
12
13
14
15
16
17
.. raw:: html

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

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
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

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

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
28
29
30
31
32
.. toctree::
   :hidden:

   /tutorials/pruning_speedup

J-shang's avatar
J-shang committed
33
34
.. raw:: html

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

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
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

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

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
49
50
51
52
53
.. toctree::
   :hidden:

   /tutorials/quantization_speedup

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

56
    <div class="sphx-glr-thumbcontainer" tooltip="Here is a four-minute video to get you started with model quantization.">
J-shang's avatar
J-shang committed
57
58
59

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
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

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

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
70
71
72
73
74
.. toctree::
   :hidden:

   /tutorials/quantization_quick_start_mnist

J-shang's avatar
J-shang committed
75
76
.. raw:: html

77
    <div class="sphx-glr-thumbcontainer" tooltip="Here is a three-minute video to get you started with model pruning.">
J-shang's avatar
J-shang committed
78
79
80

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
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

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

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
91
92
93
94
95
.. toctree::
   :hidden:

   /tutorials/pruning_quick_start_mnist

J-shang's avatar
J-shang committed
96
97
98
99
100
101
.. 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

Yuge Zhang's avatar
Yuge Zhang committed
102
103
 .. figure:: /tutorials/images/thumb/sphx_glr_quantization_customize_thumb.png
     :alt: Customize a new quantization algorithm
J-shang's avatar
J-shang committed
104

Yuge Zhang's avatar
Yuge Zhang committed
105
     :ref:`sphx_glr_tutorials_quantization_customize.py`
J-shang's avatar
J-shang committed
106
107
108
109
110
111

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
112
113
114
115
116
.. 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

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
133
134
135
136
137
.. toctree::
   :hidden:

   /tutorials/nasbench_as_dataset

J-shang's avatar
J-shang committed
138
139
140
141
142
143
.. 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

Yuge Zhang's avatar
Yuge Zhang committed
144
145
 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_customize_thumb.png
     :alt: Customize Basic Pruner
J-shang's avatar
J-shang committed
146

Yuge Zhang's avatar
Yuge Zhang committed
147
     :ref:`sphx_glr_tutorials_pruning_customize.py`
J-shang's avatar
J-shang committed
148
149
150
151
152
153

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
154
155
156
157
158
.. toctree::
   :hidden:

   /tutorials/pruning_customize

159
.. raw:: html
J-shang's avatar
J-shang committed
160

161
162
163
164
    <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

Yuge Zhang's avatar
Yuge Zhang committed
165
166
 .. figure:: /tutorials/images/thumb/sphx_glr_hello_nas_thumb.png
     :alt: Hello, NAS!
167

Yuge Zhang's avatar
Yuge Zhang committed
168
     :ref:`sphx_glr_tutorials_hello_nas.py`
J-shang's avatar
J-shang committed
169

Yuge Zhang's avatar
Yuge Zhang committed
170
171
.. raw:: html

172
173
174
    </div>


Yuge Zhang's avatar
Yuge Zhang committed
175
176
177
178
179
.. toctree::
   :hidden:

   /tutorials/hello_nas

180
181
182
183
184
185
.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="In this tutorial, we demonstrate how to search in the famous model space proposed in `DARTS`_.">

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
186
187
 .. figure:: /tutorials/images/thumb/sphx_glr_darts_thumb.png
     :alt: Searching in DARTS search space
188

Yuge Zhang's avatar
Yuge Zhang committed
189
     :ref:`sphx_glr_tutorials_darts.py`
190
191
192
193
194
195

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
196
197
198
199
200
.. toctree::
   :hidden:

   /tutorials/darts

201
202
203
.. raw:: html

    <div class="sphx-glr-thumbcontainer" tooltip="Workable Pruning Process ------------------------">
Yuge Zhang's avatar
Yuge Zhang committed
204
205
206

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
207
208
 .. figure:: /tutorials/images/thumb/sphx_glr_pruning_bert_glue_thumb.png
     :alt: Pruning Bert on Task MNLI
Yuge Zhang's avatar
Yuge Zhang committed
209

Yuge Zhang's avatar
Yuge Zhang committed
210
     :ref:`sphx_glr_tutorials_pruning_bert_glue.py`
Yuge Zhang's avatar
Yuge Zhang committed
211
212
213
214
215
216
217
218
219

.. raw:: html

    </div>


.. toctree::
   :hidden:

220
   /tutorials/pruning_bert_glue
Yuge Zhang's avatar
Yuge Zhang committed
221
.. raw:: html
222

Yuge Zhang's avatar
Yuge Zhang committed
223
    <div class="sphx-glr-clear"></div>
224
225


liuzhe-lz's avatar
liuzhe-lz committed
226

Yuge Zhang's avatar
Yuge Zhang committed
227
228
.. _sphx_glr_tutorials_hpo_quickstart_pytorch:

liuzhe-lz's avatar
liuzhe-lz committed
229
230
231
232
233



.. raw:: html

liuzhe-lz's avatar
liuzhe-lz committed
234
    <div class="sphx-glr-thumbcontainer" tooltip="The tutorial consists of 4 steps: ">
liuzhe-lz's avatar
liuzhe-lz committed
235
236
237

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
238
239
 .. figure:: /tutorials/hpo_quickstart_pytorch/images/thumb/sphx_glr_main_thumb.png
     :alt: HPO Quickstart with PyTorch
liuzhe-lz's avatar
liuzhe-lz committed
240

Yuge Zhang's avatar
Yuge Zhang committed
241
     :ref:`sphx_glr_tutorials_hpo_quickstart_pytorch_main.py`
liuzhe-lz's avatar
liuzhe-lz committed
242
243
244
245
246
247

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
248
249
250
251
252
.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_pytorch/main

liuzhe-lz's avatar
liuzhe-lz committed
253
254
255
256
257
258
.. 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

Yuge Zhang's avatar
Yuge Zhang committed
259
260
 .. figure:: /tutorials/hpo_quickstart_pytorch/images/thumb/sphx_glr_model_thumb.png
     :alt: Port PyTorch Quickstart to NNI
liuzhe-lz's avatar
liuzhe-lz committed
261

Yuge Zhang's avatar
Yuge Zhang committed
262
     :ref:`sphx_glr_tutorials_hpo_quickstart_pytorch_model.py`
liuzhe-lz's avatar
liuzhe-lz committed
263
264
265
266
267
268

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
269
270
271
272
.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_pytorch/model
liuzhe-lz's avatar
liuzhe-lz committed
273
274
.. raw:: html

Yuge Zhang's avatar
Yuge Zhang committed
275
    <div class="sphx-glr-clear"></div>
liuzhe-lz's avatar
liuzhe-lz committed
276
277
278



Yuge Zhang's avatar
Yuge Zhang committed
279
.. _sphx_glr_tutorials_hpo_quickstart_tensorflow:
liuzhe-lz's avatar
liuzhe-lz committed
280
281
282
283
284
285
286
287
288
289




.. raw:: html

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

.. only:: html

Yuge Zhang's avatar
Yuge Zhang committed
290
291
 .. figure:: /tutorials/hpo_quickstart_tensorflow/images/thumb/sphx_glr_main_thumb.png
     :alt: HPO Quickstart with TensorFlow
liuzhe-lz's avatar
liuzhe-lz committed
292

Yuge Zhang's avatar
Yuge Zhang committed
293
     :ref:`sphx_glr_tutorials_hpo_quickstart_tensorflow_main.py`
liuzhe-lz's avatar
liuzhe-lz committed
294
295
296
297
298
299

.. raw:: html

    </div>


Yuge Zhang's avatar
Yuge Zhang committed
300
301
302
303
304
.. toctree::
   :hidden:

   /tutorials/hpo_quickstart_tensorflow/main

liuzhe-lz's avatar
liuzhe-lz committed
305
306
307
308
309
310
.. 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

Yuge Zhang's avatar
Yuge Zhang committed
311
312
 .. figure:: /tutorials/hpo_quickstart_tensorflow/images/thumb/sphx_glr_model_thumb.png
     :alt: Port TensorFlow Quickstart to NNI
liuzhe-lz's avatar
liuzhe-lz committed
313

Yuge Zhang's avatar
Yuge Zhang committed
314
     :ref:`sphx_glr_tutorials_hpo_quickstart_tensorflow_model.py`
liuzhe-lz's avatar
liuzhe-lz committed
315
316
317
318
319
320
321
322
323

.. raw:: html

    </div>


.. toctree::
   :hidden:

Yuge Zhang's avatar
Yuge Zhang committed
324
325
326
327
   /tutorials/hpo_quickstart_tensorflow/model
.. raw:: html

    <div class="sphx-glr-clear"></div>
liuzhe-lz's avatar
liuzhe-lz committed
328
329
330



331
332
333
334
335
.. only:: html

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

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