IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7443737
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.4.0", | |
"optimum_benchmark_commit": "74ced8402064e977675db1260acc02c86f436230", | |
"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": 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": 1115.820032, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.8913516079999795, | |
"mean": 4.8913516079999795, | |
"stdev": 0.0, | |
"p50": 4.8913516079999795, | |
"p90": 4.8913516079999795, | |
"p95": 4.8913516079999795, | |
"p99": 4.8913516079999795, | |
"values": [ | |
4.8913516079999795 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.982925168333339e-05, | |
"ram": 2.920350577883432e-06, | |
"gpu": 0, | |
"total": 7.274960226121683e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 969.412608, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.613583111999958, | |
"mean": 0.04719870092307369, | |
"stdev": 0.0015553019404831992, | |
"p50": 0.04741189899999654, | |
"p90": 0.04849105719999898, | |
"p95": 0.04860493680000673, | |
"p99": 0.04872425136000857, | |
"values": [ | |
0.046875831999983575, | |
0.04835033800000588, | |
0.04850550800000519, | |
0.04543316599998093, | |
0.04843325399997411, | |
0.04814896700000304, | |
0.04652800799999568, | |
0.047189475999999786, | |
0.048754080000009026, | |
0.04741189899999654, | |
0.04710814500000993, | |
0.048023131999997304, | |
0.04282130699999698 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.3740476090577 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.628731846064857e-06, | |
"ram": 6.810481623802819e-08, | |
"gpu": 0.0, | |
"total": 1.6968366623028852e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1178663.8304276573 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 970.067968, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3883091510000156, | |
"mean": 0.029869934692308895, | |
"stdev": 0.001094343841568545, | |
"p50": 0.02987968100001126, | |
"p90": 0.030904205799998863, | |
"p95": 0.03150142800000139, | |
"p99": 0.032005725600001825, | |
"values": [ | |
0.03108118000000104, | |
0.03213180000000193, | |
0.03019630899999015, | |
0.029751884000006612, | |
0.02987968100001126, | |
0.029931075999996892, | |
0.030179618000005348, | |
0.029988604000010355, | |
0.029373320999980024, | |
0.0292251060000126, | |
0.02967131500000164, | |
0.029866456999997126, | |
0.027032800000000634 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.4784796251157 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.96622146527706e-07, | |
"ram": 4.167470856746024e-08, | |
"gpu": 0.0, | |
"total": 1.0382968550951654e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 963115.697685846 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3817433580000795, | |
"mean": 0.02936487369231381, | |
"stdev": 0.0010610811453682033, | |
"p50": 0.02939205600000605, | |
"p90": 0.03041474720001247, | |
"p95": 0.030985462400008143, | |
"p99": 0.03145890127999792, | |
"values": [ | |
0.03059093000001667, | |
0.03157726099999536, | |
0.029710015999995676, | |
0.029230757000021867, | |
0.02939205600000605, | |
0.029450404000016306, | |
0.029647109000023875, | |
0.029440557000015133, | |
0.028897107999995342, | |
0.02869114599999989, | |
0.029104582999991635, | |
0.0293423349999955, | |
0.02666909600000622 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.05429257002893 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |