Update tiny model summary file (#27388)
* update * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -242,7 +242,12 @@ class TextGenerationPipelineTests(unittest.TestCase):
|
||||
# We don't care about infinite range models.
|
||||
# They already work.
|
||||
# Skip this test for XGLM, since it uses sinusoidal positional embeddings which are resized on-the-fly.
|
||||
EXTRA_MODELS_CAN_HANDLE_LONG_INPUTS = ["RwkvForCausalLM", "XGLMForCausalLM", "GPTNeoXForCausalLM"]
|
||||
EXTRA_MODELS_CAN_HANDLE_LONG_INPUTS = [
|
||||
"RwkvForCausalLM",
|
||||
"XGLMForCausalLM",
|
||||
"GPTNeoXForCausalLM",
|
||||
"FuyuForCausalLM",
|
||||
]
|
||||
if (
|
||||
tokenizer.model_max_length < 10000
|
||||
and text_generator.model.__class__.__name__ not in EXTRA_MODELS_CAN_HANDLE_LONG_INPUTS
|
||||
|
||||
Reference in New Issue
Block a user