Generate: shorter XLA contrastive search tests (#20354)
This commit is contained in:
@@ -1854,7 +1854,7 @@ class TFModelTesterMixin:
|
|||||||
|
|
||||||
Either the model supports XLA generation and passes the inner test, or it raises an appropriate exception
|
Either the model supports XLA generation and passes the inner test, or it raises an appropriate exception
|
||||||
"""
|
"""
|
||||||
self._test_xla_generate(num_beams=1, num_return_sequences=1, max_new_tokens=64, penalty_alpha=0.5, top_k=4)
|
self._test_xla_generate(num_beams=1, num_return_sequences=1, max_new_tokens=16, penalty_alpha=0.5, top_k=4)
|
||||||
|
|
||||||
@slow
|
@slow
|
||||||
def test_xla_generate_slow(self):
|
def test_xla_generate_slow(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user