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
03847ef4
Unverified
Commit
03847ef4
authored
Mar 15, 2024
by
guangwu
Committed by
GitHub
Mar 15, 2024
Browse files
fix: typos (#29653)
Signed-off-by:
guoguangwu
<
guoguangwug@gmail.com
>
parent
174aecd0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
examples/research_projects/jax-projects/wav2vec2/run_wav2vec2_pretrain_flax.py
...jects/jax-projects/wav2vec2/run_wav2vec2_pretrain_flax.py
+1
-1
examples/research_projects/rag-end2end-retriever/lightning_base.py
...research_projects/rag-end2end-retriever/lightning_base.py
+1
-1
No files found.
examples/research_projects/jax-projects/wav2vec2/run_wav2vec2_pretrain_flax.py
View file @
03847ef4
...
@@ -144,7 +144,7 @@ class FlaxDataCollatorForWav2Vec2Pretraining:
...
@@ -144,7 +144,7 @@ class FlaxDataCollatorForWav2Vec2Pretraining:
The Wav2Vec2 model used for pretraining. The data collator needs to have access
The Wav2Vec2 model used for pretraining. The data collator needs to have access
to config and ``_get_feat_extract_output_lengths`` function for correct padding.
to config and ``_get_feat_extract_output_lengths`` function for correct padding.
feature_extractor (:class:`~transformers.Wav2Vec2FeatureExtractor`):
feature_extractor (:class:`~transformers.Wav2Vec2FeatureExtractor`):
The processor used for proc
c
essing the data.
The processor used for processing the data.
padding (:obj:`bool`, :obj:`str` or :class:`~transformers.tokenization_utils_base.PaddingStrategy`, `optional`, defaults to :obj:`True`):
padding (:obj:`bool`, :obj:`str` or :class:`~transformers.tokenization_utils_base.PaddingStrategy`, `optional`, defaults to :obj:`True`):
Select a strategy to pad the returned sequences (according to the model's padding side and padding index)
Select a strategy to pad the returned sequences (according to the model's padding side and padding index)
among:
among:
...
...
examples/research_projects/rag-end2end-retriever/lightning_base.py
View file @
03847ef4
...
@@ -410,5 +410,5 @@ def generic_train(
...
@@ -410,5 +410,5 @@ def generic_train(
trainer
.
fit
(
model
)
trainer
.
fit
(
model
)
else
:
else
:
print
(
"RAG modeling tests with new set functions successfuly executed!"
)
print
(
"RAG modeling tests with new set functions successful
l
y executed!"
)
return
trainer
return
trainer
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