Skip to content

Commit

Permalink
[docs/gpt-j] fix typo (huggingface#13851)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaserabdelaziz authored and LysandreJik committed Oct 6, 2021
1 parent 3627a4b commit d7db364
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions docs/source/model_doc/gptj.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,6 @@ Tips:
size, the tokenizer for `GPT-J <https://huggingface.co/EleutherAI/gpt-j-6B>`__ contains 143 extra tokens
``<|extratoken_1|>... <|extratoken_143|>``, so the ``vocab_size`` of tokenizer also becomes 50400.

- Although the embedding matrix has a size of 50400, only 50257 entries are used by the GPT-2 tokenizer. These extra
tokens are added for the sake of efficiency on TPUs. To avoid the mis-match between embedding matrix size and vocab
size, the tokenizer for [GPT-J](https://huggingface.co/EleutherAI/gpt-j-6B) contains 143 extra tokens
``<|extratoken_1|>... <|extratoken_143|>``, so the ``vocab_size`` of tokenizer also becomes 50400.

Generation
_______________________________________________________________________________________________________________________

Expand Down

0 comments on commit d7db364

Please sign in to comment.