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

About partitions in example.py #6

Open
Shi-YiWei opened this issue Jun 9, 2023 · 1 comment
Open

About partitions in example.py #6

Shi-YiWei opened this issue Jun 9, 2023 · 1 comment

Comments

@Shi-YiWei
Copy link

Hello, I am currently experiencing two issues.

  1. in example.py

forward_kwargs = {"partitions": model.make_partitions()}
model maybe not have function make_partitions()
it should be get _partitions()?

  1. how to pass or define partitions
@radandreicristian
Copy link
Owner

Hi @Shi-YiWei , and sorry for the late response.

You are correct, there is an issue there.

I believe for Group Attention, you can make the partitions with model.set_partitions() when constructing the model, and then forward_kwargs = {"partitions": model.get_partitions()}

Feel free to create a pull request for this.

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

2 participants