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

Updated fused_kernels import path #760

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Yazeed7
Copy link

@Yazeed7 Yazeed7 commented Mar 31, 2024

Model conversion scripts in tools/checkpoint fail after the refactor with the following error:

Traceback (most recent call last):
  File "Megatron-LM/tools/checkpoint/convert.py", line 155, in <module>
    main()
  File "Megatron-LM/tools/checkpoint/convert.py", line 148, in main
    loader.load_checkpoint(queue, args)
  File "Megatron-LM/tools/checkpoint/loader_llama2_hf.py", line 361, in load_checkpoint
    _load_checkpoint(queue, args)
  File "Megatron-LM/tools/checkpoint/loader_llama2_hf.py", line 166, in _load_checkpoint
    from megatron.training import fused_kernels
ImportError: cannot import name 'fused_kernels' from 'megatron.training' (Megatron-LM/megatron/training/__init__.py)

I updated the import paths to fused_kernels, which solved this issue.

Copy link

Marking as stale. No activity in 60 days.

@github-actions github-actions bot added the stale No activity in 60 days on issue or PR label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale No activity in 60 days on issue or PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant