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
54e55b52
"docs/source/en/model_doc/starcoder2.md" did not exist on "c236a621729edb92dbb3e1dedd448be76cb82211"
Unverified
Commit
54e55b52
authored
Mar 05, 2021
by
Nicolas Patry
Committed by
GitHub
Mar 05, 2021
Browse files
Fixing conversation test for torch 1.8 (#10545)
parent
dc9aaa38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_pipelines_conversational.py
tests/test_pipelines_conversational.py
+2
-2
No files found.
tests/test_pipelines_conversational.py
View file @
54e55b52
...
@@ -53,9 +53,9 @@ class SimpleConversationPipelineTests(unittest.TestCase):
...
@@ -53,9 +53,9 @@ class SimpleConversationPipelineTests(unittest.TestCase):
model
=
GPT2LMHeadModel
(
config
)
model
=
GPT2LMHeadModel
(
config
)
# Force model output to be L
# Force model output to be L
V
,
D
=
model
.
lm_head
.
weight
.
shape
V
,
D
=
model
.
lm_head
.
weight
.
shape
bias
=
torch
.
zeros
(
V
,
requires_grad
=
True
)
bias
=
torch
.
zeros
(
V
)
weight
=
torch
.
zeros
((
V
,
D
),
requires_grad
=
True
)
bias
[
76
]
=
1
bias
[
76
]
=
1
weight
=
torch
.
zeros
((
V
,
D
),
requires_grad
=
True
)
model
.
lm_head
.
bias
=
torch
.
nn
.
Parameter
(
bias
)
model
.
lm_head
.
bias
=
torch
.
nn
.
Parameter
(
bias
)
model
.
lm_head
.
weight
=
torch
.
nn
.
Parameter
(
weight
)
model
.
lm_head
.
weight
=
torch
.
nn
.
Parameter
(
weight
)
...
...
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