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

Function llama_set_rng_seed

llama.cpp:8133–8138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8131//
8132
8133void llama_set_rng_seed(struct llama_context * ctx, uint32_t seed) {
8134 if (seed == LLAMA_DEFAULT_SEED) {
8135 seed = time(NULL);
8136 }
8137 ctx->rng.seed(seed);
8138}
8139
8140void llama_sample_softmax(struct llama_context * ctx, llama_token_data_array * candidates) {
8141 GGML_ASSERT(candidates->size > 0);

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected