Add pydocstyle to the ruff rules (#52136)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Harry Mellor <hej.mellor@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
804e5377aa
commit
8c1557a79c
@@ -86,8 +86,8 @@ def _run_test(kwargs: dict, logitproc_loaded: bool) -> None:
|
||||
Args:
|
||||
kwargs: `LLM` constructor kwargs
|
||||
logitproc_loaded: server has loaded dummy logitproc if True
|
||||
"""
|
||||
|
||||
"""
|
||||
# Create a vLLM instance and load custom logitproc
|
||||
llm_logitproc = LLM(
|
||||
model=MODEL_NAME,
|
||||
@@ -131,7 +131,7 @@ def _run_test(kwargs: dict, logitproc_loaded: bool) -> None:
|
||||
@create_new_process_for_each_test()
|
||||
@pytest.mark.parametrize("logitproc_source", list(CustomLogitprocSource))
|
||||
def test_custom_logitsprocs(monkeypatch, logitproc_source: CustomLogitprocSource):
|
||||
"""Test offline Python interface for passing custom logitsprocs
|
||||
"""Test offline Python interface for passing custom logitsprocs.
|
||||
|
||||
Construct an `LLM` instance which loads a custom logitproc that has a
|
||||
well-defined behavior (mask out all tokens except one `target_token`)
|
||||
@@ -158,8 +158,8 @@ def test_custom_logitsprocs(monkeypatch, logitproc_source: CustomLogitprocSource
|
||||
logitproc_source: what source (entrypoint, fully-qualified class name
|
||||
(FQCN), class object, or None) the user pulls the
|
||||
logitproc from
|
||||
"""
|
||||
|
||||
"""
|
||||
# Test that logitproc info is passed to workers
|
||||
monkeypatch.setenv("VLLM_ENABLE_V1_MULTIPROCESSING", "1")
|
||||
set_random_seed(40)
|
||||
@@ -192,7 +192,7 @@ def test_custom_logitsprocs(monkeypatch, logitproc_source: CustomLogitprocSource
|
||||
|
||||
@create_new_process_for_each_test()
|
||||
def test_custom_logitsprocs_req(monkeypatch):
|
||||
"""Test passing request-level logits processor to offline Python interface
|
||||
"""Test passing request-level logits processor to offline Python interface.
|
||||
|
||||
Wrap a request-level logits processor to create a batch level logits
|
||||
processor that has a well-defined behavior (mask out all tokens except one
|
||||
@@ -213,8 +213,8 @@ def test_custom_logitsprocs_req(monkeypatch):
|
||||
|
||||
Args:
|
||||
monkeypatch: for setting env vars
|
||||
"""
|
||||
|
||||
"""
|
||||
# Test that logitproc info is passed to workers
|
||||
monkeypatch.setenv("VLLM_ENABLE_V1_MULTIPROCESSING", "1")
|
||||
set_random_seed(40)
|
||||
@@ -258,6 +258,7 @@ def test_rejects_custom_logitsprocs(
|
||||
logitproc_source: what source (entrypoint, fully-qualified class name
|
||||
(FQCN), or class object) the user pulls the
|
||||
logitproc from
|
||||
|
||||
"""
|
||||
monkeypatch.setenv("VLLM_ENABLE_V1_MULTIPROCESSING", "0")
|
||||
set_random_seed(40)
|
||||
|
||||
Reference in New Issue
Block a user