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

ValueError: Assignment map with scope only name bert/position_embeddings should map to scope only bert/embeddings/position_embeddings. Should be 'scope/': 'other_scope/'. #127

Closed
Vibha111094 opened this issue Apr 10, 2019 · 9 comments

Comments

@Vibha111094
Copy link

Vibha111094 commented Apr 10, 2019

when i try to do
model_utils.init_bert_checkpoint(init_checkpoint)
I get
ValueError:Assignment map with scope only name bert/position_embeddings should map to scope only bert/embeddings/position_embeddings. Should be 'scope/': 'other_scope/'.

This was working fine earlier ,could this be due to the new changes introduced in texar ,as I have not changed my code .

@ZhitingHu
Copy link
Member

Hi, we've just updated the TransformerEncoder/Decoder modules.

Please either use the previous Texar version (v0.2.0) to use your BERT code, or use the (slightly) updated bert example with the lastest Texar.

@Vibha111094
Copy link
Author

For now I would want to use the previous version as I am in the middle of something very urgent .
Could you please explain how I could get the previous version .
Because I use colab and session gets reset (every 12 hours ) so I do not have the older version of texar .

@ZhitingHu
Copy link
Member

Here is the older version (v0.2):https:/asyml/texar/releases/tag/v0.2.0

@Vibha111094
Copy link
Author

Is v0.2.0 the latest one or v0.1.0?
Should I not need v0.1.0?

@Vibha111094
Copy link
Author

I used the https:/asyml/texar/releases/tag/v0.1.0

However I am still facing the following issue :
_build() got an unexpected keyword argument 'length_penalty'
looks like length_penalty has been removed from even the older version??
I was in the middle of training , and if I remove length_penalty there is a incompatability of checkpoints.

@ZhitingHu
Copy link
Member

Pls use v0.2.0, which is an older version than the one in the master branch now.

@Vibha111094
Copy link
Author

Thankyou ! It works now:)

@dearchill
Copy link

Hi! I uses the previous Texar version (v0.2.0) but it still appears to have this problem. Could any other solutions provided? Thank you!

@ZhitingHu
Copy link
Member

Can you post the error msg?

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

3 participants