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

How to get the hiddens for adj.py #4

Closed
WenzhengZhang opened this issue Aug 6, 2022 · 1 comment
Closed

How to get the hiddens for adj.py #4

WenzhengZhang opened this issue Aug 6, 2022 · 1 comment

Comments

@WenzhengZhang
Copy link

Hi,
Thanks for your great work! I have a question about the --res_path argument in https://github.com/thunlp/MoEfication/blob/48971265506cbad00d6bbed8e643034a9acbaeae/moefication/adj.py#L12 It should be the hidden states of each T5 layer before ffn if my understanding is correct. How do you get those hidden states?

@zzy14
Copy link
Member

zzy14 commented Oct 11, 2022

Hi, sorry for the late response.
Yes, it should be the hidden states of each T5 layer before FFNs. You can use python examples/t5-sst2-inf.py to get them.

@zzy14 zzy14 closed this as completed Oct 27, 2022
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