IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
2555f10 verified
raw
history blame
9.52 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.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": 1,
"num_choices": 2,
"sequence_length": 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": "error",
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16757.338112,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "ffcf92d83ccc277b83c83cfcdcd57e35055223d4",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1104.93696,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.791509840999993,
"mean": 4.791509840999993,
"stdev": 0.0,
"p50": 4.791509840999993,
"p90": 4.791509840999993,
"p95": 4.791509840999993,
"p99": 4.791509840999993,
"values": [
4.791509840999993
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.951810386445787e-05,
"ram": 2.9056832494553455e-06,
"gpu": 0,
"total": 7.242378711391321e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 958.01344,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.654458666000096,
"mean": 0.04674704757143543,
"stdev": 0.0022246892216892015,
"p50": 0.047599926000003734,
"p90": 0.048207206900031,
"p95": 0.04850091645001555,
"p99": 0.048838493689997334,
"values": [
0.04728835100002016,
0.04827370100002781,
0.04780141399999138,
0.046878372000037416,
0.04892288799999278,
0.04775192100004233,
0.04772848699997212,
0.04767835299998069,
0.048052054000038424,
0.046909349999964434,
0.04752149900002678,
0.046688306000021385,
0.04178840999998101,
0.04117555999999922
]
},
"throughput": {
"unit": "tokens/s",
"value": 42.78345058998102
},
"energy": {
"unit": "kWh",
"cpu": 1.6673368436318858e-06,
"ram": 6.968032489455014e-08,
"gpu": 0.0,
"total": 1.737017168526436e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1151399.0973944492
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 958.930944,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.4030300570000236,
"mean": 0.028787861214287398,
"stdev": 0.0018371539043317414,
"p50": 0.029565092500007495,
"p90": 0.0302946183000131,
"p95": 0.030323387600026307,
"p99": 0.030333348720030243,
"values": [
0.03033583900003123,
0.029677832999993825,
0.029549702999986494,
0.03024313399998846,
0.03031668300002366,
0.029803739999977097,
0.029375265999988187,
0.029900250000025608,
0.029563650000000052,
0.029566535000014937,
0.02860264499997811,
0.025381912000000284,
0.025459506999993664,
0.025253360000021985
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.736863310418514
},
"energy": {
"unit": "kWh",
"cpu": 1.0223479182631883e-06,
"ram": 4.272699304313381e-08,
"gpu": 0.0,
"total": 1.0650749113063215e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 938901.094546949
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3971152149999284,
"mean": 0.028365372499994886,
"stdev": 0.0017728211168115862,
"p50": 0.02912257699998122,
"p90": 0.029818629999994073,
"p95": 0.029847991950003917,
"p99": 0.02986117759001786,
"values": [
0.029864474000021346,
0.029218660999958956,
0.029126959999985047,
0.029770826999993005,
0.02983911699999453,
0.029383650999989186,
0.02891090399998575,
0.02944914400001153,
0.029118193999977393,
0.0290826369999877,
0.028149745000007442,
0.025079162999986693,
0.025166838000018288,
0.02495490000001155
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.25425234589041
},
"energy": null,
"efficiency": null
}
}
}