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
f9c16b02
Unverified
Commit
f9c16b02
authored
Oct 21, 2021
by
Christopher Akiki
Committed by
GitHub
Oct 21, 2021
Browse files
Replace "Masked" with "Causal" in TF CLM example (#14014)
parent
31872282
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
examples/tensorflow/language-modeling/run_clm.py
examples/tensorflow/language-modeling/run_clm.py
+3
-3
No files found.
examples/tensorflow/language-modeling/run_clm.py
View file @
f9c16b02
...
...
@@ -14,13 +14,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Fine-tuning the library models for
masked
language modeling (
BERT, ALBERT, RoBERTa
...)
Fine-tuning the library models for
causal
language modeling (
GPT-2, GPT-Neo
...)
on a text file or a dataset without using HuggingFace Trainer.
Here is the full list of checkpoints on the hub that can be fine-tuned by this script:
https://huggingface.co/models?filter=
masked
-lm
https://huggingface.co/models?filter=
causal
-lm
"""
# You can also adapt this script on your own
m
lm task. Pointers for this are left as comments.
# You can also adapt this script on your own
c
lm task. Pointers for this are left as comments.
# region Imports
import
logging
...
...
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