MCPcopy Create free account
hub / github.com/kyegomez/BitNet / decode_token

Method decode_token

bitnet/inference.py:47–49  ·  view source on GitHub ↗

Decodes a token into a character.

(token)

Source from the content-addressed store, hash-verified

45
46 @staticmethod
47 def decode_token(token):
48 """Decodes a token into a character."""
49 return str(chr(max(32, token)))
50
51 @staticmethod
52 def decode_tokens(tokens):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected