-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathsparsegpt.json
More file actions
42 lines (42 loc) · 1.13 KB
/
sparsegpt.json
File metadata and controls
42 lines (42 loc) · 1.13 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
{
"input_model": {
"type": "HFModel",
"model_path": "sshleifer/tiny-gpt2",
"task": "text-generation"
},
"systems": {
"local_system": {
"type": "LocalSystem",
"accelerators": [ { "device": "cpu", "execution_providers": [ "CPUExecutionProvider" ] } ]
}
},
"data_configs": [
{
"name": "train_data",
"type": "HuggingfaceContainer",
"load_dataset_config": {
"data_name": "wikitext",
"subset": "wikitext-2-raw-v1",
"split": "train[:1000]"
},
"pre_process_data_config": {
"strategy": "join-random",
"max_seq_len": 1024,
"max_samples": 1,
"pad_to_max_len": true,
"random_seed": 42
}
}
],
"passes": {
"s": {
"type": "SparseGPT",
"device": "cpu",
"sparsity": [2, 4],
"data_config": "train_data"
}
},
"host": "local_system",
"target": "local_system",
"output_dir": "models"
}