config_gpubox.yaml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. # workspace
  15. #workspace: "models/rank/dnn"
  16. runner:
  17. train_data_dir: "data/sample_data/train"
  18. train_reader_path: "criteo_reader" # importlib format
  19. use_gpu: True
  20. use_auc: True
  21. train_batch_size: 32
  22. epochs: 3
  23. print_interval: 10
  24. model_save_path: "output_model_dnn_queue"
  25. sync_mode: "gpubox"
  26. thread_num: 30
  27. reader_type: "InmemoryDataset" # DataLoader / QueueDataset / RecDataset / InmemoryDataset
  28. pipe_command: "python models/rank/dnn/queuedataset_reader.py"
  29. dataset_debug: False
  30. split_file_list: False
  31. infer_batch_size: 2
  32. infer_reader_path: "criteo_reader" # importlib format
  33. test_data_dir: "data/sample_data/train"
  34. infer_load_path: "output_model_dnn_queue"
  35. infer_start_epoch: 0
  36. infer_end_epoch: 3
  37. # hyper parameters of user-defined network
  38. hyper_parameters:
  39. # optimizer config
  40. optimizer:
  41. class: Adam
  42. learning_rate: 0.001
  43. strategy: async
  44. # user-defined <key, value> pairs
  45. sparse_inputs_slots: 27
  46. sparse_feature_number: 1024
  47. sparse_feature_dim: 9
  48. dense_input_dim: 13
  49. fc_sizes: [512, 256, 128, 32]
  50. distributed_embedding: 0