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:
Harry Mellor
2026-09-16 16:44:29 +00:00
committed by GitHub
co-authored by Claude Opus 5
parent 804e5377aa
commit 8c1557a79c
2002 changed files with 15024 additions and 14269 deletions
+6 -7
View File
@@ -15,7 +15,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Nemotron model configuration"""
"""Nemotron model configuration."""
from transformers import PretrainedConfig
from transformers.utils import logging
@@ -24,8 +24,7 @@ logger = logging.get_logger(__name__)
class NemotronConfig(PretrainedConfig):
r"""
This is the configuration class to store the configuration of a
r"""This is the configuration class to store the configuration of a
[`NemotronModel`]. It is used to instantiate a Nemotron model
according to the specified arguments, defining the model architecture.
Instantiating a configuration with the defaults will yield a similar
@@ -114,7 +113,9 @@ class NemotronConfig(PretrainedConfig):
>>> model = NemotronModel(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
```"""
```
"""
model_type = "nemotron"
keys_to_ignore_at_inference = ["past_key_values"]
@@ -193,9 +194,7 @@ class NemotronConfig(PretrainedConfig):
)
def _rope_parameters_validation(self):
"""
Validate the `rope_parameters` configuration.
"""
"""Validate the `rope_parameters` configuration."""
if self.rope_parameters is None:
return