Skip to content

Commit 5a38db8

Browse files
committed
imatrix: support DiT text encoders
1 parent ddbb4af commit 5a38db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

imatrix.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ bool IMatrixCollector::collect_imatrix(struct ggml_tensor* t, bool ask, void* us
7676
return false;
7777
// why are small batches ignored (<16 tokens)?
7878
// if (src1->ne[1] < 16 || src1->type != GGML_TYPE_F32) return false;
79-
if (!(wname.substr(0, 6) == "model." || wname.substr(0, 17) == "cond_stage_model."))
79+
if (!(wname.substr(0, 6) == "model." || wname.substr(0, 17) == "cond_stage_model." || wname.substr(0,14) == "text_encoders."))
8080
return false;
8181
return true;
8282
}

0 commit comments

Comments
 (0)