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
@@ -618,9 +618,7 @@ class Qwen3ASRForConditionalGeneration(
|
||||
return llm_positions, mrope_position_delta
|
||||
|
||||
def get_mm_mapping(self) -> MultiModelKeys:
|
||||
"""
|
||||
Get the module prefix in multimodal models
|
||||
"""
|
||||
"""Get the module prefix in multimodal models."""
|
||||
return MultiModelKeys.from_string_field(
|
||||
language_model="language_model",
|
||||
tower_model=["audio_tower."],
|
||||
@@ -703,8 +701,7 @@ class Qwen3ASRForConditionalGeneration(
|
||||
|
||||
@classmethod
|
||||
def post_process_output(cls, text: str) -> str:
|
||||
"""
|
||||
Post-process Qwen3-ASR raw output to extract clean transcription.
|
||||
"""Post-process Qwen3-ASR raw output to extract clean transcription.
|
||||
|
||||
The model outputs in format: "language {lang}<asr_text>{transcription}"
|
||||
This method strips the language prefix and asr_text tags.
|
||||
|
||||
Reference in New Issue
Block a user