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
14d989a9
Unverified
Commit
14d989a9
authored
Jan 30, 2023
by
Clémentine Fourrier
Committed by
GitHub
Jan 30, 2023
Browse files
Fixes path for Graphormer checkpoint (#21367)
[FIX] path for Graphormer checkpoint
parent
42b60f8b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/transformers/models/graphormer/configuration_graphormer.py
...ransformers/models/graphormer/configuration_graphormer.py
+1
-1
tests/models/graphormer/test_modeling_graphormer.py
tests/models/graphormer/test_modeling_graphormer.py
+1
-1
No files found.
src/transformers/models/graphormer/configuration_graphormer.py
View file @
14d989a9
...
@@ -22,7 +22,7 @@ logger = logging.get_logger(__name__)
...
@@ -22,7 +22,7 @@ logger = logging.get_logger(__name__)
GRAPHORMER_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
GRAPHORMER_PRETRAINED_CONFIG_ARCHIVE_MAP
=
{
# pcqm4mv1 now deprecated
# pcqm4mv1 now deprecated
"graphormer-base"
:
"https://huggingface.co/graphormer-base-pcqm4mv2/resolve/main/config.json"
,
"graphormer-base"
:
"https://huggingface.co/
clefourrier/
graphormer-base-pcqm4mv2/resolve/main/config.json"
,
# See all Graphormer models at https://huggingface.co/models?filter=graphormer
# See all Graphormer models at https://huggingface.co/models?filter=graphormer
}
}
...
...
tests/models/graphormer/test_modeling_graphormer.py
View file @
14d989a9
...
@@ -380,7 +380,7 @@ class GraphormerModelTest(ModelTesterMixin, unittest.TestCase):
...
@@ -380,7 +380,7 @@ class GraphormerModelTest(ModelTesterMixin, unittest.TestCase):
class
GraphormerModelIntegrationTest
(
unittest
.
TestCase
):
class
GraphormerModelIntegrationTest
(
unittest
.
TestCase
):
@
slow
@
slow
def
test_inference_graph_classification
(
self
):
def
test_inference_graph_classification
(
self
):
model
=
GraphormerForGraphClassification
.
from_pretrained
(
"graphormer-base-pcqm4mv2"
)
model
=
GraphormerForGraphClassification
.
from_pretrained
(
"
clefourrier/
graphormer-base-pcqm4mv2"
)
# Actual real graph data from the MUTAG dataset
# Actual real graph data from the MUTAG dataset
# fmt: off
# fmt: off
...
...
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