Skip to content

Commit b0dad7b

Browse files
rebel-jinhwanrebel-jiwoopark
authored andcommitted
fix: update broken import path in medusa unit test (#515)
1 parent eff874a commit b0dad7b

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

tests/torch_compile/e2e/v1/spec_decode/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def _load_json(path: str | Path) -> dict[str, Any]:
5151
with Path(path).open("r", encoding="utf-8") as f:
5252
return json.load(f)
5353

54+
5455
def _is_vllm_medusa_config(config_dict: dict[str, Any]) -> bool:
5556
return config_dict.get("model_type") == "medusa" and isinstance(
5657
config_dict.get("num_heads"), int

tests/torch_compile/unit/v1/spec_decode/test_eagle.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ def _set_positions(num_tokens: int, positions: torch.Tensor) -> None:
149149
fake.positions[:num_tokens] = positions
150150

151151
fake._set_positions = _set_positions
152-
fake.set_inputs_first_pass = (
153-
lambda **kwargs: RBLNEagleProposer.set_inputs_first_pass(fake, **kwargs)
152+
fake.set_inputs_first_pass = lambda **kwargs: (
153+
RBLNEagleProposer.set_inputs_first_pass(fake, **kwargs)
154154
)
155155
return fake, builder
156156

tests/torch_compile/unit/v1/spec_decode/test_medusa.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import torch
2525
from vllm.v1.spec_decode.medusa import MedusaProposer
2626

27-
import vllm_rbln.v1.spec_decoding.medusa as medusa_module
28-
from vllm_rbln.v1.spec_decoding.medusa import RBLNMedusaProposer
27+
import vllm_rbln.v1.spec_decode.medusa as medusa_module
28+
from vllm_rbln.v1.spec_decode.medusa import RBLNMedusaProposer
2929

3030

3131
class FakeMedusaModel:

0 commit comments

Comments
 (0)