A router choosing between a model on local hardware and a model in a remote datacenter