-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathphi3_ov_npu_config.json
More file actions
77 lines (77 loc) · 2.39 KB
/
phi3_ov_npu_config.json
File metadata and controls
77 lines (77 loc) · 2.39 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
{
"input_model": {
"type": "HfModel",
"model_path": "microsoft/Phi-3-mini-128k-instruct"
},
"systems": {
"local_system": {
"type": "LocalSystem",
"accelerators": [
{
"device": "npu",
"execution_providers": [
"OpenVINOExecutionProvider"
]
}
]
}
},
"passes": {
"optimum_convert": {
"type": "OpenVINOOptimumConversion",
"extra_args": {
"device": "npu"
},
"ov_quant_config": {
"weight_format": "int4",
"group_size": 128,
"dataset": "wikitext2",
"ratio": 1,
"awq": false,
"scale_estimation": false,
"sym": true,
"trust_remote_code": true,
"backup_precision": "int8_asym",
"sensitivity_metric": "weight_quantization_error"
}
},
"io_update": {
"type": "OpenVINOIoUpdate",
"static": false,
"reuse_cache": true
},
"encapsulation": {
"type": "OpenVINOEncapsulation",
"target_device": "npu",
"keep_ov_dynamic_dims": true,
"ov_version": "2025.2",
"reuse_cache": true,
"genai_config_override": {
"model": {
"context_length": 1536,
"decoder": {
"session_options": {
"provider_options": [
{
"OpenVINO": {
"device_type": "NPU",
"enable_causallm": "True",
"load_config": "{\"NPU\":{\"MAX_PROMPT_LEN\":\"1024\",\"MIN_RESPONSE_LEN\":\"512\"}}"
}
}
]
}
}
},
"search": {
"max_length": 1536
}
}
}
},
"search_strategy": false,
"target": "local_system",
"cache_dir": "cache",
"evaluate_input_model": false,
"output_dir": "model/Phi_3"
}