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

Method sample

cactus/graph/graph_builder.cpp:1252–1255  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250}
1251
1252size_t CactusGraph::sample(size_t logits, float temperature, float top_p, size_t top_k,
1253 const std::unordered_map<uint32_t, float>& logit_bias) {
1254 return this->sample_with_options(logits, temperature, top_p, 0.15f, 1.1f, top_k, logit_bias);
1255}
1256
1257size_t CactusGraph::sample_with_options(size_t logits, float temperature, float top_p,
1258 float min_p, float repetition_penalty, size_t top_k,

Callers 1

cactus_graph_sampleFunction · 0.80

Calls 1

sample_with_optionsMethod · 0.95

Tested by

no test coverage detected