Skip to content

getting loss as 'nan' after 1st epoch only? #47

@shubhamk16

Description

@shubhamk16

Hello guys,
just like the Glove, I created a dictionary of all the possible words. with keys as words and values as 768 embedding vector for BERT.
But when I use this dictionary and train the model, the loss is getting nan in 1st epoch only.

  1. How to handle this problem?
  2. what are the possible reasons for getting a loss 'nan'?
  3. Is this a good approach, to make a dictionary of embedding vectors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions