Skip to content

Commit

Permalink
resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed Aug 5, 2024
1 parent 5b17c76 commit d20301a
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/openvino/test_training.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def tearDown(self):
CUSTOMIZED_QUANTIZATION_CONFIG_FOR_BERT,
STRUCTURED_MOVEMENT_SPARSITY_CONFIG_FOR_BERT,
],
expected_fake_quantize=44,
expected_fake_quantize=22,
expected_int8=32,
expected_binary_masks=60,
compression_metrics=["compression_loss"],
Expand All @@ -404,7 +404,7 @@ def tearDown(self):
CUSTOMIZED_QUANTIZATION_CONFIG_FOR_BERT,
STRUCTURED_MOVEMENT_SPARSITY_CONFIG_FOR_BERT,
],
expected_fake_quantize=44,
expected_fake_quantize=22,
expected_int8=32,
expected_binary_masks=60,
compression_metrics=["compression_loss", "distillation_loss", "task_loss"],
Expand Down Expand Up @@ -436,7 +436,7 @@ def tearDown(self):
CUSTOMIZED_QUANTIZATION_CONFIG_FOR_BERT,
UNSTRUCTURED_MOVEMENT_SPARSITY_CONFIG_FOR_BERT,
],
expected_fake_quantize=44,
expected_fake_quantize=22,
expected_int8=32,
expected_binary_masks=60,
compression_metrics=["compression_loss"],
Expand All @@ -457,7 +457,7 @@ def tearDown(self):
CUSTOMIZED_QUANTIZATION_CONFIG_FOR_BERT,
UNSTRUCTURED_MOVEMENT_SPARSITY_CONFIG_FOR_BERT,
],
expected_fake_quantize=44,
expected_fake_quantize=22,
expected_int8=32,
expected_binary_masks=60,
compression_metrics=["compression_loss", "distillation_loss", "task_loss"],
Expand All @@ -479,9 +479,7 @@ def prepare_model_and_dataset(self, desc: OVTrainerTestDescriptor):
self.num_labels = len(self.dataset["train"].features["label"].names)

self.tokenizer = AutoTokenizer.from_pretrained(desc.model_id)
self.model = AutoModelForSequenceClassification.from_pretrained(
desc.model_id, num_labels=self.num_labels, attn_implementation="eager"
)
self.model = AutoModelForSequenceClassification.from_pretrained(desc.model_id, num_labels=self.num_labels)
self.teacher_model = None
if desc.teacher_model_id:
self.teacher_model = AutoModelForSequenceClassification.from_pretrained(
Expand Down

0 comments on commit d20301a

Please sign in to comment.