Skip to content

Commit

Permalink
fix seq2seq
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Jul 1, 2024
1 parent fba9586 commit a26589b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions optimum/onnxruntime/modeling_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,9 @@ class ORTModelForConditionalGeneration(ORTModel, ABC):
# Used in from_transformers to export model to onnxORTEncoder
base_model_prefix = "onnx_model"

_supports_cache_class = False
_supports_static_cache = False

def __init__(
self,
encoder_session: ort.InferenceSession,
Expand Down Expand Up @@ -1142,9 +1145,6 @@ class ORTModelForSeq2SeqLM(ORTModelForConditionalGeneration, GenerationMixin):
auto_model_class = AutoModelForSeq2SeqLM
main_input_name = "input_ids"

_supports_cache_class = False
_supports_static_cache = False

def __init__(
self,
encoder_session: ort.InferenceSession,
Expand Down

0 comments on commit a26589b

Please sign in to comment.