[ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
[X] My own task or dataset (give details below)
Reproduction (minimal, reproducible, runnable)
from optimum.bettertransformer import BetterTransformer; from transformers import HubertModel;
model = HubertModel.from_pretrained("team-lucid/hubert-large-korean").cuda(); model = BetterTransformer.transform(model);
Traceback (most recent call last):
File "", line 1, in
File "/opt/conda/lib/python3.10/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/opt/conda/lib/python3.10/site-packages/optimum/bettertransformer/transformation.py", line 266, in transform
set_last_layer(model_fast)
File "/opt/conda/lib/python3.10/site-packages/optimum/bettertransformer/transformation.py", line 166, in set_last_layer
raise Exception(
Exception: The transformation of the model HubertModel to BetterTransformer failed while it should not. Please fill a bug report or open a PR to support this model at https://github.com/huggingface/optimum/
Expected behavior
HubertModel is supported, but it is not transformed properly
System Info
Who can help?
@younesbelkada
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction (minimal, reproducible, runnable)
Expected behavior
HubertModel is supported, but it is not transformed properly