Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 089025a

Browse files
committed
Merge branch 'fix_pytorch_pruner' into 1.0b
2 parents 78ee7e7 + 58cd3de commit 089025a

File tree

37 files changed

+71
-59
lines changed

37 files changed

+71
-59
lines changed

docs/tutorials/pytorch/question-answering/bert-large-uncased-whole-word-masking-finetuned-squad.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"import transformers\n",
117117
"from dataclasses import dataclass, field\n",
118118
"from datasets import load_dataset, load_metric\n",
119-
"from nlp_toolkit import metrics , QuantizationConfig\n",
119+
"from intel_extension_for_transformers import metrics , QuantizationConfig\n",
120120
"from transformers import (\n",
121121
" AutoConfig,\n",
122122
" AutoModelForQuestionAnswering,\n",
@@ -161,7 +161,7 @@
161161
"outputs": [],
162162
"source": [
163163
"from transformers import is_torch_tpu_available\n",
164-
"from nlp_toolkit.optimization.trainer import NLPTrainer\n",
164+
"from intel_extension_for_transformers.optimization.trainer import NLPTrainer\n",
165165
"from transformers.trainer_utils import PredictionOutput\n",
166166
"\n",
167167
"if is_torch_tpu_available():\n",

docs/tutorials/pytorch/question-answering/orchestrate_optimizations.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"import timeit\n",
7373
"import torch\n",
7474
"import transformers\n",
75-
"from nlp_toolkit import (\n",
75+
"from intel_extension_for_transformers import (\n",
7676
" metrics,\n",
7777
" PrunerConfig,\n",
7878
" PruningConfig,\n",

docs/tutorials/pytorch/question-answering/pruning.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"import transformers\n",
6767
"from dataclasses import dataclass, field\n",
6868
"from datasets import load_dataset, load_metric\n",
69-
"from nlp_toolkit import metrics, OptimizedModel, PrunerConfig, PruningConfig, PruningMode\n",
69+
"from intel_extension_for_transformers import metrics, OptimizedModel, PrunerConfig, PruningConfig, PruningMode\n",
7070
"from trainer_qa import QuestionAnsweringTrainer\n",
7171
"from transformers import (\n",
7272
" AutoConfig,\n",

docs/tutorials/pytorch/text-classification/orchestrate_optimizations.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"import transformers\n",
7070
"from dataclasses import dataclass, field\n",
7171
"from datasets import load_dataset, load_metric\n",
72-
"from nlp_toolkit import (\n",
72+
"from intel_extension_for_transformers import (\n",
7373
" metrics,\n",
7474
" PrunerConfig,\n",
7575
" PruningConfig,\n",
@@ -78,7 +78,7 @@
7878
" OptimizedModel,\n",
7979
" objectives\n",
8080
")\n",
81-
"from nlp_toolkit.optimization.trainer import NLPTrainer\n",
81+
"from intel_extension_for_transformers.optimization.trainer import NLPTrainer\n",
8282
"from torch.utils.data import DataLoader\n",
8383
"from tqdm.auto import tqdm\n",
8484
"from transformers import (\n",

docs/tutorials/pytorch/text-classification/pruning.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@
6767
"import transformers\n",
6868
"from dataclasses import dataclass, field\n",
6969
"from datasets import load_dataset, load_metric\n",
70-
"from nlp_toolkit import (\n",
70+
"from intel_extension_for_transformers import (\n",
7171
" metrics,\n",
7272
" OptimizedModel,\n",
7373
" PrunerConfig,\n",
7474
" PruningConfig,\n",
7575
")\n",
76-
"from nlp_toolkit.optimization.trainer import NLPTrainer\n",
76+
"from intel_extension_for_transformers.optimization.trainer import NLPTrainer\n",
7777
"from transformers import (\n",
7878
" AutoConfig,\n",
7979
" AutoModelForSequenceClassification,\n",

examples/deployment/neural_engine/emotion/distilbert_base_uncased/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
neural-compressor
1+
neural-compressor==1.14.2
22
transformers==4.23.1
33
accelerate
44
datasets >= 1.8.0

examples/deployment/neural_engine/imagenet/vit/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
neural-compressor
1+
neural-compressor==1.14.2
22
transformers==4.23.1
33
accelerate
44
datasets >= 1.8.0

examples/deployment/neural_engine/mrpc/bert_base/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
neural-compressor
1+
neural-compressor==1.14.2
22
transformers==4.23.1
33
accelerate
44
datasets >= 1.8.0

examples/deployment/neural_engine/mrpc/bert_base_cased/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
neural-compressor
1+
neural-compressor==1.14.2
22
transformers==4.23.1
33
accelerate
44
datasets >= 1.8.0

examples/deployment/neural_engine/mrpc/bert_mini/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
neural-compressor
1+
neural-compressor==1.14.2
22
transformers==4.23.1
33
accelerate
44
datasets >= 1.8.0

0 commit comments

Comments
 (0)