[Bug] Cannot import C++ compiled "helpers"
State: closed | Pull request: no
Labels: name: bug

name: stale

I had run the the megatron_gpt_pretraining.py file completely success yesterday, by using NeMo v1.11.0 and apex nmv1.11.0, but about 10 hours ago I changed some config to export to .nemo on exp argument, then I met this error. 
```output
Traceback (most recent call last):
		  File "/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/gpt_dataset.py", line 420, in _build_index_mappings
		    from nemo.collections.nlp.data.language_modeling.megatron import helpers
		ImportError: cannot import name 'helpers' from 'nemo.collections.nlp.data.language_modeling.megatron' (/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/__init__.py)
		
		During handling of the above exception, another exception occurred:
		
		Traceback (most recent call last):
		  File "/root/NeMo/examples/nlp/language_modeling/megatron_gpt_pretraining.py", line 89, in main
		    trainer.fit(model)
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/trainer/trainer.py", line 768, in fit
		    self._call_and_handle_interrupt(
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/trainer/trainer.py", line 719, in _call_and_handle_interrupt
		    return self.strategy.launcher.launch(trainer_fn, *args, trainer=self, **kwargs)
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/strategies/launchers/subprocess_script.py", line 93, in launch
		    return function(*args, **kwargs)
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/trainer/trainer.py", line 809, in _fit_impl
		    results = self._run(model, ckpt_path=self.ckpt_path)
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/trainer/trainer.py", line 1172, in _run
		    self._call_setup_hook()  # allow user to setup lightning_module in accelerator environment
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/trainer/trainer.py", line 1492, in _call_setup_hook
		    self._call_lightning_module_hook("setup", stage=fn)
		  File "/usr/local/lib/python3.9/dist-packages/pytorch_lightning/trainer/trainer.py", line 1593, in _call_lightning_module_hook
		    output = fn(*args, **kwargs)
		  File "/root/NeMo/nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py", line 601, in setup
		    self.build_train_valid_test_datasets()
		  File "/root/NeMo/nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py", line 516, in build_train_valid_test_datasets
		    self._train_ds, self._validation_ds, self._test_ds = build_train_valid_test_datasets(
		  File "/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/gpt_dataset.py", line 81, in build_train_valid_test_datasets
		    train_ds, valid_ds, test_ds = _build_train_valid_test_datasets(
		  File "/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/gpt_dataset.py", line 168, in _build_train_valid_test_datasets
		    train_dataset = build_dataset(0, 'train')
		  File "/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/gpt_dataset.py", line 154, in build_dataset
		    dataset = GPTDataset(
		  File "/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/gpt_dataset.py", line 220, in __init__
		    self.doc_idx, self.sample_idx, self.shuffle_idx = _build_index_mappings(
		  File "/root/NeMo/nemo/collections/nlp/data/language_modeling/megatron/gpt_dataset.py", line 422, in _build_index_mappings
		    raise ImportError(
		ImportError: Could not compile megatron dataset C++ helper functions and therefore cannot import helpers python file.
```
Note that I run this file on Google Colab with GPU, with Cuda 11.8 (try to downgrade to 11.7 but not success, but still successful for first training), tokenizer with SentencePiece, and guarantee that the code does not change at the second time training.

Moreover, the [Migrating from Megatron-LM](https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/main/nlp/nemo_megatron/mlm_migration.html) especially file megatron_lm_ckpt_to_nemo.py the does not run successfully. After training complete, I want change file from .ckpt to .nemo, i met the error "Default process group has not been initialized, please make sure to call init_process_group"
This is my code
```python
!python /root/NeMo/examples/nlp/language_modeling/megatron_lm_ckpt_to_nemo.py \
  --checkpoint_folder './NeMo-Deploying/nemo_experiments/megatron_gpt/checkpoints' \
  --checkpoint_name megatron_gpt--val_loss=4.78-step=300-consumed_samples=57600.0 \
  --nemo_file_path './NeMo-Deploying/GPT-Pretrain/megatron_gpt_122m_bs1.nemo' \
  --model_type gpt \
  --tensor_model_parallel_size 1 
``` 
Can you check my above piece of code then it had any problem to this error?