[tests] Fix SpeechT5 coverage and TPU device selection (#51171)
* fix: IMPORTANT_MODELS named a model directory that does not exist
The list said `speech_t5`, but the directory is `speecht5` in both
`src/transformers/models` and `tests/models`. Both consumers match the
list against directory names -- the important-models push workflow
against changed files, `get_test_reports.py` against test dirs -- so the
entry matched nothing and SpeechT5 has been quietly excluded from both.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix: honour TPU_VISIBLE_DEVICES in the TPU test device count
Until a TPU op has run, torch_tpu counts every chip on the host and ignores
TPU_VISIBLE_DEVICES. The device-count test decorators are evaluated at
collection, before that, so a run restricted to one chip still ran the
multi-device tests and skipped the single-device ones. Read the variable
instead of running an op, which would hold the chips in the asking process.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>