IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a69c0af verified
raw
history blame
8.21 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"model": "openai-community/gpt2",
"processor": "openai-community/gpt2",
"device": "cpu",
"device_ids": null,
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"model_kwargs": {},
"processor_kwargs": {},
"hub_kwargs": {},
"no_weights": true,
"device_map": null,
"torch_dtype": null,
"eval_mode": true,
"to_bettertransformer": false,
"low_cpu_mem_usage": null,
"attn_implementation": null,
"cache_implementation": null,
"autocast_enabled": false,
"autocast_dtype": null,
"torch_compile": false,
"torch_compile_target": "forward",
"torch_compile_config": {},
"quantization_scheme": null,
"quantization_config": {},
"deepspeed_inference": false,
"deepspeed_inference_config": {},
"peft_type": null,
"peft_config": {}
},
"scenario": {
"name": "inference",
"_target_": "optimum_benchmark.scenarios.inference.scenario.InferenceScenario",
"iterations": 1,
"duration": 1,
"warmup_runs": 1,
"input_shapes": {
"batch_size": 1,
"num_choices": 2,
"sequence_length": 2
},
"new_tokens": null,
"latency": true,
"memory": true,
"energy": true,
"forward_kwargs": {},
"generate_kwargs": {
"max_new_tokens": 2,
"min_new_tokens": 2
},
"call_kwargs": {
"num_inference_steps": 2
}
},
"launcher": {
"name": "process",
"_target_": "optimum_benchmark.launchers.process.launcher.ProcessLauncher",
"device_isolation": false,
"device_isolation_action": "error",
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.354496,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "4ec62071e1c9b9c89fb7e3c044340b391a0c4120",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 956.325888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6282255880000207,
"mean": 0.04832504523077082,
"stdev": 0.0026050986748531136,
"p50": 0.04866366999999627,
"p90": 0.051142133199999766,
"p95": 0.05229455159998792,
"p99": 0.05341803671997582,
"values": [
0.04683162800000673,
0.04888971200000469,
0.04568466000000626,
0.05369890799997279,
0.04866366999999627,
0.04600024100000155,
0.046652112000003854,
0.04593306500001404,
0.0500089980000098,
0.05135831399999802,
0.05027741000000674,
0.05002908500000558,
0.04419778499999438
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.38640720250182
},
"energy": {
"unit": "kWh",
"cpu": 1.7544893250949143e-06,
"ram": 7.332252185354155e-08,
"gpu": 0.0,
"total": 1.827811846948456e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1094204.5284031907
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.325888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.3895016460000136,
"mean": 0.029961665076924122,
"stdev": 0.0013926839612495008,
"p50": 0.02974765499999421,
"p90": 0.031219299399992906,
"p95": 0.03189585259999603,
"p99": 0.03266445692000161,
"values": [
0.02974765499999421,
0.028444425000003548,
0.03084573200001728,
0.03285660800000301,
0.028386817000011888,
0.029078913000006423,
0.0288018139999906,
0.031255348999991384,
0.031075100999998995,
0.030871120000000474,
0.030958612999995694,
0.029137918000003538,
0.02804158099999654
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.37598219032827
},
"energy": {
"unit": "kWh",
"cpu": 1.0429579854587424e-06,
"ram": 4.358667449260919e-08,
"gpu": 0.0,
"total": 1.0865446599513518e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 920348.7319561933
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9416843249999829,
"mean": 0.07847369374999857,
"stdev": 0.0036570139558255044,
"p50": 0.07746569449999186,
"p90": 0.08214669980000053,
"p95": 0.08412580234999752,
"p99": 0.08596631486999429,
"values": [
0.0776565509999898,
0.07649977400001262,
0.08642644299999347,
0.0772748379999939,
0.07505121200000531,
0.07547729899999922,
0.07704412399999683,
0.08112083800000391,
0.08224346000000082,
0.08127585799999792,
0.07935721000001195,
0.07225671799997713
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.743123870093322
},
"energy": null,
"efficiency": null
}
}
}