Conversation
| import deepspeed | ||
|
|
||
| from megatron.enums import PositionEmbeddingType | ||
| from megatron.model.glu_activations import GLU_ACTIVATIONS |
There was a problem hiding this comment.
Not the first time I've seen that, removing __init__ file in megatron/model would help I think.
There was a problem hiding this comment.
This will require adapting all these:
./pretrain_gpt.py:from megatron.model import GPTModel, GPTModelPipe
./megatron/training.py:from megatron.model import Float16Module
./megatron/training.py:from megatron.model import DistributedDataParallel as LocalDDP
./megatron/optimizer/__init__.py:from megatron.model import LayerNorm
./megatron/schedules.py:from megatron.model import DistributedDataParallel as LocalDDP
./megatron/schedules.py:from megatron.model import Float16Module
./megatron/text_generation_utils.py:from megatron.model import DistributedDataParallel as LocalDDP
./megatron/text_generation_utils.py:from megatron.model import Float16Module
./megatron/model/realm_model.py:from megatron.model import BertModel
./megatron/model/transformer.py:from megatron.model import LayerNorm
./megatron/model/bert_model.py:from megatron.model import LayerNorm
./megatron/model/gpt_model.py:from megatron.model import LayerNorm
./tasks/zeroshot_gpt/evaluate.py:from megatron.model import GPTModel
./tasks/zeroshot_gpt/evaluate.py:from megatron.model import DistributedDataParallel as LocalDDP
./tasks/zeroshot_gpt/evaluate.py:from megatron.model import Float16Module
./checkpoint-analysis.ipynb: "from megatron.model import GPTModel\n",
./pretrain_bert.py:from megatron.model import BertModel
./pretrain_t5.py:from megatron.model import T5Model
./tools/generate_samples_gpt.py:from megatron.model import GPTModel
There was a problem hiding this comment.
I'm all for it if we continue running into this issue, if you or someone else would like to tackle that.
There was a problem hiding this comment.
we can create an issue for this - should be trivial for anybody as this is all basic python.
There was a problem hiding this comment.
Let's create an issue for now I guess.
There was a problem hiding this comment.
are you doing it already, or if you haven't started, I will create it.
There was a problem hiding this comment.
Sorry I'll try to take 5 mins whenever I have time to do it.
There was a problem hiding this comment.
as I commented, the issue has already been created!
let's have some simple issues open for contributors - that way it's easier for them to ease in with contributing.
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
fixes a circular import problem introduced by #69 (comment)