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
eec9c8bb
Unverified
Commit
eec9c8bb
authored
Dec 21, 2021
by
Mishig Davaadorj
Committed by
GitHub
Dec 21, 2021
Browse files
Fix FLAX_MULTIPLE_CHOICE_SAMPLE typo (#14871)
parent
e51c7b58
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/transformers/file_utils.py
src/transformers/file_utils.py
+2
-1
No files found.
src/transformers/file_utils.py
View file @
eec9c8bb
...
...
@@ -1491,7 +1491,8 @@ FLAX_MULTIPLE_CHOICE_SAMPLE = r"""
>>> encoding = tokenizer([prompt, prompt], [choice0, choice1], return_tensors='jax', padding=True)
>>> outputs = model(**{{k: v[None, :] for k,v in encoding.items()}})
>>> logits = outputs.logits ```
>>> logits = outputs.logits
```
"""
FLAX_CAUSAL_LM_SAMPLE
=
r
"""
...
...
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