huggingface / huggingface/blog
There are 39000 words in my vocab.txt, but the model vocab_size is set to 50000. In this case, how does the embedded weight of 50000 * 768 output correspond to my 39000 words, is simply the first 39000? thanks
Open
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 3.5k
- Forks
- 1k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 19
Description
This issue has no description.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by identifying which model and tokenizer implementation the question refers to, then inspect how vocab.txt and the 50000 × 768 embedding are connected. Done means documenting the correspondence clearly, including whether unused vocabulary rows are possible.
Written by the indexing model from the issue text.
Assessment
- Domain
- machine-learning
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100