# How do I get the model file after training is completed?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-get-the-model-file-after-training-is-completed%2F69178%3E%5C
**Category:** 🤗Transformers\
**Created:** [January 15, 2024, 8:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-get-the-model-file-after-training-is-completed%2F69178 "2024-01-15T08:30:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeleMike](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/delemike/32/26732_2.png) [@DeleMike](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FDeleMike)%5C
**Post date:** [January 15, 2024, 8:30am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fhow-do-i-get-the-model-file-after-training-is-completed%2F69178%2F1 "2024-01-15T08:30:55Z")

</div>

Hello, I cannot find the model output after training. What flag must I pass to ensure I have the output in this directory?

See my training arguments:

```bash
CUDA_VISIBLE_DEVICES=3 python run_translation.py --model_name_or_path castorini/afriteva_v2_large --do_train --do_eval --source_lang unyo --target_lang dcyo --source_prefix "<unyo2dcyo>: " --train_file /mnt/disk/makindele/data_prep_eng/data_prep_eng/output_data/menyo_train.json --validation_file /mnt/disk/makindele/data_prep_eng/data_prep_eng/output_data/dev.json --test_file /mnt/disk/makindele/data_prep_eng/data_prep_eng/output_data/test.json --output_dir afriteva_v2_large_unyo_dcyo --max_source_length 512 --max_target_length 512 --per_device_train_batch_size=2 --per_device_eval_batch_size=2 --gradient_accumulation_steps=12 --num_train_epochs 3 --overwrite_output_dir --predict_with_generate --save_steps 10000 --num_beams 10 --do_predict

```

What should I do to get it? I need the model file. Below is the output directory’s current state:

 ![screenshot_2024-01-13_at_17.12.52](https://us1.discourse-cdn.com/hellohellohello/original/3X/7/5/7581e0dd5c807d0988969a4dd79246d39be95630.png)
