llama : allow 0 as a seed number. (#1275)

This commit is contained in:
Robert Brisita 2023-05-02 12:23:44 -04:00 committed by GitHub
parent e2cd506999
commit 2bb992f034
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions

View file

@ -56,7 +56,7 @@ extern "C" {
struct llama_context_params {
int n_ctx; // text context
int n_parts; // -1 for default
int seed; // RNG seed, 0 for random
int seed; // RNG seed, -1 for random
bool f16_kv; // use fp16 for KV cache
bool logits_all; // the llama_eval() call computes all logits, not just the last one