update ruff version (#30932)

* update ruff version

* fix research projects

* Empty

* Fix errors

---------

Co-authored-by: Lysandre <lysandre@huggingface.co>
This commit is contained in:
Arthur
2024-05-22 06:40:15 +02:00
committed by GitHub
parent 60bb571e99
commit 673440d073
1172 changed files with 1555 additions and 1861 deletions

View File

@@ -15,6 +15,7 @@
"""
Preprocessing script before distillation.
"""
import argparse
import logging
import pickle

View File

@@ -16,6 +16,7 @@
Preprocessing script before training the distilled model.
Specific to RoBERTa -> DistilRoBERTa and GPT2 -> DistilGPT2.
"""
import argparse
import torch

View File

@@ -16,6 +16,7 @@
Preprocessing script before training DistilBERT.
Specific to BERT -> DistilBERT.
"""
import argparse
import torch

View File

@@ -15,6 +15,7 @@
"""
Preprocessing script before training the distilled model.
"""
import argparse
import logging
import pickle