# "run\_lm\_finetuning.py" was replaced?

**URL:** <https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992>\
**Category:** Beginners\
**Created:** [September 4, 2020, 2:55pm UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992 "2020-09-04T14:55:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kintaro](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kintaro](https://discuss.huggingface.co/u/kintaro)\
**Post date:** [September 4, 2020, 2:55pm UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992/1 "2020-09-04T14:55:32Z")

</div>

Hello to all,

Looking at tutorials and examples I see that many do fine tuning with `run_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 `.py` file that should be used for fine tuning of a language model?**

---

<div class="post-metadata">

**Author:** ![thomwolf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thomwolf/32/2198_2.png) [@thomwolf](https://discuss.huggingface.co/u/thomwolf)\
**Post date:** [September 4, 2020, 5:14pm UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992/2 "2020-09-04T17:14:37Z")

</div>

Hi,  
It’s now here: [https://github.com/huggingface/transformers/tree/master/examples/language-modeling](https://github.com/huggingface/transformers/tree/master/examples/language-modeling)

---

<div class="post-metadata">

**Author:** ![kintaro](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kintaro](https://discuss.huggingface.co/u/kintaro)\
**Post date:** [September 4, 2020, 10:01pm UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992/3 "2020-09-04T22:01:23Z")

</div>

Great!!! Thanks a lot for your help

Any reason for the change?

---

<div class="post-metadata">

**Author:** ![thomwolf](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/thomwolf/32/2198_2.png) [@thomwolf](https://discuss.huggingface.co/u/thomwolf)\
**Post date:** [September 7, 2020, 6:52am UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992/4 "2020-09-07T06:52:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kintaro](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@kintaro](https://discuss.huggingface.co/u/kintaro)\
**Post date:** [September 8, 2020, 6:28pm UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992/5 "2020-09-08T18:28:40Z")

</div>

Thanks a lot for you guidance

---

<div class="post-metadata">

**Author:** ![krishnagarg09](https://avatars.discourse-cdn.com/v4/letter/k/edb3f5/32.png) [@krishnagarg09](https://discuss.huggingface.co/u/krishnagarg09)\
**Post date:** [June 1, 2021, 4:21pm UTC](https://discuss.huggingface.co/t/run-lm-finetuning-py-was-replaced/992/6 "2021-06-01T16:21:02Z")

</div>

The link is outdated.

This is the new link:

> <https://github.com/huggingface/transformers/blob/27c1b656cca75efa0cc414d3bf4e6aacf24829de/examples/run_lm_finetuning.py>
