MCPcopy Create free account
hub / github.com/microsoft/BitNet / __init__

Method __init__

gpu/tokenizer.py:198–200  ·  view source on GitHub ↗
(self, tokenizer: Tokenizer)

Source from the content-addressed store, hash-verified

196
197class 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected