IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
25bcbda
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.0+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-1025-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.4.0", | |
"optimum_benchmark_commit": "d8816b4c0da0f2d5070aafea079268e540cac30e", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1120.841728, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.7690749960000005, | |
"mean": 4.7690749960000005, | |
"stdev": 0.0, | |
"p50": 4.7690749960000005, | |
"p90": 4.7690749960000005, | |
"p95": 4.7690749960000005, | |
"p99": 4.7690749960000005, | |
"values": [ | |
4.7690749960000005 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.77103686388888e-05, | |
"ram": 2.830066695441431e-06, | |
"gpu": 0, | |
"total": 7.054043533433023e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.331904, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6518678939999916, | |
"mean": 0.04345785959999944, | |
"stdev": 0.0021666493619192837, | |
"p50": 0.04356289800000468, | |
"p90": 0.04567796279999925, | |
"p95": 0.04581887409999012, | |
"p99": 0.04604300121999017, | |
"values": [ | |
0.045536964000007174, | |
0.04549213000001373, | |
0.045646698000012975, | |
0.045430514000003086, | |
0.0456988059999901, | |
0.046099032999990186, | |
0.04356289800000468, | |
0.04215391100001398, | |
0.045232333999990715, | |
0.041024931999999126, | |
0.040644740999994156, | |
0.0408256789999939, | |
0.04094181599998592, | |
0.04315817799999877, | |
0.040419259999993074 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 46.02159467605316 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5966675091110766e-06, | |
"ram": 6.672746964777287e-08, | |
"gpu": 0.0, | |
"total": 1.6633949787588496e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1202360.2484914977 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.987264, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.397809948999992, | |
"mean": 0.026520663266666133, | |
"stdev": 0.0017804862298477706, | |
"p50": 0.02573570100000211, | |
"p90": 0.02878223440000056, | |
"p95": 0.028818926499997132, | |
"p99": 0.028847584500002767, | |
"values": [ | |
0.028803573999994114, | |
0.028145804999979873, | |
0.028854749000004176, | |
0.02866954300000657, | |
0.028640588999991223, | |
0.028750225000010232, | |
0.025951964999990196, | |
0.02573570100000211, | |
0.025000688000005766, | |
0.024871947000008277, | |
0.025074805999992122, | |
0.024612622999995892, | |
0.02552089000002411, | |
0.02462431399999332, | |
0.02455252999999402 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.70644760822787 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.53747996444464e-07, | |
"ram": 3.986007463760981e-08, | |
"gpu": 0.0, | |
"total": 9.936080710820737e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1006433.0485067067 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3916982270000062, | |
"mean": 0.02611321513333375, | |
"stdev": 0.0016878244655167823, | |
"p50": 0.025343207999981132, | |
"p90": 0.028250880999991068, | |
"p95": 0.028290706599986493, | |
"p99": 0.028321098920002327, | |
"values": [ | |
0.02827442499997801, | |
0.027667500999996264, | |
0.028328697000006287, | |
0.028177403000000822, | |
0.028092254000000594, | |
0.028215565000010656, | |
0.02560957500000427, | |
0.025343207999981132, | |
0.024676953000010826, | |
0.024546699000012495, | |
0.024764135999987502, | |
0.024300299000003633, | |
0.025142482000006794, | |
0.024308122999997295, | |
0.024250907000009647 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.29478656281935 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |