-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathbert-base-multilingual-cased_context_ov_static.json
More file actions
99 lines (99 loc) · 2.82 KB
/
bert-base-multilingual-cased_context_ov_static.json
File metadata and controls
99 lines (99 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"input_model": {
"type": "HfModel",
"model_path": "google-bert/bert-base-multilingual-cased",
"task": "fill-mask"
},
"systems": {
"local_system": {
"type": "LocalSystem",
"accelerators": [
{
"device": "npu",
"execution_providers": [
"OpenVINOExecutionProvider"
]
}
]
}
},
"data_configs": [
{
"name": "quantize_data_config",
"user_script": "user_script.py",
"load_dataset_config": {
"type": "bert_base_multilingual_cased_dataset",
"data_name": "wikipedia",
"split": "train",
"max_samples": 300
},
"dataloader_config": {
"batch_size": 1,
"drop_last": true
}
}
],
"evaluators": {
"common_evaluator": {
"metrics": [
{
"name": "latency",
"type": "latency",
"sub_types": [
{ "name": "avg", "priority": 1, "metric_config": { "warmup_num": 20, "repeat_test_num": 100 } },
{ "name": "p90", "metric_config": { "warmup_num": 20, "repeat_test_num": 100 } }
]
}
]
}
},
"passes": {
"optimum_convert": {
"type": "OpenVINOOptimumConversion",
"extra_args": {
"device": "npu",
"task": "feature-extraction"
}
},
"io_update": {
"type": "OpenVINOIoUpdate",
"input_shapes": [
[
1,
128
],
[
1,
128
],
[
1,
128
]
],
"static": true,
"reuse_cache": true
},
"ov_quantize": {
"type": "OpenVINOQuantization",
"target_device": "npu",
"data_config": "quantize_data_config",
"model_type": "TRANSFORMER",
"user_script": "user_script.py",
"transform_fn": "custom_transform_func",
"reuse_cache": true
},
"encapsulation": {
"type": "OpenVINOEncapsulation",
"target_device": "npu",
"ov_version": "2025.1",
"reuse_cache": true
}
},
"search_strategy": false,
"target": "local_system",
"cache_dir": "cache",
"evaluator": "common_evaluator",
"evaluate_input_model": false,
"output_dir": "model/bert-base-multilingual-cased_context_ov_static"
}