IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
f8207f5
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.0+cpu", | |
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend", | |
"task": "text-generation", | |
"library": "transformers", | |
"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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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", | |
"start_method": "spawn" | |
}, | |
"environment": { | |
"cpu": " AMD EPYC 7763 64-Core Processor", | |
"cpu_count": 4, | |
"cpu_ram_mb": 16757.354496, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "420ddf2d65dc94a93273eacd14ac0bd4f4b6cef7", | |
"transformers_version": "4.40.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.30.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.27.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.3", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 946.061312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6180469609999477, | |
"mean": 0.0475420739230729, | |
"stdev": 0.0008941193507300335, | |
"p50": 0.047392379000029905, | |
"p90": 0.04867992620000905, | |
"p95": 0.04874899120000009, | |
"p99": 0.04880123583998284, | |
"values": [ | |
0.04870545400001447, | |
0.04857781499998737, | |
0.04655666599995811, | |
0.04829793199996857, | |
0.047936046000017996, | |
0.04570660699999962, | |
0.04792314100001249, | |
0.04724989200002483, | |
0.04706259199997476, | |
0.04686271799999986, | |
0.047392379000029905, | |
0.04696142199998121, | |
0.048814296999978524 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.06800071945051 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6157045364379884e-06, | |
"ram": 6.752290526108027e-08, | |
"gpu": 0.0, | |
"total": 1.6832274416990687e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1188193.5562915832 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 946.061312, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3907519300001354, | |
"mean": 0.030057840769241187, | |
"stdev": 0.00022525827413496396, | |
"p50": 0.03001701199997342, | |
"p90": 0.030357101800029797, | |
"p95": 0.030409602000008817, | |
"p99": 0.030449367599985636, | |
"values": [ | |
0.03011674800001174, | |
0.030015299000012874, | |
0.03019913300005328, | |
0.02991325800002187, | |
0.029855009000016253, | |
0.030279653000036433, | |
0.029954164999992372, | |
0.03045930899997984, | |
0.029937995000011597, | |
0.03001701199997342, | |
0.03005342000000155, | |
0.030376464000028136, | |
0.029574464999996053 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.26918948294253 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.716655413309732e-07, | |
"ram": 4.061081394333714e-08, | |
"gpu": 0.0, | |
"total": 1.0122763552743103e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 987872.5259062446 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.9301806009999609, | |
"mean": 0.07751505008333008, | |
"stdev": 0.0007316296299658951, | |
"p50": 0.07757307199997854, | |
"p90": 0.07839993599999957, | |
"p95": 0.07850976535000313, | |
"p99": 0.07859989627000573, | |
"values": [ | |
0.07862242900000638, | |
0.07675229199998057, | |
0.07824108599999136, | |
0.07781990799998084, | |
0.07597676300002831, | |
0.07791631800000687, | |
0.07769759999996495, | |
0.07705139200004396, | |
0.07691117899997835, | |
0.07744854399999213, | |
0.07732550399998672, | |
0.07841758600000048 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 12.900720555878916 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |