Skip to content

Commit 85606aa

Browse files
committed
add test to test_model_loader.py
Signed-off-by: Allen Jia <kuafou@gmail.com>
1 parent 5883fed commit 85606aa

File tree

2 files changed

+4
-21
lines changed

2 files changed

+4
-21
lines changed

tests/models/common/test_model_loader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ def test_register_model_vllm_wrapper_methods():
201201
with pytest.raises(NotImplementedError, match="JAX model"):
202202
instance.forward(input_ids=None, positions=None)
203203

204+
# `get_input_embeddings` should be unimplemented.
205+
with pytest.raises(NotImplementedError, match="JAX model"):
206+
instance.get_input_embeddings(input_ids=None, positions=None)
207+
204208
# `load_weights` should be a no-op that returns None.
205209
assert instance.load_weights() is None
206210

tests/test_vllm_wrapper.py

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)