Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
9b80a0bc
Unverified
Commit
9b80a0bc
authored
Sep 15, 2022
by
lewtun
Committed by
GitHub
Sep 15, 2022
Browse files
Pin minimum PyTorch version for BLOOM ONNX export (#19046)
parent
0a42b61e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/transformers/models/bloom/configuration_bloom.py
src/transformers/models/bloom/configuration_bloom.py
+5
-0
No files found.
src/transformers/models/bloom/configuration_bloom.py
View file @
9b80a0bc
...
...
@@ -16,6 +16,8 @@
from
collections
import
OrderedDict
from
typing
import
TYPE_CHECKING
,
Any
,
List
,
Mapping
,
Optional
from
packaging
import
version
from
transformers
import
is_torch_available
...
...
@@ -154,6 +156,9 @@ class BloomConfig(PretrainedConfig):
class
BloomOnnxConfig
(
OnnxConfigWithPast
):
torch_onnx_minimum_version
=
version
.
parse
(
"1.12"
)
def
__init__
(
self
,
config
:
PretrainedConfig
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment