A small length note: the tokenizer claims 16,384 while the config span is 163,840

#26
by nootxlm - opened

Hello, and thank you for publishing DeepSeek-Coder-V2-Lite-Instruct.

We run a free public checker that reads a model's own published files, and on this repo the small files disagree on one number: how long an input the model can take.

tokenizer_config.json claims model_max_length 16,384. config.json's own position span (max_position_embeddings) is 163,840 — so the tokenizer claims 10.0% of the span the model ships, and a stack that trusts the tokenizer stops long inputs far short of the context the config describes.

You can see it in a moment, from the files alone: read model_max_length in tokenizer_config.json beside max_position_embeddings in config.json. The rest of the small files agree with each other — the pad token, where it is named, resolves to id 100,001, and the decode-cleanup setting is off — which leaves this length claim as the one place they part ways.

Setting the tokenizer's claim to the config span would let every loader read the same limit from either file.

Sign up or log in to comment