IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a3cccce verified
raw
history blame
8.79 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.5.1+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"model_type": "gpt2",
"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": {},
"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": 2,
"sequence_length": 16,
"num_choices": 2
},
"new_tokens": null,
"memory": true,
"latency": 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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.342208,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.5.0.dev0",
"optimum_benchmark_commit": "6e6b10363f3ac65926881f2c6a6113b6cefc06cd",
"transformers_version": "4.46.3",
"transformers_commit": null,
"accelerate_version": "1.1.1",
"accelerate_commit": null,
"diffusers_version": "0.31.0",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.11",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
},
"print_report": true,
"log_report": true
},
"report": {
"load_model": {
"memory": {
"unit": "MB",
"max_ram": 1132.212224,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.7204520880000018
],
"count": 1,
"total": 1.7204520880000018,
"mean": 1.7204520880000018,
"p50": 1.7204520880000018,
"p90": 1.7204520880000018,
"p95": 1.7204520880000018,
"p99": 1.7204520880000018,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 0.0001947923192833334,
"ram": 8.142402045336492e-06,
"gpu": 0,
"total": 0.00020293472132866988
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 1021.456384,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.10893188399995779,
0.1094008590000044,
0.10926704899998185,
0.11066914500003122,
0.10887606000000005,
0.10581337600001461,
0.10166764199999534
],
"count": 7,
"total": 0.7546260149999853,
"mean": 0.10780371642856933,
"p50": 0.10893188399995779,
"p90": 0.10990817340001513,
"p95": 0.11028865920002318,
"p99": 0.11059304784002962,
"stdev": 0.0028520277178841797,
"stdev_": 2.645574579772425
},
"throughput": {
"unit": "samples/s",
"value": 18.552236103336927
},
"energy": {
"unit": "kWh",
"cpu": 4.089373516666639e-06,
"ram": 1.7090378809724622e-07,
"gpu": 0.0,
"total": 4.260277304763885e-06
},
"efficiency": {
"unit": "samples/kWh",
"value": 469453.00902445475
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 1022.373888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.0441178670000113,
0.04416948300001877,
0.04431403300003467,
0.04486402800000633,
0.04811767900002906,
0.04361982799997577,
0.04318068800000674
],
"count": 7,
"total": 0.31238360600008264,
"mean": 0.044626229428583235,
"p50": 0.04416948300001877,
"p90": 0.04616548840001542,
"p95": 0.047141583700022235,
"p99": 0.04792245994002769,
"stdev": 0.001507775958941922,
"stdev_": 3.3786765726081867
},
"throughput": {
"unit": "tokens/s",
"value": 44.81669246111557
},
"energy": {
"unit": "kWh",
"cpu": 1.5785142944444735e-06,
"ram": 6.596683939355318e-08,
"gpu": 0.0,
"total": 1.6444811338380266e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1216189.0816784464
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.04304499500000247,
0.043141064999986156,
0.043253524000022026,
0.04381637400001637,
0.046488538999994944,
0.042514444999994794,
0.04205141099998855
],
"count": 7,
"total": 0.3043103530000053,
"mean": 0.04347290757142933,
"p50": 0.043141064999986156,
"p90": 0.0448852400000078,
"p95": 0.04568688950000137,
"p99": 0.04632820909999623,
"stdev": 0.0013359139683799366,
"stdev_": 3.0729804906306923
},
"throughput": null,
"energy": null,
"efficiency": null
}
}
}