Module decoder

Module decoder 

Source

Functionsยง

byte_to_char_map
The GPT-2 bytes-to-unicode forward map: byte -> unicode codepoint.
char_to_byte_map
The inverse of the GPT-2 bytes-to-unicode map.
decode_token
Decode one raw vocabulary token to its byte sequence for vocab_type.