MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / decode

Method decode

server/src/server/tokenizer.cpp:780–786  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780std::string Tokenizer::decode(const std::vector<int32_t> & ids) const {
781 std::string result;
782 for (int32_t id : ids) {
783 result += token_text(id);
784 }
785 return result;
786}
787
788const std::string & Tokenizer::raw_token(int32_t id) const {
789 static const std::string empty;

Callers 15

extractFunction · 0.95
_query_nvidia_vram_mibFunction · 0.45
_readerMethod · 0.45
_read_vram_used_mibMethod · 0.45
mainFunction · 0.45
build_corpus.pyFile · 0.45
bench_pp_tg.pyFile · 0.45
benchmark_megakernelFunction · 0.45
benchmark_hfFunction · 0.45
benchmark_decodeFunction · 0.45
run_correctnessFunction · 0.45
run_tgFunction · 0.45

Calls

no outgoing calls

Tested by 5

http_jsonFunction · 0.36
http_sseFunction · 0.36
probe_anthropic_sseFunction · 0.36
probe_responses_sseFunction · 0.36
_run_bench_caseFunction · 0.36