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

Function llama_sampler_init_typical

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

Source from the content-addressed store, hash-verified

947};
948
949struct llama_sampler * llama_sampler_init_typical(float p, size_t min_keep) {
950 return llama_sampler_init(
951 /* .iface = */ &llama_sampler_typical_i,
952 /* .ctx = */ new llama_sampler_typical {
953 /* .p = */ p,
954 /* .min_keep = */ min_keep,
955 }
956 );
957}
958
959// temp
960

Callers 4

test_typicalFunction · 0.85
test_perfFunction · 0.85
common_sampler_initFunction · 0.85

Calls 1

llama_sampler_initFunction · 0.85

Tested by 2

test_typicalFunction · 0.68
test_perfFunction · 0.68