-
Notifications
You must be signed in to change notification settings - Fork 28.6k
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
tensor parallel training bug #36296
Comments
@iMountTai for now we will need to set |
Thank you very much for your prompt reply. The issue was resolved after setting
Additionally, does the current TP training support the following traning:
|
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
System Info
transformers:4.45.dev0
python:3.11
linux
Who can help?
#34194
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
torchrun --nnodes 1 --nproc_per_node 2 --master_port 27654 run_clm.py
--model_name_or_path TinyLlama/TinyLlama-1.1B-Chat-v1.0
--dataset_name wikitext
--dataset_config_name wikitext-2-raw-v1
--per_device_train_batch_size 1
--per_device_eval_batch_size 1
--do_train
--do_eval
--tp_size 2
--output_dir /tmp/test-clm
unexpected behavior:
runtimeerror: aten._foreach_norm_Scalar: got mixed torch.tensor and DTensor, need to convert all torch.tensor to DTensor before calling distributed operators.
Expected behavior
autoTP training
The text was updated successfully, but these errors were encountered: