Skip to content

RuntimeError: Error(s) in loading state_dict for SentimentClassifier: Missing key(s) in state_dict: "bert.embeddings.position_ids".  #1

@Tony363

Description

@Tony363

essentially i just git cloned the repository and ran "python3 bin/download_model".
then i just ran the "uvicorn sentiment_analyzer.api:app". I, however, installed all the dependencies individually as i was having issues to using the "pipenv install --dev" command as it was return errors

ksnip_20210211-204612
this is the entire error message.
ksnip_20210211-204850
this is whats in my assets
ksnip_20210211-204911
and this is the config.json that i did not change

How am i missing the keys from state_dict? is there a preferred enviorment where i deploy this tutorial api?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions