Skip to content

Conversation

@riccardofelluga
Copy link
Collaborator

After Lightning-AI/litgpt#1545 the block_idx positional argument is required

Fixes TypeError: CausalSelfAttention.__init__() missing 1 required positional argument: 'block_idx'

Copy link
Collaborator

@shino16 shino16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I confirmed that pytest thunder/benchmarks/targets.py -k test_llama2_causal_self_attention_7b fails on main and passes on this PR.

@riccardofelluga
Copy link
Collaborator Author

ping @KaelanDt for stamp 🙏

@riccardofelluga
Copy link
Collaborator Author

Ping @KaelanDt for stamp 🙏

This PR is a small fix but it would really help with benchmarking

@KaelanDt KaelanDt disabled auto-merge December 12, 2025 14:28
@KaelanDt KaelanDt merged commit fb989d4 into main Dec 12, 2025
47 of 51 checks passed
@KaelanDt KaelanDt deleted the fix-llama2-bmk-config branch December 12, 2025 14:28
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

Successfully merging this pull request may close these issues.

3 participants