diff --git a/examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp16_config.json b/examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp16_config.json new file mode 100644 index 000000000..312f5defa --- /dev/null +++ b/examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp16_config.json @@ -0,0 +1,74 @@ +{ + "export": { + "opset_version": 17, + "batch_size": 1, + "export_params": true, + "do_constant_folding": true, + "verbose": false, + "dynamo": false, + "enable_hierarchy_tags": true, + "clean_onnx": false, + "hierarchy_tag_format": "full", + "input_tensors": [ + { + "name": "pixel_values", + "dtype": "float32", + "shape": [1, 3, 960, 960], + "value_range": [0, 1] + }, + { + "name": "input_ids", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 49408] + }, + { + "name": "attention_mask", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 2] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + }, + { + "name": "text_embeds" + }, + { + "name": "image_embeds" + } + ] + }, + "optim": {}, + "quant": { + "mode": "fp16", + "samples": 10, + "calibration_method": "minmax", + "weight_type": "uint8", + "activation_type": "uint8", + "per_channel": false, + "symmetric": false, + "weight_symmetric": null, + "activation_symmetric": null, + "save_calibration": false, + "distribution": "uniform", + "seed": null, + "calibration_load_path": null, + "calibration_save_path": null, + "op_types_to_quantize": null, + "nodes_to_exclude": null, + "fp16_keep_io_types": true, + "fp16_op_block_list": null + }, + "compile": null, + "loader": { + "task": "zero-shot-object-detection", + "model_class": "AutoModelForZeroShotObjectDetection", + "model_type": "owlv2" + } +} diff --git a/examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp32_config.json b/examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp32_config.json new file mode 100644 index 000000000..811bf77c1 --- /dev/null +++ b/examples/recipes/google_owlv2-base-patch16-ensemble/cpu/cpu/zero-shot-object-detection_fp32_config.json @@ -0,0 +1,55 @@ +{ + "export": { + "opset_version": 17, + "batch_size": 1, + "export_params": true, + "do_constant_folding": true, + "verbose": false, + "dynamo": false, + "enable_hierarchy_tags": true, + "clean_onnx": false, + "hierarchy_tag_format": "full", + "input_tensors": [ + { + "name": "pixel_values", + "dtype": "float32", + "shape": [1, 3, 960, 960], + "value_range": [0, 1] + }, + { + "name": "input_ids", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 49408] + }, + { + "name": "attention_mask", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 2] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + }, + { + "name": "text_embeds" + }, + { + "name": "image_embeds" + } + ] + }, + "optim": {}, + "quant": null, + "compile": null, + "loader": { + "task": "zero-shot-object-detection", + "model_class": "AutoModelForZeroShotObjectDetection", + "model_type": "owlv2" + } +} diff --git a/examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp16_config.json b/examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp16_config.json new file mode 100644 index 000000000..312f5defa --- /dev/null +++ b/examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp16_config.json @@ -0,0 +1,74 @@ +{ + "export": { + "opset_version": 17, + "batch_size": 1, + "export_params": true, + "do_constant_folding": true, + "verbose": false, + "dynamo": false, + "enable_hierarchy_tags": true, + "clean_onnx": false, + "hierarchy_tag_format": "full", + "input_tensors": [ + { + "name": "pixel_values", + "dtype": "float32", + "shape": [1, 3, 960, 960], + "value_range": [0, 1] + }, + { + "name": "input_ids", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 49408] + }, + { + "name": "attention_mask", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 2] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + }, + { + "name": "text_embeds" + }, + { + "name": "image_embeds" + } + ] + }, + "optim": {}, + "quant": { + "mode": "fp16", + "samples": 10, + "calibration_method": "minmax", + "weight_type": "uint8", + "activation_type": "uint8", + "per_channel": false, + "symmetric": false, + "weight_symmetric": null, + "activation_symmetric": null, + "save_calibration": false, + "distribution": "uniform", + "seed": null, + "calibration_load_path": null, + "calibration_save_path": null, + "op_types_to_quantize": null, + "nodes_to_exclude": null, + "fp16_keep_io_types": true, + "fp16_op_block_list": null + }, + "compile": null, + "loader": { + "task": "zero-shot-object-detection", + "model_class": "AutoModelForZeroShotObjectDetection", + "model_type": "owlv2" + } +} diff --git a/examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp32_config.json b/examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp32_config.json new file mode 100644 index 000000000..811bf77c1 --- /dev/null +++ b/examples/recipes/google_owlv2-base-patch16-ensemble/dml/gpu/zero-shot-object-detection_fp32_config.json @@ -0,0 +1,55 @@ +{ + "export": { + "opset_version": 17, + "batch_size": 1, + "export_params": true, + "do_constant_folding": true, + "verbose": false, + "dynamo": false, + "enable_hierarchy_tags": true, + "clean_onnx": false, + "hierarchy_tag_format": "full", + "input_tensors": [ + { + "name": "pixel_values", + "dtype": "float32", + "shape": [1, 3, 960, 960], + "value_range": [0, 1] + }, + { + "name": "input_ids", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 49408] + }, + { + "name": "attention_mask", + "dtype": "int32", + "shape": [1, 16], + "value_range": [0, 2] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + }, + { + "name": "text_embeds" + }, + { + "name": "image_embeds" + } + ] + }, + "optim": {}, + "quant": null, + "compile": null, + "loader": { + "task": "zero-shot-object-detection", + "model_class": "AutoModelForZeroShotObjectDetection", + "model_type": "owlv2" + } +}