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

Tensor Parallelism Training and Inference #2445

Merged
merged 8 commits into from
Jul 22, 2023
Merged

Conversation

vince62s
Copy link
Member

@vince62s vince62s commented Jul 19, 2023

Goal is to use torch.distributed and split Modules when possible (along Columns or Rows) so that bigger models can be split across multiple GPU.
New option: parallel_mode = "data_parallel" by default, and "tensor_parallel" to activate tensor parallelism.

@vince62s vince62s changed the title [WIP] Tensor Parralelism Training and Inference [WIP] Tensor Parallelism Training and Inference Jul 19, 2023
eval_llm/MMLU/run_mmlu_opennmt.py Show resolved Hide resolved
onmt/model_builder.py Outdated Show resolved Hide resolved
onmt/models/model.py Show resolved Hide resolved
onmt/modules/multi_headed_attn.py Show resolved Hide resolved
onmt/utils/distributed.py Outdated Show resolved Hide resolved
@vince62s vince62s changed the title [WIP] Tensor Parallelism Training and Inference Tensor Parallelism Training and Inference Jul 19, 2023
@vince62s vince62s merged commit 4958bb1 into OpenNMT:master Jul 22, 2023
@vince62s vince62s deleted the tp branch July 26, 2023 15:20
@@ -7,13 +7,14 @@
import time
import pandas as pd
from onmt.utils.logging import init_logger
from onmt.utils.distributed import MPInference
from onmt.inference_engine import InferenceEngine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we miss the new inference_engine file in this commit 🙃

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

Successfully merging this pull request may close these issues.

2 participants