Olive: Olive workflow for mistral model optimization does not work

Describe the bug Following the instructions in examples/mistral does not result in a quantized onnx model. After running the workflow, my output_model folder within the cache directory contains an onnx model that is 27 GB on disk and the models folder does not contain a quantized model.

To Reproduce Follow the instructions in examples/mistral to run the optimization on CPU using: python mistral.py --optimize --config mistral_int4_optimize.json

Expected behavior Expected to obtain an output model that is around 3.5 GB in the models directory.

Olive config Available here

{
    "input_model": {
        "type": "PyTorchModel",
        "config": {
            "hf_config": {
                "model_name": "mistralai/Mistral-7B-v0.1",
                "model_class": "MistralForCausalLM"
            }
        }
    },
    "systems": {
        "local_system": {
            "type": "LocalSystem",
            "config": {
                "accelerators": [
                    {
                        "device": "cpu",
                        "execution_providers": [
                            "CPUExecutionProvider"
                        ]
                    }
                ]
            }
        }
    },
    "evaluators": {
        "common_evaluator": {
            "metrics": [
                {
                    "name": "latency",
                    "type": "latency",
                    "sub_types": [
                        {
                            "name": "avg",
                            "priority": 1
                        }
                    ],
                    "user_config": {
                        "user_script": "user_script.py",
                        "dataloader_func": "create_dataloader",
                        "batch_size": 1,
                        "inference_settings" : {
                            "onnx": {
                                "session_options": {
                                    "enable_profiling": false
                                }
                            }
                        }
                    }
                }
            ]
        }
    },
    "passes": {
        "convert": {
            "type": "OptimumConversion",
            "config": {
                "target_opset": 14,
                "extra_args": {
                    "legacy": false,
                    "no_post_process": false
                }
            }
        },
        "optimize": {
            "type": "OrtTransformersOptimization",
            "config": {
                "model_type": "gpt2",
                "use_gpu": false,
                "keep_io_types": true,
                "optimization_options": {
                    "use_multi_head_attention": false
                },
                "save_as_external_data": true,
                "all_tensors_to_one_file": true
            }
        },
        "quantization": {
            "type": "IncStaticQuantization",
            "config": {
                "user_script": "user_script.py",
                "approach": "weight_only",
                "weight_only_config": {
                    "bits": 4,
                    "algorithm": "GPTQ"
                },
                "recipes":{
                    "gptq_args": {
                        "accuracy_level": 0
                    }
                },
                "dataloader_func": "calib_dataloader",
                "calibration_sampling_size": [
                    8
                ],
                "save_as_external_data": true,
                "all_tensors_to_one_file": true,
                "diagnosis": false
            }
        }
    },
    "pass_flows": [
        [
            "convert",
            "optimize",
            "quantization"
        ]
    ],
    "engine": {
        "evaluate_input_model": false,
        "evaluator": "common_evaluator",
        "host": "local_system",
        "target": "local_system",
        "cache_dir": "cache",
        "output_dir": "models",
        "output_name": "mistral_int4"
    }
}

Olive logs C:\Olive\examples\mistral>python mistral.py --optimize --config mistral_int4_optimize.json Optimizing mistralai/Mistral-7B-v0.1 [2024-04-11 15:14:42,927] [INFO] [run.py:243:run] Loading Olive module configuration from: C:\Olive\olive\olive_config.json [2024-04-11 15:14:42,933] [INFO] [accelerator.py:324:create_accelerators] Running workflow on accelerator specs: cpu-cpu [2024-04-11 15:14:42,934] [INFO] [run.py:196:run_engine] Importing pass module OptimumConversion [2024-04-11 15:14:42,934] [INFO] [run.py:196:run_engine] Importing pass module OrtTransformersOptimization [2024-04-11 15:14:42,935] [INFO] [run.py:196:run_engine] Importing pass module IncStaticQuantization [2024-04-11 15:14:42,936] [INFO] [engine.py:106:initialize] Using cache directory: cache [2024-04-11 15:14:42,937] [INFO] [engine.py:262:run] Running Olive on accelerator: cpu-cpu [2024-04-11 15:14:43,817] [INFO] [engine.py:864:_run_pass] Running pass convert:OptimumConversion Framework not specified. Using pt to export the model. Loading checkpoint shards: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2/2 [00:06<00:00, 3.22s/it] Automatic task detection to text-generation-with-past (possible synonyms are: causal-lm-with-past). Using the export variant default. Available variants are: - default: The default ONNX variant. Using framework PyTorch: 2.2.1+cu121 Overriding 1 configuration item(s) - use_cache -> True C:\MiniConda3\envs\myonnxrt\lib\site-packages\transformers\modeling_attn_mask_utils.py:114: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can’t record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! if (input_shape[-1] > 1 or self.sliding_window is not None) and self.is_causal: C:\MiniConda3\envs\myonnxrt\lib\site-packages\optimum\exporters\onnx\model_patcher.py:301: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can’t record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! if past_key_values_length > 0: C:\MiniConda3\envs\myonnxrt\lib\site-packages\transformers\models\mistral\modeling_mistral.py:120: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can’t record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! if seq_len > self.max_seq_len_cached: C:\MiniConda3\envs\myonnxrt\lib\site-packages\transformers\models\mistral\modeling_mistral.py:676: TracerWarning: Converting a tensor to a Python boolean might cause the trace to be incorrect. We can’t record the data flow of Python values, so this value will be treated as a constant in the future. This means that the trace might not generalize to other inputs! if attention_mask.size() != (bsz, 1, q_len, kv_seq_len): In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode In-place op on output of tensor.shape. See https://pytorch.org/docs/master/onnx.html#avoid-inplace-operations-when-using-tensor-shape-in-tracing-mode Saving external data to one file… Post-processing the exported models… Deduplicating shared (tied) weights… Validating ONNX model cache/models/0_OptimumConversion-d3eae021dc4ad3d4cdbc16eba52ef561-ad904e90276e2793a36f3373323e91e1/output_model/model.onnx… -[✓] ONNX model output names match reference model (present.31.key, present.18.key, present.13.value, present.0.value, present.7.key, present.20.value, present.15.key, present.3.key, present.18.value, present.29.value, present.14.value, present.4.value, present.9.value, present.26.key, present.24.value, present.27.key, present.23.value, present.10.value, present.6.value, present.28.key, present.4.key, present.8.key, present.17.key, present.1.key, present.27.value, present.16.value, present.11.key, present.15.value, present.23.key, present.21.key, present.5.key, present.7.value, present.21.value, present.26.value, present.30.key, present.0.key, present.2.value, present.11.value, present.9.key, present.16.key, present.17.value, present.19.value, present.10.key, present.20.key, present.25.value, present.31.value, present.29.key, present.2.key, present.25.key, present.28.value, present.8.value, present.24.key, present.30.value, present.12.value, present.13.key, present.22.key, present.22.value, present.12.key, present.19.key, present.14.key, present.1.value, present.6.key, logits, present.3.value, present.5.value) - Validating ONNX Model output “logits”: -[✓] (2, 16, 32000) matches (2, 16, 32000) -[x] values not close enough, max diff: 3.62396240234375e-05 (atol: 1e-05) - Validating ONNX Model output “present.0.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.0.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.1.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.1.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.2.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.2.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.3.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.3.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.4.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.4.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.5.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.5.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.6.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.6.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.7.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.7.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.8.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.8.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.9.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.9.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.10.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.10.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.11.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.11.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.12.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.12.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.13.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.5854835510253906e-05 (atol: 1e-05) - Validating ONNX Model output “present.13.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.14.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.14.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.15.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.7523765563964844e-05 (atol: 1e-05) - Validating ONNX Model output “present.15.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.16.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 2.0742416381835938e-05 (atol: 1e-05) - Validating ONNX Model output “present.16.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.17.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 2.6702880859375e-05 (atol: 1e-05) - Validating ONNX Model output “present.17.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.18.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 3.0279159545898438e-05 (atol: 1e-05) - Validating ONNX Model output “present.18.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.19.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 4.1961669921875e-05 (atol: 1e-05) - Validating ONNX Model output “present.19.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.20.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 4.935264587402344e-05 (atol: 1e-05) - Validating ONNX Model output “present.20.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.21.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 5.6743621826171875e-05 (atol: 1e-05) - Validating ONNX Model output “present.21.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.22.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 5.91278076171875e-05 (atol: 1e-05) - Validating ONNX Model output “present.22.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.23.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 5.5789947509765625e-05 (atol: 1e-05) - Validating ONNX Model output “present.23.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.24.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 4.0531158447265625e-05 (atol: 1e-05) - Validating ONNX Model output “present.24.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.25.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 3.4809112548828125e-05 (atol: 1e-05) - Validating ONNX Model output “present.25.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.26.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 3.814697265625e-05 (atol: 1e-05) - Validating ONNX Model output “present.26.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.1026859283447266e-05 (atol: 1e-05) - Validating ONNX Model output “present.27.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 2.956390380859375e-05 (atol: 1e-05) - Validating ONNX Model output “present.27.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.28.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 3.0040740966796875e-05 (atol: 1e-05) - Validating ONNX Model output “present.28.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.2159347534179688e-05 (atol: 1e-05) - Validating ONNX Model output “present.29.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.7642974853515625e-05 (atol: 1e-05) - Validating ONNX Model output “present.29.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.9088387489318848e-05 (atol: 1e-05) - Validating ONNX Model output “present.30.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.9550323486328125e-05 (atol: 1e-05) - Validating ONNX Model output “present.30.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.519918441772461e-05 (atol: 1e-05) - Validating ONNX Model output “present.31.key”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[✓] all values close (atol: 1e-05) - Validating ONNX Model output “present.31.value”: -[✓] (2, 8, 32, 128) matches (2, 8, 32, 128) -[x] values not close enough, max diff: 1.52587890625e-05 (atol: 1e-05) The ONNX export succeeded with the warning: The maximum absolute difference between the output of the reference model and the ONNX exported model is not within the set tolerance 1e-05:

  • logits: max diff = 3.62396240234375e-05
  • present.13.key: max diff = 1.5854835510253906e-05
  • present.15.key: max diff = 1.7523765563964844e-05
  • present.16.key: max diff = 2.0742416381835938e-05
  • present.17.key: max diff = 2.6702880859375e-05
  • present.18.key: max diff = 3.0279159545898438e-05
  • present.19.key: max diff = 4.1961669921875e-05
  • present.20.key: max diff = 4.935264587402344e-05
  • present.21.key: max diff = 5.6743621826171875e-05
  • present.22.key: max diff = 5.91278076171875e-05
  • present.23.key: max diff = 5.5789947509765625e-05
  • present.24.key: max diff = 4.0531158447265625e-05
  • present.25.key: max diff = 3.4809112548828125e-05
  • present.26.key: max diff = 3.814697265625e-05
  • present.26.value: max diff = 1.1026859283447266e-05
  • present.27.key: max diff = 2.956390380859375e-05
  • present.28.key: max diff = 3.0040740966796875e-05
  • present.28.value: max diff = 1.2159347534179688e-05
  • present.29.key: max diff = 1.7642974853515625e-05
  • present.29.value: max diff = 1.9088387489318848e-05
  • present.30.key: max diff = 1.9550323486328125e-05
  • present.30.value: max diff = 1.519918441772461e-05
  • present.31.value: max diff = 1.52587890625e-05. The exported model was saved at: cache/models/0_OptimumConversion-d3eae021dc4ad3d4cdbc16eba52ef561-ad904e90276e2793a36f3373323e91e1/output_model [2024-04-11 15:23:26,254] [INFO] [engine.py:951:_run_pass] Pass convert:OptimumConversion finished in 522.433565 seconds [2024-04-11 15:23:26,296] [INFO] [engine.py:864:_run_pass] Running pass optimize:OrtTransformersOptimization

Other information

  • OS: Windows 11 Pro
  • Olive version: 0.6.0
  • ONNXRuntime package and version: onnxruntime-gpu 1.17.1

Additional context It appears that the quantization is not being performed at all. So checking out what the issue is.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (1 by maintainers)

Most upvoted comments