IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
a0c5ee7
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.3.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": "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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "35e06a8a39b8c67a2e53b499c65346db81ed78be", | |
"transformers_version": "4.42.4", | |
"transformers_commit": null, | |
"accelerate_version": "0.32.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.29.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.7", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1104.887808, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.972163666999961, | |
"mean": 4.972163666999961, | |
"stdev": 0.0, | |
"p50": 4.972163666999961, | |
"p90": 4.972163666999961, | |
"p95": 4.972163666999961, | |
"p99": 4.972163666999961, | |
"values": [ | |
4.972163666999961 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.825321250491672e-05, | |
"ram": 2.852803702355686e-06, | |
"gpu": 0, | |
"total": 7.110601620727242e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.492672, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6560045010000408, | |
"mean": 0.04685746435714577, | |
"stdev": 0.00284122602840285, | |
"p50": 0.04776749299998073, | |
"p90": 0.04955391780002856, | |
"p95": 0.05053346950001298, | |
"p99": 0.05167463549999013, | |
"values": [ | |
0.04806437000002006, | |
0.048923096999999416, | |
0.04771525600000359, | |
0.049765377000028366, | |
0.04781972999995787, | |
0.04887491799996724, | |
0.049060513000029005, | |
0.05195992699998442, | |
0.047039870999981304, | |
0.04355481200002487, | |
0.04286916400002383, | |
0.04374542800002246, | |
0.04282724600000165, | |
0.04378479199999674 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.682633971742 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.7134767799561729e-06, | |
"ram": 7.160848836520016e-08, | |
"gpu": 0.0, | |
"total": 1.785085268321373e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1120394.658727269 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 958.885888, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3949812010000642, | |
"mean": 0.028212942928576012, | |
"stdev": 0.0019119852493899964, | |
"p50": 0.029387228499984985, | |
"p90": 0.030176705599996013, | |
"p95": 0.030332203499997944, | |
"p99": 0.030480179900008012, | |
"values": [ | |
0.029522188999976606, | |
0.029715140000007523, | |
0.029252267999993364, | |
0.03023260399999117, | |
0.02975210900001457, | |
0.030517174000010527, | |
0.029678311999987272, | |
0.03004627600000731, | |
0.025711598999976104, | |
0.026487855000027594, | |
0.025672185000019, | |
0.026374303000011423, | |
0.025803981000024123, | |
0.026215206000017588 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.444724874381365 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.9205539998225e-07, | |
"ram": 4.146016549316301e-08, | |
"gpu": 0.0, | |
"total": 1.0335155654754122e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 967571.3007186349 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.3885085170001048, | |
"mean": 0.027750608357150344, | |
"stdev": 0.0018369203238799228, | |
"p50": 0.02886516500001335, | |
"p90": 0.029631815999988476, | |
"p95": 0.029797785350004345, | |
"p99": 0.029948825070014777, | |
"values": [ | |
0.02899244100001397, | |
0.02922454600002311, | |
0.02873788900001273, | |
0.029696123999997326, | |
0.029205992000015613, | |
0.029986585000017385, | |
0.029167338999968706, | |
0.029481763999967825, | |
0.025337201000013465, | |
0.026126541999985875, | |
0.02531181300003027, | |
0.02603356800000256, | |
0.025424113000042325, | |
0.025782600000013645 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 36.03524604325784 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |