IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a246183
verified
{ | |
"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": {}, | |
"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", | |
"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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "bc46022225a5818a4648ee2abeffdd38c4a9b291", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 961.900544, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6508733759999075, | |
"mean": 0.04339155839999383, | |
"stdev": 0.0011598157189439424, | |
"p50": 0.043116437999998425, | |
"p90": 0.04481483919998937, | |
"p95": 0.044885319999986, | |
"p99": 0.04490284799997994, | |
"values": [ | |
0.04487592999998924, | |
0.044907229999978426, | |
0.044636212999989766, | |
0.043833023999980014, | |
0.043116437999998425, | |
0.043556800000004614, | |
0.04295247199999608, | |
0.04267447399999469, | |
0.04305524399998717, | |
0.04285919899999158, | |
0.044260532999999214, | |
0.0427833269999951, | |
0.042107807000007824, | |
0.04472320299998955, | |
0.04053148200000578 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.09191450474118 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.58579953511556e-06, | |
"ram": 6.627338510616027e-08, | |
"gpu": 0.0, | |
"total": 1.6520729202217205e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1210600.3164385657 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 961.900544, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39051585400005706, | |
"mean": 0.02603439026667047, | |
"stdev": 0.0009048902976164687, | |
"p50": 0.026079204000012624, | |
"p90": 0.02728941820000159, | |
"p95": 0.02760934129999839, | |
"p99": 0.027609756259986965, | |
"values": [ | |
0.02760911900000451, | |
0.02680986699999721, | |
0.026674344000014116, | |
0.026079204000012624, | |
0.025508619000021326, | |
0.025873378999989427, | |
0.026359326000005012, | |
0.02550162700001124, | |
0.02640589300000329, | |
0.025570313999992322, | |
0.02622838199999933, | |
0.02760985999998411, | |
0.02483758700000749, | |
0.02514790200001471, | |
0.024300431000000344 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.41073248718298 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.318805436293287e-07, | |
"ram": 3.8945397913349215e-08, | |
"gpu": 0.0, | |
"total": 9.70825941542678e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1030050.7611188915 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38524732699997344, | |
"mean": 0.025683155133331564, | |
"stdev": 0.0008973666707497019, | |
"p50": 0.025732828000002428, | |
"p90": 0.026917862600004127, | |
"p95": 0.027238269799997283, | |
"p99": 0.027264251559990384, | |
"values": [ | |
0.02722435100000098, | |
0.02645813000000885, | |
0.026315976000006458, | |
0.025732828000002428, | |
0.025174707000019225, | |
0.025526531999986446, | |
0.025983265000007805, | |
0.025151012999998557, | |
0.026047986000008905, | |
0.025238764999983232, | |
0.025870935000000372, | |
0.02727074699998866, | |
0.024518481999990627, | |
0.024776438999992934, | |
0.02395717099997796 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.93602615444242 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |