IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
3d9437d
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": {}, | |
"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.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": "86b6a9427e8d0887933fcf9a8a5c8388c89fa339", | |
"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": 1116.11904, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.9850459970000145, | |
"mean": 4.9850459970000145, | |
"stdev": 0.0, | |
"p50": 4.9850459970000145, | |
"p90": 4.9850459970000145, | |
"p95": 4.9850459970000145, | |
"p99": 4.9850459970000145, | |
"values": [ | |
4.9850459970000145 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.864370505015056e-05, | |
"ram": 2.86913370317734e-06, | |
"gpu": 0, | |
"total": 7.15128387533279e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.457664, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6492219619999844, | |
"mean": 0.04637299728571317, | |
"stdev": 0.003450014512094901, | |
"p50": 0.045961873999999625, | |
"p90": 0.04958727620000616, | |
"p95": 0.05182017724999923, | |
"p99": 0.0549908226499906, | |
"values": [ | |
0.04694993100000033, | |
0.04733428399998729, | |
0.04935671300000877, | |
0.04447493699998972, | |
0.04408796999999254, | |
0.04311427299998627, | |
0.04741157800000906, | |
0.05578348399998845, | |
0.04968608900000504, | |
0.047024088000000575, | |
0.04497381699999892, | |
0.04292967000000658, | |
0.04322925600001781, | |
0.04286587199999303 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.1285471516453 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7557357820335793e-06, | |
"ram": 7.337418626093494e-08, | |
"gpu": 0.0, | |
"total": 1.8291099682945143e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1093427.9702520159 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.375168, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3973863930000334, | |
"mean": 0.028384742357145245, | |
"stdev": 0.002330381697255101, | |
"p50": 0.027850631500001555, | |
"p90": 0.03139186809999899, | |
"p95": 0.033193142049996995, | |
"p99": 0.03432879240999995, | |
"values": [ | |
0.028293337999997448, | |
0.028941801000001988, | |
0.027376726999989387, | |
0.027407925000005662, | |
0.02620462100000509, | |
0.028483571000009533, | |
0.032428761999995004, | |
0.03461270500000069, | |
0.028404824999995526, | |
0.028972449000008282, | |
0.026298445000008996, | |
0.02636409699999831, | |
0.026905532000000676, | |
0.026691595000016832 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.23019470875245 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.068852172381636e-06, | |
"ram": 4.466893373497833e-08, | |
"gpu": 0.0, | |
"total": 1.1135211061166145e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 898052.1289690526 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.391515896000044, | |
"mean": 0.027965421142860287, | |
"stdev": 0.002262808085706255, | |
"p50": 0.0274671694999995, | |
"p90": 0.030894525099992624, | |
"p95": 0.03263988709998955, | |
"p99": 0.03376235181999334, | |
"values": [ | |
0.027914785000007214, | |
0.028584859000005736, | |
0.02701237099998366, | |
0.027041634999989128, | |
0.02581556900000237, | |
0.027997358000021677, | |
0.031884381999987, | |
0.03404296799999429, | |
0.02789270400000987, | |
0.028441593000025023, | |
0.025968742999992855, | |
0.026023465000008628, | |
0.026552215999998907, | |
0.02634324800001764 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.758445935483614 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |