IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
9b8d3ed
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": null, | |
"numactl": false, | |
"numactl_kwargs": {}, | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16766.7712, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0", | |
"optimum_benchmark_commit": "11fc1578907ddfc66a9a7fb8f19815e001677ad1", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.2", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.3", | |
"diffusers_commit": null, | |
"optimum_version": "1.22.0", | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1123.110912, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
4.882253707000018 | |
], | |
"count": 1, | |
"total": 4.882253707000018, | |
"mean": 4.882253707000018, | |
"p50": 4.882253707000018, | |
"p90": 4.882253707000018, | |
"p95": 4.882253707000018, | |
"p99": 4.882253707000018, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.773294430000003e-05, | |
"ram": 2.8326033598154316e-06, | |
"gpu": 0, | |
"total": 7.056554765981546e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 977.358848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04122677300000532, | |
0.04087992400002349, | |
0.04101407600001039, | |
0.04053180300002168, | |
0.0415004259999705, | |
0.047049383000000944, | |
0.04575700399999505, | |
0.04660217599996486, | |
0.04527219699997431, | |
0.044959049999988565, | |
0.04060998899996093, | |
0.03980498200002103, | |
0.04008177000002888, | |
0.04013860599997088, | |
0.03987690700000712 | |
], | |
"count": 15, | |
"total": 0.635305065999944, | |
"mean": 0.04235367106666293, | |
"p50": 0.04101407600001039, | |
"p90": 0.04626410719997694, | |
"p95": 0.04673633809997568, | |
"p99": 0.04698677401999589, | |
"stdev": 0.002607811328271913, | |
"stdev_": 6.157226192193177 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.221408431209724 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6015755419999526e-06, | |
"ram": 6.697060459991096e-08, | |
"gpu": 0.0, | |
"total": 1.6685461465998637e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1198648.2987453283 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 977.48992, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.025807039000028453, | |
0.02612539500000821, | |
0.02530825499997036, | |
0.026040506000015284, | |
0.0275175900000022, | |
0.028531579999992118, | |
0.028978985999970064, | |
0.02867515800005549, | |
0.02865061200003538, | |
0.02597728999995752, | |
0.024787039000045752, | |
0.025253141999996842, | |
0.024749880000001667, | |
0.024800335000009, | |
0.024508437999998023 | |
], | |
"count": 15, | |
"total": 0.39571124500008636, | |
"mean": 0.026380749666672424, | |
"p50": 0.02597728999995752, | |
"p90": 0.028665339600047447, | |
"p95": 0.028766306400029862, | |
"p99": 0.028936450079982023, | |
"stdev": 0.0015786797020966507, | |
"stdev_": 5.98421091911214 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.90642846148263 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0437490902223316e-06, | |
"ram": 4.364554855351865e-08, | |
"gpu": 0.0, | |
"total": 1.0873946387758498e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 919629.3271463657 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.02546327600003906, | |
0.025782302999971307, | |
0.02493997499999523, | |
0.025686502999974437, | |
0.027027543000031073, | |
0.02802532200001906, | |
0.028464442999961648, | |
0.02819316600005095, | |
0.02814882199999147, | |
0.025665244999970582, | |
0.02447867200004339, | |
0.024948842000014793, | |
0.024446070999999847, | |
0.0244829910000135, | |
0.024186133999990034 | |
], | |
"count": 15, | |
"total": 0.3899393080000664, | |
"mean": 0.02599595386667109, | |
"p50": 0.025665244999970582, | |
"p90": 0.02817542840002716, | |
"p95": 0.02827454910002416, | |
"p99": 0.02842646421997415, | |
"stdev": 0.0015000749557573466, | |
"stdev_": 5.77041705586562 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.46752479746783 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |