The invention discloses a
server-free distributed deep neural network
inference system and method based on computing power network cloud side-end
collaboration, a three-layer computing structure of an edge layer, a
fog layer and a cloud layer is designed, OpenFaaS or
Fission server-free platform hierarchical
inference function deployment is customized, cross-layer communication is completed by adopting a customized KafkaHTTP asynchronous connector developed based on TypeScript / Deno, and the cloud side-end
collaboration based
server-free distributed deep neural network
inference system and the cloud side-end
collaboration based server-free distributed deep neural network inference method based on TypeScript / Deno. The method has the following innovations: 1) a double-function collaborative architecture is proposed for the first time, a funnel function is responsible for Kafka connection, an inference function is responsible for loading DDDN hierarchical calculation by a TensorFlow model, and the
cold start delay is reduced by 40% after separation deployment; 2) dynamic partition optimization is carried out, and a BranchyNet architecture early exit strategy (confidence coefficient gt; a result can be returned when the result is equal to 95%), an ARM / x86 heterogeneous hardware template is supported, and a DDNN model is supported in a resource-constrained device (CPUlt; the length is equal to 500m, and the memory is lt; = 512 MB); 3) a connector technology is innovated, a kafkatohttp connector adopts a non-blocking IO model, a 1000 + req / s high
throughput proxy is realized, and the problem of resource leakage of a native connector of a platform is solved; and 4) an intelligent capacity expansion and contraction engine is adopted, the OpenFaaS uses Prometheus alarm to trigger copy dynamic adjustment (120 copies), the
Fission uses Kubernetes HPA to carry out copy accurate control, and the
delay is optimized by 55%, 318-494 s compared with a KafkaML framework under five
client loads. The
system has
millisecond-level reasoning
delay, can operate on various platforms such as a RaspberryPi-
GPU cluster and the like, and has the characteristics of automatic expansion and contraction and the like.