OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[GPU] Fix crash in PTL and missing branch for non-i4 weights (#32681)
Taylor Yeonbok Leecad9e8e7d206
diff --git a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_gemm_gen_micro.cpp b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_gemm_gen_micro.cppindex 46b64c97aba..b2c80fac2df 100644--- a/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_gemm_gen_micro.cpp+++ b/src/plugins/intel_gpu/src/graph/impls/ocl_v2/moe/moe_gemm_gen_micro.cpp@@ -66,13 +66,12 @@ JitConstants MoEGemmMicroGenerator::get_jit_constants(const kernel_impl_params&jit.make("NUM_GROUPS", scale_shape[2]);elsejit.make("NUM_GROUPS", 1);-+ size_t expert_stride = weight_shape.size() == 4 ? (weight_shape[1] * weight_shape[2] * weight_shape[3]) : (weight_shape[1] * weight_shape[2]);if (is_u4_i4) {- size_t stride = weight_shape.size() == 4 ? (weight_shape[1] * weight_shape[2] * weight_shape[3]) / 2 : (weight_shape[1] * weight_shape[2]) / 2;- jit.make("EXPERT_STRIDE", stride);+ jit.make("EXPERT_STRIDE", expert_stride / 2);jit.make("WEIGHT_COMPRESSED_INT4", 1);} else {- jit.make("EXPERT_STRIDE", (weight_shape[1] * weight_shape[2]));+ jit.make("EXPERT_STRIDE", expert_stride);}if (!cfg.is_weight_symmetric_quantized)jit.make("WEIGHT_ZP_DT", to_ocl_type(data_types::f16));diff --git a/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp b/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cppindex b3ddf1f8deb..bc8a75e9624 100644--- a/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp+++ b/src/plugins/intel_gpu/src/plugin/transformations_pipeline.cpp@@ -405,7 +405,7 @@ void TransformationsPipeline::apply(std::shared_ptr<ov::Model> func) {// Currently moe op is only supported by >= xe2auto& engine = m_context->get_engine();const auto& info = engine.get_device_info();- return (info.arch != cldnn::gpu_arch::xe2) && (info.arch != cldnn::gpu_arch::xe2);+ return (info.arch != cldnn::gpu_arch::xe2) && (info.arch != cldnn::gpu_arch::xe3);});bool is_pa = false;for (const auto& op : func->get_ops()) {