IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1922d57
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": "45921a9780327ec22300947e147b4d3c2239e4a3", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.1", | |
"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": 1122.107392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 5.055828442000006, | |
"mean": 5.055828442000006, | |
"stdev": 0.0, | |
"p50": 5.055828442000006, | |
"p90": 5.055828442000006, | |
"p95": 5.055828442000006, | |
"p99": 5.055828442000006, | |
"values": [ | |
5.055828442000006 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.739753354444626e-05, | |
"ram": 2.817031220945992e-06, | |
"gpu": 0, | |
"total": 7.021456476539225e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.589376, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6483965710000348, | |
"mean": 0.04631404078571677, | |
"stdev": 0.0015782133836270316, | |
"p50": 0.045974952999984, | |
"p90": 0.04725292990002572, | |
"p95": 0.04892171865000705, | |
"p99": 0.050964111729985, | |
"values": [ | |
0.04656669400003466, | |
0.045442545000014434, | |
0.045730816000002505, | |
0.04640607200002478, | |
0.04601021899998159, | |
0.04593968699998641, | |
0.045407730000022184, | |
0.04635472600000412, | |
0.04754703100002189, | |
0.04617653099995778, | |
0.045390257000008205, | |
0.051474709999979495, | |
0.04509892900000523, | |
0.04485062399999151 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.18344860586639 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7229595021739172e-06, | |
"ram": 7.200590988548553e-08, | |
"gpu": 0.0, | |
"total": 1.794965412059403e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1114227.5982384286 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 976.375808, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3919600440000863, | |
"mean": 0.027997146000006166, | |
"stdev": 0.0007386698970558459, | |
"p50": 0.02800783349999847, | |
"p90": 0.028847657199986543, | |
"p95": 0.02912045279998097, | |
"p99": 0.02939156415999264, | |
"values": [ | |
0.0276894620000121, | |
0.028620648000014626, | |
0.028116613000008783, | |
0.027429614999959995, | |
0.028522294000026704, | |
0.027377947000047698, | |
0.028636918000017886, | |
0.02945934199999556, | |
0.02791666799998893, | |
0.027032639000026393, | |
0.02893797399997311, | |
0.028098999000008007, | |
0.027173445000016727, | |
0.02694747999998981 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.71792639148932 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.07488564227041e-06, | |
"ram": 4.491900800069491e-08, | |
"gpu": 0.0, | |
"total": 1.1198046502711052e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 893012.9016323513 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3863317340000094, | |
"mean": 0.02759512385714353, | |
"stdev": 0.0007363079872948579, | |
"p50": 0.027534000000002834, | |
"p90": 0.02845548749999125, | |
"p95": 0.028727322500003538, | |
"p99": 0.02900179410000874, | |
"values": [ | |
0.02729736599997068, | |
0.02822990499998923, | |
0.027572091000024557, | |
0.02704713699995409, | |
0.02812052000001586, | |
0.02697729600004095, | |
0.028252266999970743, | |
0.029070412000010037, | |
0.02749590899998111, | |
0.026637468000046738, | |
0.02854258200000004, | |
0.0277225830000134, | |
0.026799612999980127, | |
0.026566585000011855 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.2382863427928 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |