IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
42534c0
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": "004348a741507f161e4fae5078d05de404e8b911", | |
"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": 1120.52224, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.898741243000018, | |
"mean": 4.898741243000018, | |
"stdev": 0.0, | |
"p50": 4.898741243000018, | |
"p90": 4.898741243000018, | |
"p95": 4.898741243000018, | |
"p99": 4.898741243000018, | |
"values": [ | |
4.898741243000018 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.885001806666651e-05, | |
"ram": 2.877681825014333e-06, | |
"gpu": 0, | |
"total": 7.172769989168084e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.869056, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6257791219999831, | |
"mean": 0.041718608133332204, | |
"stdev": 0.001177454218340798, | |
"p50": 0.04153412899998443, | |
"p90": 0.043432467800005266, | |
"p95": 0.044411046200005445, | |
"p99": 0.044561811640001565, | |
"values": [ | |
0.044599503000000595, | |
0.041614138999989336, | |
0.04103775100000462, | |
0.04159751800000322, | |
0.04169722399998932, | |
0.04076599199999009, | |
0.04208575100000189, | |
0.04153412899998443, | |
0.04123691300000587, | |
0.04103763099999469, | |
0.041533667000010155, | |
0.04433027900000752, | |
0.0404831030000139, | |
0.04036471199998459, | |
0.04186081000000286 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.94023792951151 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.573494847555556e-06, | |
"ram": 6.575962165813817e-08, | |
"gpu": 0.0, | |
"total": 1.6392544692136942e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1220066.827671573 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.655488, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.37992531400001894, | |
"mean": 0.025328354266667928, | |
"stdev": 0.00040302153875766965, | |
"p50": 0.02528048400000671, | |
"p90": 0.02574020860000701, | |
"p95": 0.025973493300000428, | |
"p99": 0.026284876259990143, | |
"values": [ | |
0.025640500000008615, | |
0.025806681000005938, | |
0.025358111000002737, | |
0.025431338999993613, | |
0.025270448000014767, | |
0.025007597000012538, | |
0.02559782999998106, | |
0.025133662000001777, | |
0.024923127999983308, | |
0.025129815000013878, | |
0.02636272199998757, | |
0.02528048400000671, | |
0.025418126999994684, | |
0.024751107000014372, | |
0.02481376299999738 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.481443976642346 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.515049875139124e-07, | |
"ram": 3.976624341829131e-08, | |
"gpu": 0.0, | |
"total": 9.91271230932204e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1008805.6313907016 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.37433884599997214, | |
"mean": 0.02495592306666481, | |
"stdev": 0.00036163836955554064, | |
"p50": 0.024933043999993743, | |
"p90": 0.02537344679999478, | |
"p95": 0.025557832000001213, | |
"p99": 0.025743270399993322, | |
"values": [ | |
0.02522577400000614, | |
0.02545849000000544, | |
0.025008176999989473, | |
0.025055334999990464, | |
0.02490142799999262, | |
0.024664505000004056, | |
0.025245881999978792, | |
0.02473397500000374, | |
0.024581288999996787, | |
0.02478559100001121, | |
0.025789629999991348, | |
0.024933043999993743, | |
0.025066919999972015, | |
0.02441344500002174, | |
0.024475361000014573 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 40.07064765060775 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |