ion[str, os.PathLike] safe_serialization: bool = True variant: typing.Optional[str] = None push_to_hub: bool = False **kwargs  )   Parameters   save_directory (str or os.PathLike) —
Directory to save a pipeline to. Will be created if it doesn’t exist.   safe_serialization (bool, optional, defaults to True) —
Whether to save the model using safetensors or the traditional PyTorch way with pickle.   variant (str, optional) —
If specified, weights 