transformers
89310e24 - Skip flash tests that fall back to a hub kernel when kernels is missing (#49129)

Commit
68 days ago
Skip flash tests that fall back to a hub kernel when kernels is missing (#49129) * Skip flash tests that fall back to a hub kernel when kernels is missing Models listing `_compatible_flash_implementations` auto-correct a requested flash flavor (e.g. `flash_attention_2`) to one of those implementations, which requires the `kernels` library. Skip the affected common flash tests when it is not installed instead of failing with an ImportError / KeyError. * Skip flash tests for models that do not list the requested implementation * Keep the existing comment in test_modeling_common * Retrigger CI
Parents
Loading