Skip to content

Commit 4090c55

Browse files
committed
fix unit tests and add deepseek test case
Signed-off-by: zixi-qi <qizixi@meta.com>
1 parent b306c93 commit 4090c55

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

tests/v1/e2e/test_spec_decode.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,9 @@ def test_eagle_correctness(
229229

230230
@pytest.mark.parametrize(["model_setup", "mm_enabled"], [
231231
(("mtp", "XiaomiMiMo/MiMo-7B-Base", 1), False),
232+
(("mtp", "ZixiQi/DeepSeek-V3-4layers-MTP-FP8", 1), False),
232233
],
233-
ids=["mtp"])
234+
ids=["mimo", "deepseek"])
234235
@pytest.mark.parametrize("attn_backend",
235236
get_attn_backend_list_based_on_platform())
236237
def test_mtp_correctness(

tests/v1/spec_decode/test_mtp.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,7 @@ def create_deterministic_logits(batch_size, vocab_size, token_offset):
201201
)
202202

203203
proposer.runner = mock.MagicMock()
204-
proposer.runner.attn_groups.append([mock.MagicMock()])
205-
proposer.runner.attn_groups[0][0].metadata_builders = [
206-
attn_metadata_builder
207-
]
204+
proposer.attn_metadata_builder = attn_metadata_builder
208205

209206
# Run propose
210207
result = proposer.propose(target_token_ids=target_token_ids,

0 commit comments

Comments
 (0)