removed trailing whitespace

This commit is contained in:
root 2024-02-06 22:27:38 +00:00
parent a69d6e2b91
commit 60b80b0e8a
3 changed files with 3 additions and 3 deletions

View file

@ -655,7 +655,7 @@ bool gpt_params_parse_ex(int argc, char ** argv, gpt_params & params) {
params.use_mmap = false;
} else if (arg == "--numa") {
if (++i >= argc) {
invalid_param = true;
invalid_param = true;
break;
} else {
std::string value(argv[i]);

View file

@ -76,7 +76,7 @@ struct gpt_params {
float yarn_beta_slow = 1.0f; // YaRN high correction dim
int32_t yarn_orig_ctx = 0; // YaRN original context length
int32_t rope_scaling_type = LLAMA_ROPE_SCALING_UNSPECIFIED;
int32_t numa = LLAMA_NUMA_STRATEGY_DISABLED;
int32_t numa = LLAMA_NUMA_STRATEGY_DISABLED;
// // sampling parameters
struct llama_sampling_params sparams;

2
ggml.c
View file

@ -16630,7 +16630,7 @@ static void set_numa_thread_affinity(int thread_n, int n_threads) {
break;
case GGML_NUMA_STRATEGY_NUMACTL:
// use the cpuset that numactl gave us
rv = pthread_setaffinity_np(pthread_self(), setsize, &g_state.numa.cpuset);
rv = pthread_setaffinity_np(pthread_self(), setsize, &g_state.numa.cpuset);
if (rv) {
fprintf(stderr, "warning: pthread_setaffinity_np() failed: %s\n",strerror(rv));
}