Improving Large Models with Small models: Lower Costs and Better Performance