Skip to content

Commit 59e1a8e

Browse files
committed
add test to test_model_loader.py
1 parent 494d22d commit 59e1a8e

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
@@ -199,6 +199,10 @@ def test_register_model_vllm_wrapper_methods():
199199
with pytest.raises(NotImplementedError, match="JAX model"):
200200
instance.forward(input_ids=None, positions=None)
201201

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

tests/test_vllm_wrapper.py

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

0 commit comments

Comments
 (0)