forked from microsoft/olive-recipes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphi3_5_trtrtx_config.json
More file actions
51 lines (51 loc) · 1.43 KB
/
phi3_5_trtrtx_config.json
File metadata and controls
51 lines (51 loc) · 1.43 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
{
"input_model": {
"type": "HfModel",
"model_path": "microsoft/Phi-3.5-mini-instruct"
},
"systems": {
"local_system": {
"type": "LocalSystem",
"accelerators": [ { "device": "gpu", "execution_providers": [ "NvTensorRTRTXExecutionProvider" ] } ]
}
},
"data_configs": [
{
"name": "wikitext2_train",
"type": "HuggingfaceContainer",
"load_dataset_config": {
"data_name": "wikitext",
"subset": "wikitext-2-raw-v1",
"split": "train"
},
"pre_process_data_config": {
"strategy": "line-by-line",
"add_special_tokens": false,
"max_samples": 128,
"max_seq_len": 512
}
}
],
"passes": {
"mb": {
"type": "ModelBuilder",
"precision": "int4",
"int4_block_size": 32,
"int4_algo_config": "rtn",
"int4_is_symmetric": true,
"enable_cuda_graph": true
},
"mq": {
"type": "MatMulNBitsToQDQ",
"use_int4": true,
"add_zero_point": false,
"save_as_external_data": true
}
},
"target": "local_system",
"log_severity_level": 1,
"output_dir": "model/phi3_5",
"cache_dir": "cache",
"no_artifacts": true,
"evaluate_input_model": false
}