[CI] Fix FusedMoEConfig and input batch failure to recover CI (#1602)

Make CI happy

1.
https://github.com/vllm-project/vllm/commit/c1909e7e8ccd2037e76536a8e726120c85d3754e
changed moeConfig init way
2.
https://github.com/vllm-project/vllm/commit/48fb076cbc651f655aae8ffdff6930907309b2f7
changed input batch logic.

This PR address these change to vllm-ascend.

Closes: https://github.com/vllm-project/vllm-ascend/issues/1600

Signed-off-by: wangxiyuan <wangxiyuan1007@gmail.com>
This commit is contained in:
wangxiyuan authored and GitHub committed 2025-07-03 18:36:17 +08:00
1 parent d96da1f00c
commit a45dfde283
11 files changed
+173 -134

No files matched your search

@@ -12,8 +12,8 @@ class TestTopKTopPSamplerOptimize(unittest.TestCase):
@mock.patch.dict(os.environ, {"VLLM_ASCEND_ENABLE_TOPK_OPTIMIZE": "1"})
@mock.patch("torch_npu.npu_top_k_top_p")
def test_npu_topk_topp_called_when_optimized(self, mock_npu_op):
import vllm_ascend.patch.worker.patch_common.patch_sampler
importlib.reload(vllm_ascend.patch.worker.patch_common.patch_sampler)
import vllm_ascend.patch.worker.patch_0_9_1.patch_sampler
importlib.reload(vllm_ascend.patch.worker.patch_0_9_1.patch_sampler)
mock_npu_op.return_value = (torch.randn(1, 3))
sampler = topk_topp_sampler.TopKTopPSampler()