Importing `transformers.pipelines` fails with kernels v0.15: kernels now requires `version` or `revision`
Author: jshn9515
Pull request: no
Labels: name: bug

### System Info

Transformers version: 5.10.0.dev0
Python version: 3.14.5
Platform: Windows-11-10.0.26200-SP0
Machine: x86_64

### Who can help?

@MekkCyber @drbh

### Information

- [ ] The official example scripts
- [x] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [x] My own task or dataset (give details below)

### Reproduction

Importing `transformers.pipelines` fails when `kernels` v0.15.1 is installed.

It looks like this is caused by a recent change in `kernels`: specifying either a kernel version or an explicit revision is now required for Hub-backed `LayerRepository` / `FuncRepository` entries.

According to the `kernels` [migration guide](https://github.com/huggingface/kernels/releases/tag/v0.15.1), pulling kernels from a repository without specifying a version was deprecated in `kernels` 0.12 and became an error in `kernels` 0.15.

```python
>>> import transformers.pipelines
Traceback (most recent call last):
  File "<python-input-1>", line 1, in <module>
    import transformers.pipelines
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\transformers\pipelines\__init__.py", line 27, in <module>
    from ..image_processing_utils import BaseImageProcessor
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\transformers\image_processing_utils.py", line 34, in <module>
    from .processing_utils import ImagesKwargs, Unpack
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\transformers\processing_utils.py", line 66, in <module>
    from .utils.type_validators import (
    ...<9 lines>...
    )
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\transformers\utils\type_validators.py", line 19, in <module>
    from ..activations import ACT2FN
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\transformers\activations.py", line 22, in <module>
    from .integrations.hub_kernels import use_kernel_forward_from_hub
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\transformers\integrations\hub_kernels.py", line 89, in <module>
    "cuda": LayerRepository(
            ~~~~~~~~~~~~~~~^
        repo_id="kernels-community/deformable-detr",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        layer_name="MultiScaleDeformableAttention",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "D:\Programs\Miniforge3\envs\py314\Lib\site-packages\kernels\layer\layer.py", line 76, in __init__
    raise ValueError("Either a revision or a version must be specified.")
ValueError: Either a revision or a version must be specified.
```

### Expected behavior

`import transformers.pipelines` should succeed.

Comments:
thx for reporting ! to clarify, the underlying issue is that `transformers.pipelines` can't be imported at all (independently of `evaluate`)

it fails because of

```python
import transformers.integrations.hub_kernels
```

which doesn't work with the latest version of kernels

```
  File "/Users/quentinlhoest/hf/transformers/src/transformers/integrations/hub_kernels.py", line 89, in <module>
    "cuda": LayerRepository(
            ^^^^^^^^^^^^^^^^
  File "/Users/quentinlhoest/.pyenv/versions/transformers/lib/python3.12/site-packages/kernels/layer/layer.py", line 76, in __init__
    raise ValueError("Either a revision or a version must be specified.")
ValueError: Either a revision or a version must be specified.
```

Hey! I dug into this and `setup.py` for `transformers` already specifies `kernels>=0.12.0,<0.13`. The bug is caused by installing an incompatible version. We'll update `transformers` for the newer versions soon enough, but this failure is expected right now!

I believe this was fixed in https://github.com/huggingface/transformers/pull/46039 but didn't see it linked (also it hasn't gone out yet)