Support for saving compact models