mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-08-19 13:25:11 +00:00
fix ltx assert for cpu vae
This commit is contained in:
parent
48a6d161a5
commit
6605dce5ce
1 changed files with 2 additions and 2 deletions
|
|
@ -6257,7 +6257,7 @@ static void ggml_compute_forward_im2col_f16(
|
|||
const ggml_tensor * src0 = dst->src[0];
|
||||
const ggml_tensor * src1 = dst->src[1];
|
||||
|
||||
GGML_ASSERT(src0->type == GGML_TYPE_F16);
|
||||
GGML_ASSERT(src0->type == GGML_TYPE_F16 || src0->type == GGML_TYPE_F32); // kcpp: fix for ltx2.3 vae on cpu
|
||||
GGML_ASSERT(src1->type == GGML_TYPE_F16 || src1->type == GGML_TYPE_F32);
|
||||
GGML_ASSERT( dst->type == GGML_TYPE_F16);
|
||||
|
||||
|
|
@ -6288,7 +6288,7 @@ static void ggml_compute_forward_im2col_f16(
|
|||
int ofs0 = is_2D ? nb13 : nb12;
|
||||
int ofs1 = is_2D ? nb12 : nb11;
|
||||
|
||||
GGML_ASSERT(nb00 == sizeof(ggml_fp16_t));
|
||||
GGML_ASSERT(nb00 == sizeof(ggml_fp16_t) || nb00 == sizeof(float)); // kcpp: fix for ltx2.3 vae on cpu
|
||||
GGML_ASSERT(nb10 == ggml_type_size(src1->type));
|
||||
|
||||
// im2col: [N, IC, IH, IW] => [N, OH, OW, IC*KH*KW]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue