diff --git a/examples/recipes/deepset_roberta-large-squad2/cpu/cpu/question-answering_fp16_config.json b/examples/recipes/deepset_roberta-large-squad2/cpu/cpu/question-answering_fp16_config.json new file mode 100644 index 000000000..1c8a70440 --- /dev/null +++ b/examples/recipes/deepset_roberta-large-squad2/cpu/cpu/question-answering_fp16_config.json @@ -0,0 +1,70 @@ +{ + "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": "input_ids", + "dtype": "int32", + "shape": [ + 1, + 512 + ], + "value_range": [ + 0, + 50265 + ] + }, + { + "name": "attention_mask", + "dtype": "int32", + "shape": [ + 1, + 512 + ], + "value_range": [ + 0, + 2 + ] + } + ], + "output_tensors": [ + { + "name": "start_logits" + }, + { + "name": "end_logits" + } + ] + }, + "optim": { + "clamp_constant_values": true + }, + "quant": null, + "loader": { + "task": "question-answering", + "model_class": "AutoModelForQuestionAnswering", + "model_type": "roberta" + }, + "eval": { + "task": "question-answering", + "dataset": { + "path": "rajpurkar/squad_v2", + "split": "validation", + "samples": 100, + "columns_mapping": { + "question_column": "question", + "context_column": "context", + "id_column": "id", + "label_column": "answers" + } + } + } +} diff --git a/examples/recipes/deepset_roberta-large-squad2/cpu/cpu/question-answering_fp32_config.json b/examples/recipes/deepset_roberta-large-squad2/cpu/cpu/question-answering_fp32_config.json new file mode 100644 index 000000000..1c8a70440 --- /dev/null +++ b/examples/recipes/deepset_roberta-large-squad2/cpu/cpu/question-answering_fp32_config.json @@ -0,0 +1,70 @@ +{ + "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": "input_ids", + "dtype": "int32", + "shape": [ + 1, + 512 + ], + "value_range": [ + 0, + 50265 + ] + }, + { + "name": "attention_mask", + "dtype": "int32", + "shape": [ + 1, + 512 + ], + "value_range": [ + 0, + 2 + ] + } + ], + "output_tensors": [ + { + "name": "start_logits" + }, + { + "name": "end_logits" + } + ] + }, + "optim": { + "clamp_constant_values": true + }, + "quant": null, + "loader": { + "task": "question-answering", + "model_class": "AutoModelForQuestionAnswering", + "model_type": "roberta" + }, + "eval": { + "task": "question-answering", + "dataset": { + "path": "rajpurkar/squad_v2", + "split": "validation", + "samples": 100, + "columns_mapping": { + "question_column": "question", + "context_column": "context", + "id_column": "id", + "label_column": "answers" + } + } + } +}