src/transformers/integrations/integration_utils.py/DVCLiveCallback/__init__
class DVCLiveCallback:    def __init__(
        self,
        live: Optional[Any] = None,
        log_model: Optional[Union[Literal["all"], bool]] = None,
        **kwargs,
    ):
        if not is_dvclive_available():
            raise RuntimeError("DVCLiveCallback requires dvclive to be installed. Run `pip install dvclive`.")
        from dvclive import Live

        self._log_model = log_model

        self._initialized = False
        self.live = None
        if isinstance(live, Live):
            self.live = live
            self._initialized = True
        elif live is not None:
            raise RuntimeError(f"Found class {live.__class__} for live, expected dvclive.Live")