MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / decode_ids

Method decode_ids

src/framework/tokenizers/hf_tokenizer_json.cpp:64–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62 len = 3;
63 } else if ((c & 0xF8) == 0xF0 && i + 3 < text.size()) {
64 cp = ((c & 0x07) << 18) | ((static_cast<unsigned char>(text[i + 1]) & 0x3F) << 12) | ((static_cast<unsigned char>(text[i + 2]) & 0x3F) << 6) | (static_cast<unsigned char>(text[i + 3]) & 0x3F);
65 len = 4;
66 } else {
67 bytes.push_back(text[i]);
68 ++i;
69 continue;

Callers 2

test_roundtripMethod · 0.80
test_ja_roundtripMethod · 0.80

Calls 1

Tested by 2

test_roundtripMethod · 0.64
test_ja_roundtripMethod · 0.64