qat_dis.yaml 765 字节
Newer Older
1 2
Global:
  input_name: x
C
Chang Xu 已提交
3
  model_dir: save_quant_inception
4 5 6
  model_filename: inference.pdmodel
  params_filename: inference.pdiparams
  batch_size: 32
C
Chang Xu 已提交
7 8 9
  resize_size: 320
  img_size: 299
  data_dir: /workspace/dataset/ILSVRC2012
10 11
  
Distillation:
C
Chang Xu 已提交
12
  alpha: 1.0
13 14 15 16 17
  loss: l2
  node:
  - softmax_1.tmp_0
Quantization:
  is_full_quantize: false
C
Chang Xu 已提交
18
  activation_quantize_type: moving_average_abs_max
19 20 21 22 23 24 25
  weight_quantize_type: channel_wise_abs_max
  not_quant_pattern:
  - skip_quant
  quantize_op_types:
  - conv2d
  - depthwise_conv2d
  weight_bits: 8
C
Chang Xu 已提交
26
  
27 28 29 30 31 32 33 34 35 36 37
TrainConfig:
  epochs: 1
  eval_iter: 500
  learning_rate: 
    type: CosineAnnealingDecay 
    learning_rate: 0.015
  optimizer_builder:
    optimizer:
      type: Momentum
    weight_decay: 0.00002
  origin_metric: 0.7914