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
188a8bfc
Unverified
Commit
188a8bfc
authored
May 08, 2023
by
Connor Henderson
Committed by
GitHub
May 08, 2023
Browse files
docs: Fix broken link in 'How to add a model...' (#23216)
fix link
parent
94056b57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
docs/source/en/add_new_model.mdx
docs/source/en/add_new_model.mdx
+1
-1
templates/adding_a_new_model/ADD_NEW_MODEL_PROPOSAL_TEMPLATE.md
...tes/adding_a_new_model/ADD_NEW_MODEL_PROPOSAL_TEMPLATE.md
+1
-1
No files found.
docs/source/en/add_new_model.mdx
View file @
188a8bfc
...
@@ -678,7 +678,7 @@ model.save_pretrained("/path/to/converted/checkpoint/folder")
...
@@ -678,7 +678,7 @@ model.save_pretrained("/path/to/converted/checkpoint/folder")
**
7.
Implement
the
forward
pass
**
**
7.
Implement
the
forward
pass
**
Having
managed
to
correctly
load
the
pretrained
weights
into
the
🤗
Transformers
implementation
,
you
should
now
make
Having
managed
to
correctly
load
the
pretrained
weights
into
the
🤗
Transformers
implementation
,
you
should
now
make
sure
that
the
forward
pass
is
correctly
implemented
.
In
[
Get
familiar
with
the
original
repository
](#
run
-
a
-
pretrained
-
checkpoint
-
using
-
the
-
original
-
repository
),
you
have
already
created
a
script
that
runs
a
forward
sure
that
the
forward
pass
is
correctly
implemented
.
In
[
Get
familiar
with
the
original
repository
](#
34
-
run
-
a
-
pretrained
-
checkpoint
-
using
-
the
-
original
-
repository
),
you
have
already
created
a
script
that
runs
a
forward
pass
of
the
model
using
the
original
repository
.
Now
you
should
write
an
analogous
script
using
the
🤗
Transformers
pass
of
the
model
using
the
original
repository
.
Now
you
should
write
an
analogous
script
using
the
🤗
Transformers
implementation
instead
of
the
original
one
.
It
should
look
as
follows
:
implementation
instead
of
the
original
one
.
It
should
look
as
follows
:
...
...
templates/adding_a_new_model/ADD_NEW_MODEL_PROPOSAL_TEMPLATE.md
View file @
188a8bfc
...
@@ -848,7 +848,7 @@ model.save_pretrained("/path/to/converted/checkpoint/folder")
...
@@ -848,7 +848,7 @@ model.save_pretrained("/path/to/converted/checkpoint/folder")
Having managed to correctly load the pretrained weights into the 🤗
Having managed to correctly load the pretrained weights into the 🤗
Transformers implementation, you should now make sure that the forward
Transformers implementation, you should now make sure that the forward
pass is correctly implemented. In
[
Get familiar with the original
pass is correctly implemented. In
[
Get familiar with the original
repository
](
#run-a-pretrained-checkpoint-using-the-original-repository
)
,
repository
](
#
34-
run-a-pretrained-checkpoint-using-the-original-repository
)
,
you have already created a script that runs a forward pass of the model
you have already created a script that runs a forward pass of the model
using the original repository. Now you should write an analogous script
using the original repository. Now you should write an analogous script
using the 🤗 Transformers implementation instead of the original one. It
using the 🤗 Transformers implementation instead of the original one. It
...
...
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