Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit e0c955a

Browse files
natuaneldarkurticrahul-tuli
authored
[Cherry-pick] Downgrade scikit-learn for python3.6 (#1042) (#1043)
* Downgrade scikit-learn for python3.6 (#1042) * Fix paths for training_args.py (#1029) * Fix paths for training_args.py * Fix quality Co-authored-by: Rahul Tuli <rahul@neuralmagic.com> Co-authored-by: Eldar Kurtic <eldar.ciki@gmail.com> Co-authored-by: Rahul Tuli <rahul@neuralmagic.com>
1 parent c067e6e commit e0c955a

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"pydantic>=1.5.0",
4747
"requests>=2.0.0",
4848
"scikit-image>=0.15.0",
49-
"scikit-learn>=1.0.2",
49+
"scikit-learn>=0.24.2",
5050
"scipy>=1.0.0",
5151
"tqdm>=4.0.0",
5252
"toposort>=1.0",

src/sparseml/transformers/masked_language_modeling.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ def __post_init__(self):
289289

290290
@record
291291
def main(**kwargs):
292-
# See all possible arguments in src/transformers/training_args.py
292+
# See all possible arguments in
293+
# src/sparseml/transformers/sparsification/training_args.py
293294
# or by passing the --help flag to this script.
294295
# We now keep distinct sets of args, for a cleaner separation of concerns.
295296

src/sparseml/transformers/question_answering.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,8 @@ def __post_init__(self):
307307

308308
@record
309309
def main(**kwargs):
310-
# See all possible arguments in src/transformers/training_args.py
310+
# See all possible arguments in
311+
# src/sparseml/transformers/sparsification/training_args.py
311312
# or by passing the --help flag to this script.
312313
# We now keep distinct sets of args, for a cleaner separation of concerns.
313314

src/sparseml/transformers/text_classification.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ class ModelArguments:
296296

297297
@record
298298
def main(**kwargs):
299-
# See all possible arguments in src/transformers/training_args.py
299+
# See all possible arguments in
300+
# src/sparseml/transformers/sparsification/training_args.py
300301
# or by passing the --help flag to this script.
301302
# We now keep distinct sets of args, for a cleaner separation of concerns.
302303

src/sparseml/transformers/token_classification.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ def __post_init__(self):
260260

261261
@record
262262
def main(**kwargs):
263-
# See all possible arguments in src/transformers/training_args.py
263+
# See all possible arguments in
264+
# src/sparseml/transformers/sparsification/training_args.py
264265
# or by passing the --help flag to this script.
265266
# We now keep distinct sets of args, for a cleaner separation of concerns.
266267

0 commit comments

Comments
 (0)