yolov5_config.properties 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # refer to https://github.com/pytorch/serve/blob/master/docs/configuration.md
  2. inference_address=http://0.0.0.0:8080
  3. management_address=http://0.0.0.0:8081
  4. metrics_address=http://0.0.0.0:8082
  5. max_request_size=878837280
  6. max_response_size=878837280
  7. install_py_dep_per_model=true
  8. vmargs=-Dlog4j.configurationFile=config_files/log4j2.xml
  9. async_logging=true
  10. default_workers_per_model=12
  11. number_of_gpu=2
  12. batch_size=2
  13. model_snapshot={\
  14. "yolov5": {\
  15. "1.0": {\
  16. "minWorkers": 12,\
  17. "maxWorkers": 12,\
  18. "batchSize"\: 1,\
  19. }\
  20. }
  21. ################### Example #######################
  22. # refer to https://github.com/pytorch/serve/blob/a95ef13eb735efba6168ed485d7ab943f5e65ac3/frontend/server/src/test/resources/snapshots
  23. #Saving snapshot
  24. #Sun Mar 29 04:53:34 UTC 2020
  25. #inference_address=https\://127.0.0.1\:8443
  26. #default_response_timeout=120
  27. #enable_envvars_config=true
  28. #load_models=noop.mar
  29. #private_key_file=src/test/resources/key.pem
  30. #default_workers_per_model=4
  31. #model_store=../archive/src/test/resources/models
  32. #async_logging=true
  33. #number_of_gpu=0
  34. #model_snapshot={\n "name"\: "20200329045334828-startup.cfg",\n "modelCount"\: 1,\n "created"\: 1585457614832,\n "models"\: {\n "noop"\: {\n "1.11"\: {\n "defaultVersion"\: true,\n "marName"\: "noop.mar",\n "minWorkers"\: 4,\n "maxWorkers"\: 4,\n "batchSize"\: 1,\n "maxBatchDelay"\: 100,\n "responseTimeout"\: 120\n }\n }\n }\n}
  35. #tsConfigFile=src/test/resources/config.properties
  36. #max_response_size=2047093252
  37. #max_request_size=2047093252
  38. #unregister_model_timeout=120
  39. #certificate_file=src/test/resources/certs.pem
  40. #management_address=https\://127.0.0.1\:8444
  41. #metrics_address=https\://127.0.0.1\:8445
  42. #workflow_store=../archive/src/test/resources/workflows