Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
echarlaix committed Nov 3, 2023
1 parent a328aa4 commit bb8925e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optimum/intel/openvino/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import time
from itertools import chain
from pathlib import Path
from typing import TYPE_CHECKING, Callable, Dict, List, Optional, Tuple, Type, Union
from typing import Callable, Dict, List, Optional, Tuple, Type, Union

import openvino
import openvino.runtime
Expand Down Expand Up @@ -655,7 +655,7 @@ def _inner_training_loop(

self.control = self.callback_handler.on_epoch_end(args, self.state, self.control)
self._maybe_log_save_evaluate(tr_loss, model, trial, epoch, ignore_keys_for_eval)

if self.control.should_training_stop:
break

Expand Down
2 changes: 1 addition & 1 deletion tests/neural_compressor/test_onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_static_quantization(self, task, model_name, expected_quantized_matmuls)
tokenizer.pad_token = tokenizer.eos_token
quantizer = INCQuantizer.from_pretrained(model, task=task)
calibration_dataset = _generate_dataset(quantizer, tokenizer, num_samples=num_samples)
save_onnx_model = True
save_onnx_model = False
op_type_dict = (
{"Embedding": {"weight": {"dtype": ["fp32"]}, "activation": {"dtype": ["fp32"]}}}
if save_onnx_model
Expand Down

0 comments on commit bb8925e

Please sign in to comment.