Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/LLM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ LLMProvider::~LLMProvider() {}

std::string LLM::LLM_args_to_command(const std::string &model_path, int num_slots, int num_threads, int num_GPU_layers, bool flash_attention, int context_size, int batch_size, bool embedding_only, const std::vector<std::string> &lora_paths)
{
std::string command = "-m " + model_path +
std::string command = "-m \"" + model_path + "\"" +
" -t " + std::to_string(num_threads) +
" -np " + std::to_string(num_slots) +
" -c " + std::to_string(context_size) +
Expand All @@ -58,7 +58,7 @@ std::string LLM::LLM_args_to_command(const std::string &model_path, int num_slot
if (embedding_only)
command += " --embedding";
for (const auto &lora_path : lora_paths)
command += " --lora " + lora_path;
command += " --lora \"" + lora_path + "\"";
return command;
}

Expand Down
Loading