Replace "Masked" with "Causal" in TF CLM example (#14014)

This commit is contained in:
Christopher Akiki 2021-10-21 17:19:30 +02:00 committed by GitHub
parent 3187228206
commit f9c16b02e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 mlm task. Pointers for this are left as comments.
# You can also adapt this script on your own clm task. Pointers for this are left as comments.
# region Imports
import logging