Smart Qos-Aware Resource Management For Edge Intelligence Systems