|
18 | 18 |
|
19 | 19 |
|
20 | 20 | 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 |
22 | 23 | Ovis2VisionModel model according to the specified arguments, defining the model architecture. Instantiating a configuration
|
23 | 24 | with the defaults will yield a similar configuration to that of Ovis2.
|
24 | 25 |
|
@@ -58,7 +59,7 @@ class Ovis2VisionConfig(PretrainedConfig):
|
58 | 59 | The standard deviation of the truncated normal initializer for initializing all weight matrices.
|
59 | 60 | tokenize_function (`str`, *optional*, defaults to `"softmax"`):
|
60 | 61 | The function used to tokenize the visual indicator tokens.
|
61 |
| - ```""" |
| 62 | + """ |
62 | 63 |
|
63 | 64 | base_config_key = "vision_config"
|
64 | 65 |
|
@@ -106,7 +107,8 @@ def __init__(
|
106 | 107 |
|
107 | 108 |
|
108 | 109 | 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 |
110 | 112 | Ovis2 model according to the specified arguments, defining the model architecture. Instantiating a configuration
|
111 | 113 | with the defaults will yield a similar configuration to that of Ovis2.
|
112 | 114 |
|
@@ -140,7 +142,8 @@ class Ovis2Config(PretrainedConfig):
|
140 | 142 |
|
141 | 143 | >>> # Accessing the model configuration
|
142 | 144 | >>> configuration = model.config
|
143 |
| - ```""" |
| 145 | + ``` |
| 146 | + """ |
144 | 147 |
|
145 | 148 | model_type = "ovis2"
|
146 | 149 | sub_configs = {"text_config": Qwen2Config, "vision_config": Ovis2VisionConfig}
|
|
0 commit comments