mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-10 12:11:08 +00:00
allow usage of flux without some components
This commit is contained in:
parent
96a70033ba
commit
c2316353a1
1 changed files with 3 additions and 4 deletions
|
|
@ -336,11 +336,10 @@ public:
|
|||
// kcpp fallback to separate diffusion model passed as model
|
||||
if (version == VERSION_COUNT &&
|
||||
strlen(SAFE_STR(sd_ctx_params->model_path)) > 0 &&
|
||||
strlen(SAFE_STR(sd_ctx_params->diffusion_model_path)) == 0 &&
|
||||
t5_path_fixed!="" )
|
||||
strlen(SAFE_STR(sd_ctx_params->diffusion_model_path)) == 0)
|
||||
{
|
||||
bool endswithsafetensors = ends_with(sd_ctx_params->model_path, ".safetensors");
|
||||
if(endswithsafetensors && !model_loader.has_diffusion_model_tensors())
|
||||
// bool endswithsafetensors = ends_with(sd_ctx_params->model_path, ".safetensors");
|
||||
if(!model_loader.has_diffusion_model_tensors())
|
||||
{
|
||||
LOG_INFO("SD Diffusion Model tensors missing! Fallback trying alternative tensor names...\n");
|
||||
if (!model_loader.init_from_file(sd_ctx_params->model_path, "model.diffusion_model.")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue