Skip to content

Unable to import Megatron, please specify the path to Megatron using --megatron-path. Exiting. #3

@Ruban-07

Description

@Ruban-07

I've successfully completed till downloading llama models in HF format by running the below script:

python scripts/tools/download_llama2_7b_hf.py 
python scripts/tools/download_llama2_13b_hf.py
python scripts/tools/download_llama3_8b_hf.py

And also got this folder structure:
Description

Then I've ran the below command to convert HF to Megatron:

bash scripts/tools/convert_llama2_7b_hf_to_megatron.sh 
bash scripts/tools/convert_llama2_13b_hf_to_megatron.sh 
bash scripts/tools/convert_llama3_8b_hf_to_megatron.sh

Unfortunately, I'm facing the below errors:

Screenshot from 2024-10-16 17-20-57
Screenshot from 2024-10-16 17-22-06

I've tried adding the path of megatron in my env variable, but it not worked, kindly help me to fix this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions