config_ps_hdfs.yaml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. runner:
  15. train_data_dir: "/dyp"
  16. train_reader_path: "bq_reader_train" # importlib format
  17. train_batch_size: 8
  18. model_save_path: "output_model_dssm"
  19. split_file_list: true
  20. reader_type: "QueueDataset" # DataLoader / QueueDataset / RecDataset
  21. pipe_command: "python bq_reader_train_ps.py"
  22. thread_num: 1
  23. sync_mode: "async"
  24. use_gpu: False
  25. epochs: 1
  26. print_interval: 1
  27. test_data_dir: "data/test"
  28. infer_reader_path: "bq_reader_infer" # importlib format
  29. infer_batch_size: 1
  30. infer_load_path: "output_model_dssm"
  31. infer_start_epoch: 0
  32. infer_end_epoch: 1
  33. hyper_parameters:
  34. optimizer:
  35. class: adam
  36. learning_rate: 0.001
  37. strategy: sync
  38. trigram_d: 2900
  39. neg_num: 1
  40. slice_end: 8
  41. fc_sizes: [300, 300, 128]
  42. fc_acts: ['relu', 'relu', 'relu']