config_ps.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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: "data/train"
  16. train_reader_path: "bq_reader_train" # importlib format
  17. train_batch_size: 8
  18. model_save_path: "output_model_dssm"
  19. reader_type: "QueueDataset" # DataLoader / QueueDataset / RecDataset
  20. pipe_command: "python bq_reader_train_ps.py"
  21. thread_num: 1
  22. sync_mode: "async"
  23. use_gpu: False
  24. epochs: 100
  25. print_interval: 1
  26. test_data_dir: "data/test"
  27. infer_reader_path: "bq_reader_infer" # importlib format
  28. infer_batch_size: 1
  29. infer_load_path: "output_model_dssm"
  30. infer_start_epoch: 0
  31. infer_end_epoch: 1
  32. infer_reader_type: "QueueDataset"
  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. is_infer: True
  41. slice_end: 8
  42. fc_sizes: [300, 300, 128]
  43. fc_acts: ['relu', 'relu', 'relu']