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
4362ee29
"train_cell.py" did not exist on "bce4d8a15307ecb92e3121d3ba6857a856ef2e0f"
Unverified
Commit
4362ee29
authored
Aug 30, 2021
by
Patrick von Platen
Committed by
GitHub
Aug 30, 2021
Browse files
correct (#13304)
parent
4046e66e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/test_modeling_rag.py
tests/test_modeling_rag.py
+3
-0
No files found.
tests/test_modeling_rag.py
View file @
4362ee29
...
@@ -988,6 +988,9 @@ class RagModelIntegrationTests(unittest.TestCase):
...
@@ -988,6 +988,9 @@ class RagModelIntegrationTests(unittest.TestCase):
torch_device
torch_device
)
)
if
torch_device
==
"cuda"
:
rag_token
.
half
()
input_dict
=
tokenizer
(
input_dict
=
tokenizer
(
self
.
test_data_questions
,
self
.
test_data_questions
,
return_tensors
=
"pt"
,
return_tensors
=
"pt"
,
...
...
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