mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
updated sdui
This commit is contained in:
+60
-60
File diff suppressed because one or more lines are too long
+1
-1
@@ -64,7 +64,7 @@ dry_seq_break_max = 128
|
||||
extra_images_max = 4
|
||||
|
||||
# global vars
|
||||
KcppVersion = "1.100.1"
|
||||
KcppVersion = "1.101"
|
||||
showdebug = True
|
||||
kcpp_instance = None #global running instance
|
||||
global_memory = {"tunnel_url": "", "restart_target":"", "input_to_exit":False, "load_complete":False, "restart_override_config_target":""}
|
||||
|
||||
@@ -245,6 +245,17 @@ std::unordered_map<std::string, std::string> qwenvl_vision_name_map{
|
||||
{"ln2.", "norm2."},
|
||||
};
|
||||
|
||||
std::string kcpp_fix_wrong_img_tensor_name(const std::string& name) //kcpp function that fixes common wrong tensor names
|
||||
{
|
||||
if (starts_with(name, "text_encoders.qwen25_7b.transformer.model.")) {
|
||||
return "text_encoders.qwen2vl.model." + name.substr(strlen("text_encoders.qwen25_7b.transformer.model."));
|
||||
}
|
||||
if (starts_with(name, "text_encoders.qwen25_7b.transformer.visual.")) {
|
||||
return "text_encoders.qwen2vl.visual." + name.substr(strlen("text_encoders.qwen25_7b.transformer.visual."));
|
||||
}
|
||||
return name;
|
||||
}
|
||||
|
||||
std::string convert_cond_model_name(const std::string& name) {
|
||||
std::string new_name = name;
|
||||
std::string prefix;
|
||||
@@ -1343,6 +1354,8 @@ bool ModelLoader::init_from_safetensors_file(const std::string& file_path, const
|
||||
name = prefix + name;
|
||||
}
|
||||
|
||||
name = kcpp_fix_wrong_img_tensor_name(name);
|
||||
|
||||
TensorStorage tensor_storage(name, type, ne, n_dims, file_index, ST_HEADER_SIZE_LEN + header_size_ + begin);
|
||||
tensor_storage.reverse_ne();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user