Model environments help configure behavior based on deployment stage (e.g., production vs. staging). You can access the environment details via kwargs in the Model class.
def load(self): if self._environment.get("name") == "production": # Production setup self.setup_sentry() self.setup_logging(level="INFO") self.load_production_weights() else: # Default setup for staging or development deployments self.setup_logging(level="DEBUG") self.load_default_weights()