Sfoglia il codice sorgente

common : use LLAMA_DEFAULT_SEED (#5855)

DAN™ 1 anno fa
parent
commit
82f3e668ad
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      common/common.h

+ 1 - 1
common/common.h

@@ -43,7 +43,7 @@ extern char const *LLAMA_BUILD_TARGET;
 int32_t get_num_physical_cores();
 int32_t get_num_physical_cores();
 
 
 struct gpt_params {
 struct gpt_params {
-    uint32_t seed                 = -1;    // RNG seed
+    uint32_t seed                 = LLAMA_DEFAULT_SEED; // RNG seed
 
 
     int32_t n_threads             = get_num_physical_cores();
     int32_t n_threads             = get_num_physical_cores();
     int32_t n_threads_draft       = -1;
     int32_t n_threads_draft       = -1;