[CI] Ignore ruff D209, rejoin the docstrings it split, and silence incompatible-rule warnings (#57212)
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
1085b64425
commit
651a88c09a
@@ -55,8 +55,7 @@ logger = init_logger(__name__)
|
||||
|
||||
class DummyPerReqLogitsProcessor:
|
||||
"""The request-level logits processor masks out all logits except the
|
||||
token id identified by `target_token`
|
||||
"""
|
||||
token id identified by `target_token`"""
|
||||
|
||||
def __init__(self, target_token: int) -> None:
|
||||
"""Specify `target_token`."""
|
||||
@@ -75,8 +74,7 @@ class DummyPerReqLogitsProcessor:
|
||||
|
||||
class WrappedPerReqLogitsProcessor(AdapterLogitsProcessor):
|
||||
"""Example of wrapping a fake request-level logit processor to create a
|
||||
batch-level logits processor
|
||||
"""
|
||||
batch-level logits processor"""
|
||||
|
||||
@classmethod
|
||||
def validate_params(cls, params: SamplingParams):
|
||||
|
||||
@@ -56,8 +56,7 @@ logger = init_logger(__name__)
|
||||
|
||||
class DummyPerReqLogitsProcessor:
|
||||
"""The request-level logits processor masks out all logits except the
|
||||
token id identified by `target_token`
|
||||
"""
|
||||
token id identified by `target_token`"""
|
||||
|
||||
def __init__(self, target_token: int) -> None:
|
||||
"""Specify `target_token`."""
|
||||
@@ -76,8 +75,7 @@ class DummyPerReqLogitsProcessor:
|
||||
|
||||
class WrappedPerReqLogitsProcessor(AdapterLogitsProcessor):
|
||||
"""Example of overriding the wrapper class `__init__()` in order to utilize
|
||||
info about the device type
|
||||
"""
|
||||
info about the device type"""
|
||||
|
||||
@classmethod
|
||||
def validate_params(cls, params: SamplingParams):
|
||||
|
||||
@@ -101,8 +101,7 @@ PROMPTS = ["The capital of France is", "The future of AI is"]
|
||||
class FSDPTrainWorker:
|
||||
"""One FSDP2 rank per GPU. Identical to the 8-GPU example's worker: the
|
||||
sharded-RDT engine owns the NIXL serve surface, so this stays a plain Ray
|
||||
actor with no producer mixin.
|
||||
"""
|
||||
actor with no producer mixin."""
|
||||
|
||||
def __init__(self, model_name, rank, world_size, master_addr, master_port):
|
||||
self.rank = rank
|
||||
|
||||
Reference in New Issue
Block a user