IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
691ad39
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.5.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": 2, | |
"sequence_length": 16, | |
"num_choices": 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": null, | |
"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.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "3fa51d0542beea1666aad9ab8f03ecc8c46bd812", | |
"transformers_version": "4.46.3", | |
"transformers_commit": null, | |
"accelerate_version": "1.1.1", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.11", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1131.835392, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7317197550000287 | |
], | |
"count": 1, | |
"total": 1.7317197550000287, | |
"mean": 1.7317197550000287, | |
"p50": 1.7317197550000287, | |
"p90": 1.7317197550000287, | |
"p95": 1.7317197550000287, | |
"p99": 1.7317197550000287, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.00020157172583333346, | |
"ram": 8.425856189883057e-06, | |
"gpu": 0, | |
"total": 0.0002099975820232165 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1013.465088, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.14954239899998356, | |
0.14040691499997138, | |
0.1115484439999932, | |
0.10516284100003759, | |
0.10470310100004099, | |
0.10386119200001076, | |
0.10506849500001181 | |
], | |
"count": 7, | |
"total": 0.8202933870000493, | |
"mean": 0.11718476957143562, | |
"p50": 0.10516284100003759, | |
"p90": 0.14406110859997626, | |
"p95": 0.1468017537999799, | |
"p99": 0.14899426995998283, | |
"stdev": 0.01789929380961493, | |
"stdev_": 15.27441993961814 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 17.06706432341281 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.0251660866666344e-06, | |
"ram": 1.6821314157215388e-07, | |
"gpu": 0.0, | |
"total": 4.193379228238789e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 476942.315765702 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1021.99296, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.049029333000021325, | |
0.043708055000024615, | |
0.043331082999998216, | |
0.04328179999998838, | |
0.043137490999981765, | |
0.04335506699999314, | |
0.04361363900000015 | |
], | |
"count": 7, | |
"total": 0.3094564680000076, | |
"mean": 0.04420806685714394, | |
"p50": 0.04335506699999314, | |
"p90": 0.0458365662000233, | |
"p95": 0.047432949600022305, | |
"p99": 0.04871005632002152, | |
"stdev": 0.0019766051688134773, | |
"stdev_": 4.471141376076845 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.24061200103808 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6996927800002182e-06, | |
"ram": 7.103541816817986e-08, | |
"gpu": 0.0, | |
"total": 1.7707281981683968e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1129478.8223674062 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.047653857000000244, | |
0.042576263000000836, | |
0.042211713999961376, | |
0.04217309099999511, | |
0.042112658999997166, | |
0.0423227510000288, | |
0.04249115499999334 | |
], | |
"count": 7, | |
"total": 0.3015414899999769, | |
"mean": 0.04307735571428241, | |
"p50": 0.0423227510000288, | |
"p90": 0.0446073006000006, | |
"p95": 0.04613057880000042, | |
"p99": 0.04734920136000028, | |
"stdev": 0.001874878566746594, | |
"stdev_": 4.352352960525321 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |