"run_lm_finetuning.py" was replaced?
Hello to all,Looking at tutorials and examples I see that many do fine tuning withrun_lm_finetuning.py. However when I install the latest version of transformers this file doesn’t exist, I haven’t found it in the github repository either.So my question is if this file was discontinued, and, if so, what is the actual.pyfile that should be used for fine tuning of a language model?
2020-09-04T17:14:37Z
Hi,It’s now here:https://github.com/huggingface/transformers/tree/master/examples/language-modeling
2020-09-04T22:01:23Z
Great!!! Thanks a lot for your helpAny reason for the change?
2020-09-07T06:52:07Z
I think it’s because the script can also be used for training from scratch so having “fintetuning” in the name made it not very clear for many.
2020-09-08T18:28:40Z
Thanks a lot for you guidance
2021-06-01T16:21:02Z
The link is outdated.This is the new link:github.comhuggingface/transformers/blob/27c1b656cca75efa0cc414d3bf4e6aacf24829de/examples/run_lm_finetuning.py# coding=utf-8
# Copyright 2018 The Google AI Language Team Authors and The HuggingFace Inc. team.
# Copyright (c) 2018, NVIDIA CORPORATION.  All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""
Fine-tuning the library models for language modeling on a text file (GPT, GPT-2, BERT, RoBERTa).
GPT and GPT-2 are fine-tuned using a causal language modeling (CLM) loss while BERT and RoBERTa are fine-tuned
using a masked language modeling (MLM) loss.
"""This file has been truncated.show original