Skip to content

Commit aa45824

Browse files
vasquCyrilvallez
andauthored
[CI] Fix repo consistency (#40249)
* fix * doc --------- Co-authored-by: Cyril Vallez <[email protected]>
1 parent d6fad86 commit aa45824

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

src/transformers/models/ovis2/configuration_ovis2.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818

1919

2020
class Ovis2VisionConfig(PretrainedConfig):
21-
r"""This is the configuration class to store the configuration of a [`Ovis2VisionModel`]. It is used to instantiate a
21+
r"""
22+
This is the configuration class to store the configuration of a [`Ovis2VisionModel`]. It is used to instantiate a
2223
Ovis2VisionModel model according to the specified arguments, defining the model architecture. Instantiating a configuration
2324
with the defaults will yield a similar configuration to that of Ovis2.
2425
@@ -58,7 +59,7 @@ class Ovis2VisionConfig(PretrainedConfig):
5859
The standard deviation of the truncated normal initializer for initializing all weight matrices.
5960
tokenize_function (`str`, *optional*, defaults to `"softmax"`):
6061
The function used to tokenize the visual indicator tokens.
61-
```"""
62+
"""
6263

6364
base_config_key = "vision_config"
6465

@@ -106,7 +107,8 @@ def __init__(
106107

107108

108109
class Ovis2Config(PretrainedConfig):
109-
r"""This is the configuration class to store the configuration of a [`Ovis2ForConditionalGeneration`]. It is used to instantiate a
110+
r"""
111+
This is the configuration class to store the configuration of a [`Ovis2ForConditionalGeneration`]. It is used to instantiate a
110112
Ovis2 model according to the specified arguments, defining the model architecture. Instantiating a configuration
111113
with the defaults will yield a similar configuration to that of Ovis2.
112114
@@ -140,7 +142,8 @@ class Ovis2Config(PretrainedConfig):
140142
141143
>>> # Accessing the model configuration
142144
>>> configuration = model.config
143-
```"""
145+
```
146+
"""
144147

145148
model_type = "ovis2"
146149
sub_configs = {"text_config": Qwen2Config, "vision_config": Ovis2VisionConfig}

src/transformers/models/ovis2/modeling_ovis2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ def get_decoder(self):
769769
def get_image_features(self, pixel_values: torch.FloatTensor):
770770
return self.model.get_image_features(pixel_values=pixel_values)
771771

772-
# Make modules available throught conditional class for BC
772+
# Make modules available through conditional class for BC
773773
@property
774774
def language_model(self):
775775
return self.model.language_model

0 commit comments

Comments
 (0)