mirror of
https://github.com/Lizonghang/prima.cpp.git
synced 2025-09-10 09:44:38 +00:00
add args -k and --force
This commit is contained in:
parent
9cbdf01645
commit
bcfdace59b
5 changed files with 27 additions and 5 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue