Repository navigation
Commit 28d3734
committed
fix: count literal special tokens like <|endoftext|> as plain text
Repos that vendor tokenizer code (e.g. CLIP) contain the literal string
'<|endoftext|>'. tiktoken rejects it by default, so count_tokens raised
and module clustering aborted before any LLM call.1 parent 64c2b60 commit 28d3734
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments