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
@@ -340,8 +340,7 @@ class BaseRenderer(ABC, Generic[_T]):
|
||||
self._mm_warmup_future = None
|
||||
|
||||
def warmup(self, chat_params: ChatParams) -> None:
|
||||
"""
|
||||
Warm up this renderer to avoid first-request latency.
|
||||
"""Warm up this renderer to avoid first-request latency.
|
||||
|
||||
For chat requests:
|
||||
- Jinja2 template compilation
|
||||
@@ -378,7 +377,8 @@ class BaseRenderer(ABC, Generic[_T]):
|
||||
|
||||
async def clear_mm_cache_async(self) -> None:
|
||||
"""Serialize clear_mm_cache through the multimodal executor to avoid
|
||||
races with concurrent process_inputs on the mm_processor_cache."""
|
||||
races with concurrent process_inputs on the mm_processor_cache.
|
||||
"""
|
||||
await self._clear_mm_cache_async()
|
||||
|
||||
def shutdown(self) -> None:
|
||||
@@ -408,8 +408,7 @@ class BaseRenderer(ABC, Generic[_T]):
|
||||
return self.tokenizer.eos_token_id
|
||||
|
||||
def get_dec_start_token_id(self) -> int:
|
||||
"""
|
||||
Obtain the decoder start token id employed by an encoder/decoder model,
|
||||
"""Obtain the decoder start token id employed by an encoder/decoder model,
|
||||
raising an error if it is not available.
|
||||
"""
|
||||
dec_start_token_id = getattr(
|
||||
|
||||
Reference in New Issue
Block a user