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

Inference Colab file of ARDM #6

Open
Aditya6500 opened this issue May 1, 2023 · 2 comments
Open

Inference Colab file of ARDM #6

Aditya6500 opened this issue May 1, 2023 · 2 comments

Comments

@Aditya6500
Copy link

I am faces few issues in ARDM Inference file of colab
I am getting error while using
model_A.load_state_dict(model_A_states)
model_B.load_state_dict(model_B_states).
Its unable to match all the keys.
I tried adding strict = False

model_A.load_state_dict(model_A_states,strict =False)
model_B.load_state_dict(model_B_states , strict = False)
The code runs but few keys don't match.
On proceeding in this manner I am facing error here
logits, past = model_A(prev_input, past=past)
error : past argument not supported. I tried removing past argument
but it gives error for the next line of code.
logits = logits[:, -1, :] / temperature

Can you please help me fix this code.

@qywu
Copy link
Owner

qywu commented May 1, 2023

You might need to use a older version of transformers to load the weights correctly.

@Aditya6500
Copy link
Author

Aditya6500 commented May 1, 2023 via email

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