Julien Simon commited on
Commit
13e9bc7
1 Parent(s): 8d61650

Upload quantize.yml

Browse files
Files changed (1) hide show
  1. quantize.yml +33 -0
quantize.yml ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Copyright (c) 2021 Intel Corporation
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ version: 1.0
17
+
18
+ model: # mandatory.
19
+ name: bert_prune
20
+ framework: pytorch # mandatory. possible values are pytorch and pytorch_fx.
21
+
22
+ device: cpu
23
+
24
+ quantization: # optional.
25
+ approach: post_training_dynamic_quant
26
+
27
+ tuning:
28
+ accuracy_criterion:
29
+ relative: 0.03 # optional. default value is relative, other value is absolute. this example allows relative accuracy loss: 3%.
30
+ exit_policy:
31
+ timeout: 0 # optional. tuning timeout (seconds). default value is 0 which means early stop. combine with max_trials field to decide when to exit.
32
+ max_trials: 30
33
+ random_seed: 9527 # optional. random seed for deterministic tuning.