Testing padding=max_length without confusing PAD for content
Compare fixed and longest-in-batch padding, attention masks, and real token counts in an inference fixture
Read7 guides on limits.
Compare fixed and longest-in-batch padding, attention masks, and real token counts in an inference fixture
ReadUse return_overflowing_tokens and stride on a long synthetic input; report mapping and overlap computed by code, not invented results
ReadUse fast-tokenizer overflow mapping and offsets to keep raw-text provenance through overlapping windows
ReadRead configuration and construct a safe assertion before model inference; explain why count alone is not a universal context-window guarantee
ReadInspect which side loses tokens under a chosen max_length and contrast only_first/only_second options with printed evidence
ReadTest truncation on a pinned tokenizer with and without special tokens; derive content budget from masks rather than guessing
ReadRead max_input_chars_per_word from pinned tokenizer.json; probe the boundary using programmatically generated strings and distinguish pre-tokenized words from whole inputs
Read