add args -k and --force
This commit is contained in:
+3
-1
@@ -1012,7 +1012,7 @@ static bool assign_layers_to_device(
|
||||
};
|
||||
|
||||
// get valid factors
|
||||
std::vector<int> valid_k = find_factors(n_layer);
|
||||
std::vector<int> valid_k = cparams.n_cycles > 0 ? {(int)cparams.n_cycles} : find_factors(n_layer);
|
||||
|
||||
// assign devices to sets M1, M2, M3, and M4
|
||||
// M1: devices running on macOS without Metal, and with insufficient memory
|
||||
@@ -1801,8 +1801,10 @@ struct llama_context_params llama_context_params_from_gpt_params(const gpt_param
|
||||
cparams.n_world = params.n_world;
|
||||
cparams.rank = params.rank;
|
||||
cparams.prefetch = params.prefetch;
|
||||
cparams.force = params.force;
|
||||
cparams.keep_out_in_metal = params.keep_out_in_metal;
|
||||
cparams.n_gpu_layers = params.n_gpu_layers;
|
||||
cparams.n_cycles = params.n_cycles;
|
||||
std::copy(std::begin(params.n_layer_window), std::end(params.n_layer_window), cparams.n_layer_window);
|
||||
|
||||
if (cparams.master_ip != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user