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

[QUESTION]How to convert the weight file format of the MAMBA model from pt to safetensors format? #1339

Open
fxnie opened this issue Dec 26, 2024 · 0 comments

Comments

@fxnie
Copy link

fxnie commented Dec 26, 2024

Ask a clear and concise question about Megatron-LM.
MODEL_PATH="/workspace/mnt/xxx/ckpt/mamba2"
SAVE_PATH="/workspace/mnt/xxx/models/convert_ckpt/mamba2"

python tools/checkpoint/hybrid_conversion.py
--load-dir ${MODEL_PATH}
--save-dir ${SAVE_PATH}
--target-tp-size 2
--target-pp-size 1
--d-model 2560
--mamba-version 2
--mamba-d-state 128
--mamba2-n-groups 8
--mamba2-head-dim 64

I found that the conversion script is still in pt format after conversion. What should I do to convert it to SafeTensor format? help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant