1. A method of generating a model for use with automatic speech recognition, the method comprising: receiving, as part of a request to generate a model, input data and a seed model; receiving a cost function indicating accuracy and at least one of speed and memory usage; processing the input data based on the seed model and based on parameters that optimize the cost function to yield an updated model; and outputting the updated model.