MCPcopy Create free account
hub / github.com/cactus-compute/cactus / cactus_sample_f32

Function cactus_sample_f32

cactus/kernel/kernel_nn.cpp:517–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

515}
516
517void cactus_sample_f32(const float* logits, uint32_t* output, size_t vocab_size,
518 float temperature, float top_p, size_t top_k, size_t random_seed,
519 const float* bias_values, const uint32_t* bias_indices,
520 size_t bias_count) {
521 cactus_sample_f32_ex(logits, output, vocab_size,
522 temperature, top_p, 0.15f, 1.1f,
523 top_k, random_seed,
524 bias_values, bias_indices, bias_count);
525}
526
527void cactus_sample_f32_ex(const float* logits, uint32_t* output, size_t vocab_size,
528 float temperature, float top_p, float min_p, float repetition_penalty,

Callers

nothing calls this directly

Calls 1

cactus_sample_f32_exFunction · 0.85

Tested by

no test coverage detected