fix: load the LTX-2.5 keyframe embedding as F32 (#2432)

This commit is contained in:
Jasper Blues 2026-11-26 23:05:59 +10:00 • committed by GitHub
parent 456f52d2de
commit 514e786d84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -780,10 +780,8 @@ namespace LTXV {
config.audio_hidden_size,
2);
if (config.use_keyframes_abs_pos_embedding) {
params["keyframes_abs_pos_embedding"] = ggml_new_tensor_2d(ctx,
get_type(prefix + "keyframes_abs_pos_embedding", tensor_storage_map, GGML_TYPE_F32),
config.hidden_size,
1);
// Added to f32 activations, and backends without BF16 support (e.g. Vulkan on RADV) can't add a BF16 tensor.
params["keyframes_abs_pos_embedding"] = ggml_new_tensor_2d(ctx, GGML_TYPE_F32, config.hidden_size, 1);
}
}