# Running run\_mlm.py on command line

**URL:** <https://discuss.huggingface.co/t/running-run-mlm-py-on-command-line/26367>\
**Category:** Beginners\
**Created:** [November 19, 2022, 8:25pm UTC](https://discuss.huggingface.co/t/running-run-mlm-py-on-command-line/26367 "2022-11-19T20:25:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjrr](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jjrr](https://discuss.huggingface.co/u/jjrr)\
**Post date:** [November 19, 2022, 8:25pm UTC](https://discuss.huggingface.co/t/running-run-mlm-py-on-command-line/26367/1 "2022-11-19T20:25:37Z")

</div>

Hi!  
I want to run ru\_mlm.py file. I installed the transformers but got this error.

the code ran on CML :

```auto
python run_mlm.py --model_name_or_path roberta-base --train_file C:/Users/Seyyed Javad Razavi/Desktop/New folder (2)/dataset/posts_text.txt --validation_file C:/Users/Seyyed Javad Razavi/Desktop/New folder (2)/dataset/test.txt --per_device_train_batch_size 4 --per_device_eval_batch_size 4 --do_train --do_eval --output_dir /tmp/test-mlm

```

and the error:

 ![image](https://us1.discourse-cdn.com/hellohellohello/original/2X/7/73d23b95d143ae6097115c03426e718034ed0191.png)
