This PR causes Transformers to error out when a model is using Tensorflow and the environment does not provide `torch` in any way transformers/src/transformers/pipelines/base.py: ``` if torch.distributed.is_initialized(): ``` [Source](https://github.com/huggingface/transformers/blame/530322ccb6d109ba1383e852b17729a2185d816b/src/transformers/pipelines/base.py#L984) _Originally posted by @radoslav-dimitrov-indeavr in https://github.com/huggingface/transformers/issues/37307#issuecomment-2786494331_