model_avg and model_w