huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
132.07k stars 26.31k forks source link

Unable to run generation tests for Mamba & Jamba models #30828

Closed amyeroberts closed 2 months ago

amyeroberts commented 4 months ago

System Info

Who can help?

@gante @zucchini-nlp

Information

Tasks

Reproduction

See #30826

test_assisted_decoding_matches_greedy_search_0_random is forcibly skipped for Jamba because it's necessary to unset _supports_cache_class to resolve failing tests on main.

test_assisted_decoding_matches_greedy_search_0_random appears to pass for Mamba, but this is because all_generative_models is not set in the model tester

Expected behavior

Either test_assisted_decoding_matches_greedy_search_0_random can be run for both models with _supports_cache_class unset or it's not necessary to have _supports_cache_class unset for Jamba

zucchini-nlp commented 4 months ago

Might be related to #30800