Skip to content

Commit

Permalink
feat: do not convert more flux tensors
Browse files Browse the repository at this point in the history
  • Loading branch information
leejet committed Aug 25, 2024
1 parent f5997a1 commit 5c561ea
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1740,11 +1740,14 @@ bool ModelLoader::tensor_should_be_converted(const TensorStorage& tensor_storage
// Pass, do not convert
} else if (ends_with(name, ".bias")) {
// Pass, do not convert
} else if (ends_with(name, ".scale")) {
// Pass, do not convert
} else if (contains(name, "img_in.") ||
contains(name, "time_in.in_layer.") ||
contains(name, "vector_in.in_layer.") ||
contains(name, "guidance_in.in_layer.") ||
contains(name, "final_layer.linear.")) {
contains(name, "txt_in.") ||
contains(name, "time_in.") ||
contains(name, "vector_in.") ||
contains(name, "guidance_in.") ||
contains(name, "final_layer.")) {
// Pass, do not convert. For FLUX
} else if (contains(name, "x_embedder.") ||
contains(name, "t_embedder.") ||
Expand Down

0 comments on commit 5c561ea

Please sign in to comment.