Skip to content

Different Vocab Size Between Tokenizer and Model's Word Embedding Layer #33

@louisowen6

Description

@louisowen6

Expected Behavior

The length of tokenizer vocab size and the BERT's word embedding layer dimension should be the same

Actual Behavior

The length of tokenizer vocab size and the BERT's word embedding layer dimension is not the same

Steps to Reproduce the Problem

  1. Load the model: model = AutoModel.from_pretrained('indobenchmark/indobert-base-p1')
  2. Print the model: print(model)

image

  1. Load the tokenizer: tokenizer = AutoTokenizer.from_pretrained('indobenchmark/indobert-base-p1')
  2. Print the length of toikenizer: print(len(tokenizer))
    image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions