def __getattr__(self, key: str):
        """Forward missing attributes to the wrapped module."""
        try:
            return super().__getattr__(key)
        except AttributeError:
            if 'base_model' in dir(self):
                return getattr(self.base_model, key)
            raise
Forward missing attributes to the wrapped module.
swift/tuners/base.py