-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NeMo Megatron] use worker processes for data preprocessing (#3665)
* nvtx ranges Signed-off-by: Masaki Kozuki <[email protected]> * non_blocking Signed-off-by: Masaki Kozuki <[email protected]> * more workload on dataset, local global batch batchsampler Signed-off-by: Masaki Kozuki <[email protected]> * fix typo Signed-off-by: Masaki Kozuki <[email protected]> * remove nvtx ranges Signed-off-by: Masaki Kozuki <[email protected]> * cosmetic Signed-off-by: Masaki Kozuki <[email protected]> * pass tokenizer Signed-off-by: Masaki Kozuki <[email protected]> * fix type Signed-off-by: Masaki Kozuki <[email protected]> * style fix Signed-off-by: Masaki Kozuki <[email protected]> * remove GlobalBatchDataFetcher and NLPDataConnector Signed-off-by: Masaki Kozuki <[email protected]> * `_create_ltor_masks_and_position_ids` docstring Signed-off-by: Masaki Kozuki <[email protected]> * fix `BatchSampler`'s dunder len method Originally (meaning Megatron's MegatronPretrainingSampler and MegatronPretrainingRandomSampler), `__len__` is implemented as follows: ```python def __len__(self): return (self.total_samples - self.consumed_samples - 1) // self.micro_batch_times_data_parallel_size + 1 ``` The counterpart of `self.micro_batch_times_data_parallel_size` in MegatronPretraining(|Random)BatchSampler is `num_micro_batch_times_micro_batch_size_times_data_parallel_size`. Signed-off-by: Masaki Kozuki <[email protected]> * remove unused imports Signed-off-by: Masaki Kozuki <[email protected]> * rename and license Signed-off-by: Masaki Kozuki <[email protected]> * isort
- Loading branch information
Showing
6 changed files
with
331 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.