mirror of
https://github.com/ollama/ollama.git
synced 2025-04-03 17:39:05 +02:00
We sometimes tokenize partial strings. For example, with multimodal inputs, we split the input string around the images and then tokenize each piece. In these cases, we should only add the special tokens on the first piece.