fastmoe icon indicating copy to clipboard operation
fastmoe copied to clipboard

ImportError: cannot import name 'get_args' from 'megatron'

Open peter-fei opened this issue 1 year ago • 5 comments

No functions named get_args() in megatron The funxitons in init doesn't include get_args

r""" A set of modules to plugin into Megatron-LM with FastMoE """ from .utils import add_fmoe_args

from .layers import MegatronMLP from .layers import fmoefy

from .checkpoint import save_checkpoint from .checkpoint import load_checkpoint

from .distributed import DistributedDataParallel

from .balance import reset_gate_hook from .balance import get_balance_profile from .balance import generate_megatron_gate_hook from .balance import add_balance_log

from .patch import patch_forward_step from .patch import patch_model_provider

peter-fei avatar Dec 14 '23 06:12 peter-fei

What is the version of your Megatron-LM? They have being significantly changing the API in their recent versions.

laekov avatar Dec 14 '23 06:12 laekov

My version 1.1.0

peter-fei avatar Dec 14 '23 06:12 peter-fei

1.1.0 may be too old. We have verivied support for 2.2, 2.5 and 3.0.2 . If you have to use 1.1.0, you need to either modify megatron or fastmoe.

laekov avatar Dec 14 '23 06:12 laekov

Thanks. By the way, How can I get a higher version?

peter-fei avatar Dec 14 '23 07:12 peter-fei

Check out the tags here

laekov avatar Dec 14 '23 07:12 laekov