(self, tokenizer: Tokenizer)
| 196 | |
| 197 | class ChatFormat: |
| 198 | def __init__(self, tokenizer: Tokenizer): |
| 199 | self.tokenizer = tokenizer |
| 200 | self.eot_id = tokenizer.special_tokens["<|eot_id|>"] |
| 201 | |
| 202 | def decode(self, tokens: List[int]) -> str: |
| 203 | # Decode the tokens to a string. |
nothing calls this directly
no outgoing calls
no test coverage detected