# Global Enviroment Settings # # trainer config ------ learner_type: "cpu" optimizer_type: "adam" lr: 0.00005 batch_size: 2 CPU_NUM: 10 epoch: 20 log_per_step: 1 save_per_step: 100 output_path: "./output" ckpt_path: "./ernie_base_ckpt" # data config ------ input_data: "./data.txt" graph_path: "./workdir" sample_workers: 1 use_pyreader: true input_type: "text" # model config ------ samples: [10] model_type: "ErnieSageModelV3" max_seqlen: 40 num_layers: 1 hidden_size: 128 final_fc: true final_l2_norm: true loss_type: "hinge" margin: 0.3 # infer config ------ infer_model: "./output/last" infer_batch_size: 128 # ernie config ------ encoding: "utf8" ernie_vocab_file: "./vocab.txt" ernie_config: attention_probs_dropout_prob: 0.1 hidden_act: "relu" hidden_dropout_prob: 0.1 hidden_size: 768 initializer_range: 0.02 max_position_embeddings: 513 num_attention_heads: 12 num_hidden_layers: 12 sent_type_vocab_size: 4 task_type_vocab_size: 3 vocab_size: 18000 use_task_id: false use_fp16: false