auto-detect device when no device is passed to pipeline (#31398)
* fix device
* Update src/transformers/pipelines/base.py
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>
* bug fix
* add warning
---------
Co-authored-by: amyeroberts <22614925+amyeroberts@users.noreply.github.com>