Skip to content

Commit

Permalink
fix(granite): Add MIN_TORCH_VERSION for recently fixed torch bug
Browse files Browse the repository at this point in the history
huggingface#2043 (comment)

Branch: OnnxGranite

Signed-off-by: Gabe Goodhart <[email protected]>
  • Loading branch information
gabe-l-hart committed Oct 22, 2024
1 parent 5925174 commit 186848a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optimum/exporters/onnx/model_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ class GemmaOnnxConfig(LlamaOnnxConfig):

class GraniteOnnxConfig(LlamaOnnxConfig):
MIN_TRANSFORMERS_VERSION = version.parse("4.45.0")
MIN_TORCH_VERSION = version.parse("2.5.0")


class PhiOnnxConfig(TextDecoderWithPositionIdsOnnxConfig):
Expand Down

0 comments on commit 186848a

Please sign in to comment.