Generate: starcoder 🤜 🤛 assisted generation (#23182)

* starcoder has joined the chat

* indexing that works for all
This commit is contained in:
Joao Gante
2023-05-08 10:45:40 +01:00
committed by GitHub
parent dbc12269ed
commit bbfb9fc22b
2 changed files with 14 additions and 4 deletions

View File

@@ -1473,7 +1473,7 @@ class GenerationTesterMixin:
# may fix in the future: the following models fail with assisted decoding, and need model-specific fixes
if any(
model_name in model_class.__name__.lower()
for model_name in ["bigbirdpegasus", "gptbigcode", "led", "mega", "speech2text", "git", "prophetnet"]
for model_name in ["bigbirdpegasus", "led", "mega", "speech2text", "git", "prophetnet"]
):
return
@@ -1529,7 +1529,7 @@ class GenerationTesterMixin:
# may fix in the future: the following models fail with assisted decoding, and need model-specific fixes
if any(
model_name in model_class.__name__.lower()
for model_name in ["bigbirdpegasus", "gptbigcode", "led", "mega", "speech2text", "git", "prophetnet"]
for model_name in ["bigbirdpegasus", "led", "mega", "speech2text", "git", "prophetnet"]
):
return