sal-torch-benchmarks / robustness_scale_results.json
CognitiveEngineering's picture
sal-torch benchmark results
820fdbc verified
Raw History Blame Contribute Delete
11.3 kB
{
"gpt2": {
"tier": "gpt2",
"model": "gpt2-medium",
"task": "sst2",
"gpu": "T4",
"n_train": 1024,
"n_eval": 512,
"epochs": 3,
"lora_r": 16,
"prune_fraction": 0.33,
"baseline": {
"dense": {
"accuracy": 0.890625,
"size_mb": 1419.4,
"tokens_per_sec": 3171.8,
"backend": null,
"device": "cuda",
"seconds": 13.1
},
"int8": {
"accuracy": 0.8828125,
"size_mb": 514.4,
"tokens_per_sec": 3803.2,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 14.9
},
"int4": {
"accuracy": 0.859375,
"size_mb": 367.1,
"tokens_per_sec": 2244.1,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.4
},
"prune33": {
"accuracy": 0.849609375,
"size_mb": 1419.4,
"tokens_per_sec": 3096.1,
"backend": null,
"device": "cuda",
"seconds": 13.5
},
"prune50": {
"accuracy": 0.814453125,
"size_mb": 1419.4,
"tokens_per_sec": 3097.6,
"backend": null,
"device": "cuda",
"seconds": 13.4
},
"prune33+int8": {
"accuracy": 0.849609375,
"size_mb": 514.4,
"tokens_per_sec": 3541.3,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 15.3
},
"prune33+int4": {
"accuracy": 0.830078125,
"size_mb": 367.1,
"tokens_per_sec": 2178.7,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.1
}
},
"SAL": {
"dense": {
"accuracy": 0.859375,
"size_mb": 1419.4,
"tokens_per_sec": 3112.5,
"backend": null,
"device": "cuda",
"seconds": 13.4
},
"int8": {
"accuracy": 0.861328125,
"size_mb": 514.4,
"tokens_per_sec": 3783.9,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 15.1
},
"int4": {
"accuracy": 0.830078125,
"size_mb": 367.1,
"tokens_per_sec": 2230.9,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.3
},
"prune33": {
"accuracy": 0.841796875,
"size_mb": 1419.4,
"tokens_per_sec": 3109.4,
"backend": null,
"device": "cuda",
"seconds": 13.4
},
"prune50": {
"accuracy": 0.849609375,
"size_mb": 1419.4,
"tokens_per_sec": 3084.2,
"backend": null,
"device": "cuda",
"seconds": 13.2
},
"prune33+int8": {
"accuracy": 0.84765625,
"size_mb": 514.4,
"tokens_per_sec": 3616.3,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 15.8
},
"prune33+int4": {
"accuracy": 0.8359375,
"size_mb": 367.1,
"tokens_per_sec": 2188.7,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.4
}
},
"verdict": {
"n_eval": 512,
"noise_floor": 0.001953125,
"absolute": {
"quantization": "0/2",
"pruning": "1/2",
"combined": "1/2"
},
"retention": {
"quantization": "2/2",
"pruning": "2/2",
"combined": "2/2"
},
"dense_baseline": 0.890625,
"dense_sal": 0.859375,
"clean_accuracy_delta": -0.03125,
"pareto_front": [
"baseline/dense",
"baseline/int8",
"baseline/int4"
]
}
},
"phi2": {
"tier": "phi2",
"model": "microsoft/phi-2",
"task": "mmlu",
"gpu": "A10G",
"n_train": 512,
"n_eval": 256,
"epochs": 3,
"lora_r": 16,
"prune_fraction": 0.33,
"baseline": {
"dense": {
"accuracy": 0.45703125,
"size_mb": 5559.4,
"tokens_per_sec": 2055.9,
"backend": null,
"device": "cuda",
"seconds": 17.5
},
"int8": {
"accuracy": 0.46875,
"size_mb": 3042.8,
"tokens_per_sec": 1450.9,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 44.2
},
"int4": {
"accuracy": 0.45703125,
"size_mb": 1784.5,
"tokens_per_sec": 1942.1,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 31.1
},
"prune33": {
"accuracy": 0.37890625,
"size_mb": 5559.4,
"tokens_per_sec": 2037.0,
"backend": null,
"device": "cuda",
"seconds": 17.0
},
"prune50": {
"accuracy": 0.36328125,
"size_mb": 5559.4,
"tokens_per_sec": 2033.2,
"backend": null,
"device": "cuda",
"seconds": 17.3
},
"prune33+int8": {
"accuracy": 0.39453125,
"size_mb": 3042.8,
"tokens_per_sec": 1424.9,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 44.3
},
"prune33+int4": {
"accuracy": 0.375,
"size_mb": 1784.5,
"tokens_per_sec": 1881.6,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 32.2
}
},
"SAL": {
"dense": {
"accuracy": 0.4453125,
"size_mb": 5559.4,
"tokens_per_sec": 2049.3,
"backend": null,
"device": "cuda",
"seconds": 17.7
},
"int8": {
"accuracy": 0.44921875,
"size_mb": 3042.8,
"tokens_per_sec": 1442.1,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 45.7
},
"int4": {
"accuracy": 0.44921875,
"size_mb": 1784.5,
"tokens_per_sec": 1936.9,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 31.9
},
"prune33": {
"accuracy": 0.3828125,
"size_mb": 5559.4,
"tokens_per_sec": 2037.7,
"backend": null,
"device": "cuda",
"seconds": 17.5
},
"prune50": {
"accuracy": 0.359375,
"size_mb": 5559.4,
"tokens_per_sec": 2030.1,
"backend": null,
"device": "cuda",
"seconds": 17.5
},
"prune33+int8": {
"accuracy": 0.37109375,
"size_mb": 3042.8,
"tokens_per_sec": 1421.3,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 45.8
},
"prune33+int4": {
"accuracy": 0.375,
"size_mb": 1784.5,
"tokens_per_sec": 1886.2,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 32.8
}
},
"verdict": {
"n_eval": 256,
"noise_floor": 0.00390625,
"absolute": {
"quantization": "0/2",
"pruning": "1/2",
"combined": "0/2"
},
"retention": {
"quantization": "1/2",
"pruning": "2/2",
"combined": "1/2"
},
"dense_baseline": 0.45703125,
"dense_sal": 0.4453125,
"clean_accuracy_delta": -0.01171875,
"pareto_front": [
"baseline/int8",
"baseline/int4"
]
}
},
"gpt2_full": {
"tier": "gpt2_full",
"model": "gpt2-medium",
"task": "sst2",
"gpu": "T4",
"n_train": 1024,
"n_eval": 512,
"epochs": 3,
"finetune": "full",
"lr": 2e-05,
"lora_r": null,
"prune_fraction": 0.33,
"baseline": {
"dense": {
"accuracy": 0.884765625,
"size_mb": 1419.3,
"tokens_per_sec": 3121.9,
"backend": null,
"device": "cuda",
"seconds": 12.8
},
"int8": {
"accuracy": 0.8828125,
"size_mb": 513.3,
"tokens_per_sec": 2326.6,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 19.7
},
"int4": {
"accuracy": 0.875,
"size_mb": 361.9,
"tokens_per_sec": 2205.5,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.3
},
"prune33": {
"accuracy": 0.8359375,
"size_mb": 1419.3,
"tokens_per_sec": 3073.6,
"backend": null,
"device": "cuda",
"seconds": 13.0
},
"prune50": {
"accuracy": 0.814453125,
"size_mb": 1419.3,
"tokens_per_sec": 3057.9,
"backend": null,
"device": "cuda",
"seconds": 12.2
},
"prune33+int8": {
"accuracy": 0.83984375,
"size_mb": 513.3,
"tokens_per_sec": 2536.6,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 17.6
},
"prune33+int4": {
"accuracy": 0.833984375,
"size_mb": 361.9,
"tokens_per_sec": 2153.7,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.4
}
},
"SAL": {
"dense": {
"accuracy": 0.888671875,
"size_mb": 1419.3,
"tokens_per_sec": 3065.1,
"backend": null,
"device": "cuda",
"seconds": 13.3
},
"int8": {
"accuracy": 0.888671875,
"size_mb": 513.3,
"tokens_per_sec": 3432.6,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 18.4
},
"int4": {
"accuracy": 0.892578125,
"size_mb": 361.9,
"tokens_per_sec": 2118.4,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 21.7
},
"prune33": {
"accuracy": 0.85546875,
"size_mb": 1419.3,
"tokens_per_sec": 3054.8,
"backend": null,
"device": "cuda",
"seconds": 13.5
},
"prune50": {
"accuracy": 0.837890625,
"size_mb": 1419.3,
"tokens_per_sec": 3051.9,
"backend": null,
"device": "cuda",
"seconds": 12.6
},
"prune33+int8": {
"accuracy": 0.85546875,
"size_mb": 513.3,
"tokens_per_sec": 2583.6,
"backend": "bitsandbytes-int8",
"device": "cuda",
"seconds": 18.3
},
"prune33+int4": {
"accuracy": 0.861328125,
"size_mb": 361.9,
"tokens_per_sec": 2171.6,
"backend": "bitsandbytes-nf4",
"device": "cuda",
"seconds": 22.8
}
},
"verdict": {
"n_eval": 512,
"noise_floor": 0.001953125,
"absolute": {
"quantization": "2/2",
"pruning": "2/2",
"combined": "2/2"
},
"retention": {
"quantization": "2/2",
"pruning": "2/2",
"combined": "2/2"
},
"dense_baseline": 0.884765625,
"dense_sal": 0.888671875,
"clean_accuracy_delta": 0.00390625,
"pareto_front": [
"SAL/int4"
]
}
}
}