IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
d256dc1
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", | |
"model": "openai-community/gpt2", | |
"library": "transformers", | |
"device": "cpu", | |
"device_ids": null, | |
"seed": 42, | |
"inter_op_num_threads": null, | |
"intra_op_num_threads": null, | |
"hub_kwargs": { | |
"revision": "main", | |
"force_download": false, | |
"local_files_only": false, | |
"trust_remote_code": false | |
}, | |
"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.342208, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.5.0-1018-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.0", | |
"optimum_benchmark_commit": "c08a62a8b686d201c33b94256f220dd9ac7afa59", | |
"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": "0.9.16", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 947.945472, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.6501918929999988, | |
"mean": 0.0541826577499999, | |
"stdev": 0.0013730740943377403, | |
"p50": 0.05391719749999879, | |
"p90": 0.056113270900002024, | |
"p95": 0.05628114490000087, | |
"p99": 0.05643012978000059, | |
"values": [ | |
0.05449306400001319, | |
0.05646737600000051, | |
0.05343985400000406, | |
0.05597374300000979, | |
0.05612877400000116, | |
0.05451769999999101, | |
0.05386753499999486, | |
0.05206449199999952, | |
0.05348776400001043, | |
0.05366801099998497, | |
0.053966860000002725, | |
0.05211671999998657 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.91217970938319 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7939004633161758e-06, | |
"ram": 7.496956684447428e-08, | |
"gpu": 0.0, | |
"total": 1.86887003016065e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1070165.3767908504 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 947.945472, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 12, | |
"total": 0.39980038700005593, | |
"mean": 0.03331669891667133, | |
"stdev": 0.0010702724590086038, | |
"p50": 0.03314393150000683, | |
"p90": 0.03458322480001641, | |
"p95": 0.034989840450009524, | |
"p99": 0.0353334984900016, | |
"values": [ | |
0.03248409299999366, | |
0.03313558100001046, | |
0.03541941299999962, | |
0.033722918999984586, | |
0.03361108999999374, | |
0.034638372000017625, | |
0.03277439500001833, | |
0.03281135500000687, | |
0.03101574600000845, | |
0.0331522820000032, | |
0.03408690000000547, | |
0.03294824100001392 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 30.014978449729018 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0845343271891277e-06, | |
"ram": 4.5323853443693366e-08, | |
"gpu": 0.0, | |
"total": 1.129858180632821e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 885066.8315203163 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 11, | |
"total": 0.9632466059999842, | |
"mean": 0.08756787327272585, | |
"stdev": 0.001953518647042037, | |
"p50": 0.08810024699999985, | |
"p90": 0.08973437200000944, | |
"p95": 0.08974758749999978, | |
"p99": 0.08975815989999206, | |
"values": [ | |
0.08963376499997366, | |
0.0888551300000131, | |
0.08973437200000944, | |
0.08976080299999012, | |
0.08915110300000606, | |
0.08666020299997967, | |
0.08491508100001965, | |
0.08453501899998628, | |
0.08680758900001706, | |
0.08810024699999985, | |
0.08509329399998933 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 11.419713219316735 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |