IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fca98bc
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": "f32449e677ccf97474e910c2d5ac206ff11edba2", | |
"transformers_version": "4.44.0", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.8", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1121.783808, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.799345813999992, | |
"mean": 4.799345813999992, | |
"stdev": 0.0, | |
"p50": 4.799345813999992, | |
"p90": 4.799345813999992, | |
"p95": 4.799345813999992, | |
"p99": 4.799345813999992, | |
"values": [ | |
4.799345813999992 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.779408486666686e-05, | |
"ram": 2.833619714721703e-06, | |
"gpu": 0, | |
"total": 7.062770458138857e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.130624, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6301456869999527, | |
"mean": 0.04200971246666351, | |
"stdev": 0.0027514004063474255, | |
"p50": 0.043933069999980034, | |
"p90": 0.044880232599996364, | |
"p95": 0.045005817300000216, | |
"p99": 0.04505984666000813, | |
"values": [ | |
0.04460126099999684, | |
0.04430779099999427, | |
0.04507335400001011, | |
0.04473527199999694, | |
0.044976872999995976, | |
0.04468850399999269, | |
0.043933069999980034, | |
0.04404347700000244, | |
0.03878695999998172, | |
0.040428552999998146, | |
0.03886460600000419, | |
0.03884760299999357, | |
0.03906650400000444, | |
0.03911403199998631, | |
0.038677827000014986 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 47.60803829797894 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.5437015865384802e-06, | |
"ram": 6.451430669377842e-08, | |
"gpu": 0.0, | |
"total": 1.6082158932322586e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1243614.1244570825 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.917056, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38969852500005686, | |
"mean": 0.025979901666670458, | |
"stdev": 0.0018805728385115758, | |
"p50": 0.027315344000015784, | |
"p90": 0.02788912380000852, | |
"p95": 0.027930808700006082, | |
"p99": 0.027939454539995266, | |
"values": [ | |
0.027636744999995244, | |
0.027644721000001482, | |
0.027926177000011876, | |
0.027821681000006038, | |
0.027941615999992564, | |
0.027833544000003485, | |
0.027315344000015784, | |
0.027721143999997366, | |
0.02381936200001178, | |
0.024196638000006487, | |
0.02371623900000941, | |
0.023928345999991052, | |
0.024030266000011125, | |
0.024278131000016856, | |
0.023888570999986314 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.491292724286836 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.038618422809708e-07, | |
"ram": 3.7773780163550204e-08, | |
"gpu": 0.0, | |
"total": 9.416356224445215e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1061981.9133477155 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3836115440001038, | |
"mean": 0.02557410293334025, | |
"stdev": 0.0017934645114968503, | |
"p50": 0.026841678000010916, | |
"p90": 0.027395605400010938, | |
"p95": 0.027441667900012588, | |
"p99": 0.027460272780014065, | |
"values": [ | |
0.027129655999999613, | |
0.02716743800002064, | |
0.0274317010000118, | |
0.027341462000009642, | |
0.027464924000014435, | |
0.02733523099999502, | |
0.026841678000010916, | |
0.02722923300001412, | |
0.023504653000003373, | |
0.02387167000000545, | |
0.02340670999998906, | |
0.023627093000015975, | |
0.02371592800000144, | |
0.023966187000013406, | |
0.023577979999998888 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 39.10205580256454 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |