Skip to content

Commit

Permalink
fix _supports_cache_class
Browse files Browse the repository at this point in the history
  • Loading branch information
fxmarty committed Jun 28, 2024
1 parent f8a00c5 commit 999788f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_onnx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install .[tests,onnxruntime,exporters-tf]
pip install .[tests,onnxruntime,exporters]
- name: Test with unittest
working-directory: tests
run: |
Expand Down
1 change: 1 addition & 0 deletions optimum/onnxruntime/modeling_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ class ORTModelForCausalLM(ORTModel, GenerationMixin):

auto_model_class = AutoModelForCausalLM
main_input_name = "input_ids"
_supports_cache_class = False

def __init__(
self,
Expand Down
1 change: 1 addition & 0 deletions optimum/onnxruntime/modeling_seq2seq.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ class ORTModelForConditionalGeneration(ORTModel, ABC):

# Used in from_transformers to export model to onnxORTEncoder
base_model_prefix = "onnx_model"
_supports_cache_class = False

def __init__(
self,
Expand Down

0 comments on commit 999788f

Please sign in to comment.