mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-09 19:46:11 +00:00
bad identifier name
This commit is contained in:
parent
d68f4a5ae5
commit
782ec5bffe
1 changed files with 5 additions and 5 deletions
|
|
@ -2333,14 +2333,14 @@ ModelLoadResult gpttype_load_model(const load_model_inputs inputs, FileFormat in
|
|||
}
|
||||
}
|
||||
printf("\n\n");
|
||||
for (const auto & override : string_split<std::string>(tensoroverrides, ',')) {
|
||||
std::string::size_type pos = override.find('=');
|
||||
for (const auto & overrider : string_split<std::string>(tensoroverrides, ',')) {
|
||||
std::string::size_type pos = overrider.find('=');
|
||||
if (pos == std::string::npos) {
|
||||
printf("\nInvalid Override Tensor: %s\n",override.c_str());
|
||||
printf("\nInvalid Override Tensor: %s\n",overrider.c_str());
|
||||
continue;
|
||||
}
|
||||
std::string tensor_name = override.substr(0, pos);
|
||||
std::string buffer_type = override.substr(pos + 1);
|
||||
std::string tensor_name = overrider.substr(0, pos);
|
||||
std::string buffer_type = overrider.substr(pos + 1);
|
||||
|
||||
if (buft_list.find(buffer_type) == buft_list.end()) {
|
||||
printf("\nUnknown Buffer Type: %s\n",buffer_type.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue