From 877200a6778d65c437a3f99bdb2d570536afed96 Mon Sep 17 00:00:00 2001 From: jinkun Date: Thu, 16 Jul 2026 14:29:43 +0800 Subject: [PATCH 1/4] recipe(yolos-fashionpedia): add object detection recipes --- examples/recipes/README.md | 3 +- .../object-detection_fp16_config.json | 84 +++++++++++++++++++ .../object-detection_w8a8_config.json | 82 ++++++++++++++++++ 3 files changed, 168 insertions(+), 1 deletion(-) create mode 100644 examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json create mode 100644 examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json diff --git a/examples/recipes/README.md b/examples/recipes/README.md index 1077e4f74..c6e1bdb40 100644 --- a/examples/recipes/README.md +++ b/examples/recipes/README.md @@ -14,7 +14,7 @@ Each *(model, task)* includes: ## Models -Total: **75** (model, task) tuples that pass fp16 eval on all 10 (EP, device) buckets. +Total: **76** (model, task) tuples that pass fp16 eval on all 10 (EP, device) buckets. | Model | Task | |---|---| @@ -92,4 +92,5 @@ Total: **75** (model, task) tuples that pass fp16 eval on all 10 (EP, device) bu | sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 | feature-extraction | | sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 | sentence-similarity | | sentence-transformers/paraphrase-multilingual-mpnet-base-v2 | sentence-similarity | +| valentinafevu/yolos-fashionpedia | object-detection | | w11wo/indonesian-roberta-base-posp-tagger | token-classification | diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json new file mode 100644 index 000000000..0f7c6af81 --- /dev/null +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json @@ -0,0 +1,84 @@ +{ + "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, + 512, + 864 + ], + "value_range": [ + 0, + 1 + ] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + } + ] + }, + "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, + "task": "object-detection", + "model_id": "valentinafevu/yolos-fashionpedia", + "model_type": "yolos", + "fp16_keep_io_types": true, + "fp16_op_block_list": null + }, + "compile": null, + "loader": { + "task": "object-detection", + "model_class": "AutoModelForObjectDetection", + "model_type": "yolos" + }, + "eval": { + "task": "object-detection", + "dataset": { + "path": "detection-datasets/fashionpedia", + "split": "val", + "samples": 100, + "shuffle": true, + "seed": 42, + "columns_mapping": { + "annotation_column": "objects", + "bbox_key": "bbox", + "category_key": "category", + "box_format": "xyxy", + "box_coords": "absolute" + } + } + } +} diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json new file mode 100644 index 000000000..4788b9b1e --- /dev/null +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json @@ -0,0 +1,82 @@ +{ + "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, + 512, + 864 + ], + "value_range": [ + 0, + 1 + ] + } + ], + "output_tensors": [ + { + "name": "logits" + }, + { + "name": "pred_boxes" + } + ] + }, + "optim": {}, + "quant": { + "mode": "static", + "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, + "task": "object-detection", + "model_id": "valentinafevu/yolos-fashionpedia", + "model_type": "yolos" + }, + "compile": null, + "loader": { + "task": "object-detection", + "model_class": "AutoModelForObjectDetection", + "model_type": "yolos" + }, + "eval": { + "task": "object-detection", + "dataset": { + "path": "detection-datasets/fashionpedia", + "split": "val", + "samples": 500, + "shuffle": true, + "seed": 42, + "columns_mapping": { + "annotation_column": "objects", + "bbox_key": "bbox", + "category_key": "category", + "box_format": "xyxy", + "box_coords": "absolute" + } + } + } +} From d4222ad81204c266a70a2732b5dd32f1774b80ed Mon Sep 17 00:00:00 2001 From: Shiyi Zheng Date: Wed, 22 Jul 2026 21:05:45 +0800 Subject: [PATCH 2/4] Remove recipe README changes --- examples/recipes/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/recipes/README.md b/examples/recipes/README.md index c6e1bdb40..1077e4f74 100644 --- a/examples/recipes/README.md +++ b/examples/recipes/README.md @@ -14,7 +14,7 @@ Each *(model, task)* includes: ## Models -Total: **76** (model, task) tuples that pass fp16 eval on all 10 (EP, device) buckets. +Total: **75** (model, task) tuples that pass fp16 eval on all 10 (EP, device) buckets. | Model | Task | |---|---| @@ -92,5 +92,4 @@ Total: **76** (model, task) tuples that pass fp16 eval on all 10 (EP, device) bu | sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 | feature-extraction | | sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 | sentence-similarity | | sentence-transformers/paraphrase-multilingual-mpnet-base-v2 | sentence-similarity | -| valentinafevu/yolos-fashionpedia | object-detection | | w11wo/indonesian-roberta-base-posp-tagger | token-classification | From daf6d182375aec7b2b2fd2c7d5406656a715b409 Mon Sep 17 00:00:00 2001 From: "Shiyi Zheng (from Dev Box)" Date: Thu, 23 Jul 2026 03:49:30 +0800 Subject: [PATCH 3/4] recipe(yolos-fashionpedia): align CPU precision coverage --- .../cpu}/object-detection_fp16_config.json | 26 ++++------- .../cpu/object-detection_fp32_config.json} | 45 +++++-------------- 2 files changed, 19 insertions(+), 52 deletions(-) rename examples/recipes/valentinafevu_yolos-fashionpedia/{ => cpu/cpu}/object-detection_fp16_config.json (82%) rename examples/recipes/valentinafevu_yolos-fashionpedia/{object-detection_w8a8_config.json => cpu/cpu/object-detection_fp32_config.json} (54%) diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json similarity index 82% rename from examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json rename to examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json index 0f7c6af81..4ac48d6cf 100644 --- a/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_fp16_config.json +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json @@ -13,16 +13,8 @@ { "name": "pixel_values", "dtype": "float32", - "shape": [ - 1, - 3, - 512, - 864 - ], - "value_range": [ - 0, - 1 - ] + "shape": [1, 3, 512, 864], + "value_range": [0, 1] } ], "output_tensors": [ @@ -52,9 +44,6 @@ "calibration_save_path": null, "op_types_to_quantize": null, "nodes_to_exclude": null, - "task": "object-detection", - "model_id": "valentinafevu/yolos-fashionpedia", - "model_type": "yolos", "fp16_keep_io_types": true, "fp16_op_block_list": null }, @@ -68,17 +57,20 @@ "task": "object-detection", "dataset": { "path": "detection-datasets/fashionpedia", + "revision": "80845435ce686b8a9dbf70a05452fbfb8e09cdd7", "split": "val", - "samples": 100, - "shuffle": true, + "samples": 10, + "shuffle": false, "seed": 42, + "streaming": true, "columns_mapping": { + "input_column": "image", "annotation_column": "objects", "bbox_key": "bbox", "category_key": "category", - "box_format": "xyxy", + "box_format": "xywh", "box_coords": "absolute" } } } -} +} \ No newline at end of file diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json similarity index 54% rename from examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json rename to examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json index 4788b9b1e..c37ec87de 100644 --- a/examples/recipes/valentinafevu_yolos-fashionpedia/object-detection_w8a8_config.json +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json @@ -13,16 +13,8 @@ { "name": "pixel_values", "dtype": "float32", - "shape": [ - 1, - 3, - 512, - 864 - ], - "value_range": [ - 0, - 1 - ] + "shape": [1, 3, 512, 864], + "value_range": [0, 1] } ], "output_tensors": [ @@ -35,27 +27,7 @@ ] }, "optim": {}, - "quant": { - "mode": "static", - "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, - "task": "object-detection", - "model_id": "valentinafevu/yolos-fashionpedia", - "model_type": "yolos" - }, + "quant": null, "compile": null, "loader": { "task": "object-detection", @@ -66,17 +38,20 @@ "task": "object-detection", "dataset": { "path": "detection-datasets/fashionpedia", + "revision": "80845435ce686b8a9dbf70a05452fbfb8e09cdd7", "split": "val", - "samples": 500, - "shuffle": true, + "samples": 10, + "shuffle": false, "seed": 42, + "streaming": true, "columns_mapping": { + "input_column": "image", "annotation_column": "objects", "bbox_key": "bbox", "category_key": "category", - "box_format": "xyxy", + "box_format": "xywh", "box_coords": "absolute" } } } -} +} \ No newline at end of file From 587dc4940ccc55052f92cfcf7471c483abbfbbee Mon Sep 17 00:00:00 2001 From: "Shiyi Zheng (from Dev Box)" Date: Thu, 23 Jul 2026 12:51:26 +0800 Subject: [PATCH 4/4] recipe(yolos-fashionpedia): refresh Dynamo recipes --- .../cpu/cpu/object-detection_fp16_config.json | 2 +- .../cpu/cpu/object-detection_fp32_config.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json index 4ac48d6cf..d919702d4 100644 --- a/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp16_config.json @@ -5,7 +5,7 @@ "export_params": true, "do_constant_folding": true, "verbose": false, - "dynamo": false, + "dynamo": true, "enable_hierarchy_tags": true, "clean_onnx": false, "hierarchy_tag_format": "full", diff --git a/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json index c37ec87de..59b0243cb 100644 --- a/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json +++ b/examples/recipes/valentinafevu_yolos-fashionpedia/cpu/cpu/object-detection_fp32_config.json @@ -5,7 +5,7 @@ "export_params": true, "do_constant_folding": true, "verbose": false, - "dynamo": false, + "dynamo": true, "enable_hierarchy_tags": true, "clean_onnx": false, "hierarchy_tag_format": "full",