IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
b13fabb
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.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": "2c28e6003745fe7e05d2d15f59cde0588e3c32a2", | |
"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": 1103.958016, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.754099214000007, | |
"mean": 4.754099214000007, | |
"stdev": 0.0, | |
"p50": 4.754099214000007, | |
"p90": 4.754099214000007, | |
"p95": 4.754099214000007, | |
"p99": 4.754099214000007, | |
"values": [ | |
4.754099214000007 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.860339111751982e-05, | |
"ram": 2.8674047322489096e-06, | |
"gpu": 0, | |
"total": 7.147079584976873e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.58336, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6297390710001309, | |
"mean": 0.044981362214295065, | |
"stdev": 0.0033128163941984253, | |
"p50": 0.0454371425000204, | |
"p90": 0.04889067670001168, | |
"p95": 0.04946403970001114, | |
"p99": 0.05018771434000627, | |
"values": [ | |
0.04486325100000954, | |
0.045973313000018834, | |
0.04461893100000225, | |
0.046317211000001635, | |
0.04622898400000963, | |
0.04684448300000099, | |
0.05036863300000505, | |
0.048976951000014424, | |
0.04868937000000528, | |
0.044900972000021966, | |
0.04262918200001309, | |
0.03966221200002451, | |
0.039587772000004406, | |
0.04007780599999933 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 44.46285976115682 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5791876051161027e-06, | |
"ram": 6.599707832163328e-08, | |
"gpu": 0.0, | |
"total": 1.645184683437736e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1215668.988493651 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.23872, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3894489869999518, | |
"mean": 0.027817784785710842, | |
"stdev": 0.0021987584715382137, | |
"p50": 0.028234472999997706, | |
"p90": 0.029935381800001437, | |
"p95": 0.030664555650001545, | |
"p99": 0.0315339015299989, | |
"values": [ | |
0.02848260999999752, | |
0.0279709159999868, | |
0.028108785999990005, | |
0.028360160000005408, | |
0.029599294999997028, | |
0.029307424999984732, | |
0.03175123799999824, | |
0.030079419000003327, | |
0.029313950999977578, | |
0.027362730999982432, | |
0.024424406000008503, | |
0.024725111999998717, | |
0.024192548000002034, | |
0.02577039000001946 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.94822548608076 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.550513890054495e-07, | |
"ram": 3.991403817088089e-08, | |
"gpu": 0.0, | |
"total": 9.9496542717633e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1005060.0480038365 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.383760251999945, | |
"mean": 0.027411446571424643, | |
"stdev": 0.0021285352172168478, | |
"p50": 0.027756131999993272, | |
"p90": 0.029448320500003435, | |
"p95": 0.03019047450000869, | |
"p99": 0.031060179700004367, | |
"values": [ | |
0.0280203599999993, | |
0.0275076539999759, | |
0.027624884999994492, | |
0.027887378999992052, | |
0.02908251099998438, | |
0.02879076199999986, | |
0.03127760600000329, | |
0.0296050960000116, | |
0.028972006999993027, | |
0.02705689499998698, | |
0.024134048000007624, | |
0.0244201769999961, | |
0.023895127999992383, | |
0.025485744000008026 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.48111008641407 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |