MCPcopy Create free account
hub / github.com/Tiiny-AI/PowerInfer / llama_sampler_init_infill

Function llama_sampler_init_infill

smallthinker/src/llama-sampling.cpp:2504–2513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2502};
2503
2504struct llama_sampler * llama_sampler_init_infill(const struct llama_vocab * vocab) {
2505 return llama_sampler_init(
2506 /* .iface = */ &llama_sampler_infill_i,
2507 /* .ctx = */ new llama_sampler_infill {
2508 /* .vocab = */ vocab,
2509 /* .buf0 = */ std::vector<char>(512),
2510 /* .buf1 = */ std::vector<char>(512),
2511 }
2512 );
2513}
2514
2515// utils
2516

Callers 2

common_sampler_initFunction · 0.85

Calls 1

llama_sampler_initFunction · 0.85

Tested by

no test coverage detected