[XPU] Add gpt-oss model support for Intel GPU (#27786)

Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
Kunshang Ji
2025-11-05 10:17:23 +08:00
committed by GitHub
parent 4ea62b77f5
commit 18b39828d9
4 changed files with 101 additions and 6 deletions

View File

@@ -337,9 +337,6 @@ class GptOssModel(nn.Module):
if is_pp_missing_parameter(name, self):
continue
# FIXME(woosuk): Remove this after testing.
weight = weight.cuda()
if ".w13_weight_scale" in name:
# Handle MLP gate and up projection weights scale
if use_ep: