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

[BUG] AttributeError: 'list' object has no attribute 'to' #456

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

[BUG] AttributeError: 'list' object has no attribute 'to' #456

nuodundd opened this issue Dec 26, 2024 · 0 comments

Comments

@nuodundd
Copy link

when i run pretrain_llama2_distributed.sh occurs:
node0: [rank0]: File "/home/nccl/Megatron-DeepSpeed/megatron/utils.py", line 39, in update_rotary_pos_emb
node0: [rank0]: rotary_pos_emb = RotaryEmbedding(rotary_dim, theta=args.rope_theta)(seq_length).to(
node0: [rank0]: AttributeError: 'list' object has no attribute 'to'

RotaryEmbedding(rotary_dim, theta=args.rope_theta)(seq_length) return a list, but the code in utils.py treat it as tensor

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