async def unload(
        self,
    ) -> None:
        """
        Unloads the model on the remote device asynchronously.
        """

        if self._state == _RemoteMLModelService.State.Unloaded:
            return
        params = {
            "modelID": self._model_id,
            "computeUnits": self._compute_units.name,
        }

        (result, _) = await self._service.call_method(
            name="MLModelService.Unload",
            params=params,
        )

        self._validate_result(result=result)
        self._state = _RemoteMLModelService.State.Unloaded

        Unloads the model on the remote device asynchronously.
        
coremltools/models/ml_program/experimental/remote_device.py