Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To run GPT-2, the examples directory is missing from the repository #9

Open
shrutiramesh1988 opened this issue Aug 11, 2023 · 2 comments

Comments

@shrutiramesh1988
Copy link

rm -r /tmp/test-clm; LOCAL_RANK=0,1,2,3; CUDA_VISIBLE_DEVICES=0,1,2,3
python -m torch.distributed.launch --nproc_per_node 4 --use-env examples/pytorch/language-modeling/run_clm.py
--model_name_or_path gpt2 --dataset_name wikitext --dataset_config_name wikitext-2-raw-v1
--do_train --output_dir /tmp/test-clm --per_device_train_batch_size 4 --fp16 --max_steps 200

The examples directory and the benchmarking code is missing for BERT. Only README is present currently.

@chenyangh
Copy link
Collaborator

chenyangh commented Aug 11, 2023

Hi. As pointed out in the README, the code is obtained by git clone [email protected]:huggingface/transformers.git. Sorry if I didn't make it very clear.

@shrutiramesh1988
Copy link
Author

Thank you for the clarification. It ran successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants