Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"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,
1024
],
"value_range": [
2,
3
]
},
{
"name": "attention_mask",
"dtype": "int32",
"shape": [
1,
1024
],
"value_range": [
0,
2
]
}
],
"output_tensors": [
{
"name": "logits"
}
]
},
"optim": {
"clamp_constant_values": true,
"gelu_fusion": true,
"matmul_add_fusion": true,
"remove_isnan_in_attention_mask": true
},
"quant": null,
"compile": null,
"loader": {
"task": "text-classification",
"model_class": "AutoModelForSequenceClassification",
"model_type": "bart"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"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,
1024
],
"value_range": [
2,
3
]
},
{
"name": "attention_mask",
"dtype": "int32",
"shape": [
1,
1024
],
"value_range": [
0,
2
]
}
],
"output_tensors": [
{
"name": "logits"
}
]
},
"optim": {
"clamp_constant_values": true,
"gelu_fusion": true,
"matmul_add_fusion": true,
"remove_isnan_in_attention_mask": true
},
"quant": null,
"compile": null,
"loader": {
"task": "text-classification",
"model_class": "AutoModelForSequenceClassification",
"model_type": "bart"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"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,
1024
],
"value_range": [
2,
3
]
},
{
"name": "attention_mask",
"dtype": "int32",
"shape": [
1,
1024
],
"value_range": [
0,
2
]
}
],
"output_tensors": [
{
"name": "logits"
}
]
},
"optim": {
"clamp_constant_values": true,
"gelu_fusion": true,
"matmul_add_fusion": true,
"remove_isnan_in_attention_mask": true
},
"quant": null,
"compile": null,
"loader": {
"task": "text-classification",
"model_class": "AutoModelForSequenceClassification",
"model_type": "bart"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"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,
1024
],
"value_range": [
2,
3
]
},
{
"name": "attention_mask",
"dtype": "int32",
"shape": [
1,
1024
],
"value_range": [
0,
2
]
}
],
"output_tensors": [
{
"name": "logits"
}
]
},
"optim": {
"clamp_constant_values": true,
"gelu_fusion": true,
"matmul_add_fusion": true,
"remove_isnan_in_attention_mask": true
},
"quant": null,
"compile": null,
"loader": {
"task": "text-classification",
"model_class": "AutoModelForSequenceClassification",
"model_type": "bart"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"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,
1024
],
"value_range": [
2,
3
]
},
{
"name": "attention_mask",
"dtype": "int32",
"shape": [
1,
1024
],
"value_range": [
0,
2
]
}
],
"output_tensors": [
{
"name": "logits"
}
]
},
"optim": {
"clamp_constant_values": true,
"gelu_fusion": true,
"matmul_add_fusion": true,
"remove_isnan_in_attention_mask": true
},
"quant": null,
"compile": null,
"loader": {
"task": "text-classification",
"model_class": "AutoModelForSequenceClassification",
"model_type": "bart"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"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,
1024
],
"value_range": [
2,
3
]
},
{
"name": "attention_mask",
"dtype": "int32",
"shape": [
1,
1024
],
"value_range": [
0,
2
]
}
],
"output_tensors": [
{
"name": "logits"
}
]
},
"optim": {
"clamp_constant_values": true,
"gelu_fusion": true,
"matmul_add_fusion": true,
"remove_isnan_in_attention_mask": true
},
"quant": null,
"compile": null,
"loader": {
"task": "text-classification",
"model_class": "AutoModelForSequenceClassification",
"model_type": "bart"
}
}
4 changes: 4 additions & 0 deletions src/winml/modelkit/models/hf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
from .bart import MODEL_CLASS_MAPPING as _BART_CLASS_MAPPING
from .bart import BartDecoderIOConfig as _BartDecoderIOConfig # triggers registration
from .bart import BartEncoderIOConfig as _BartEncoderIOConfig # triggers registration
from .bart import (
# triggers registration
BartSequenceClassificationIOConfig as _BartSequenceClassificationIOConfig,
)
from .bert import BERT_CONFIG
from .blip import BLIP_CONFIG
from .blip import MODEL_CLASS_MAPPING as _BLIP_CLASS_MAPPING
Expand Down
Loading
Loading