IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
fbbdbb2
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": 16766.779392, | |
"system": "Linux", | |
"machine": "x86_64", | |
"platform": "Linux-6.8.0-1017-azure-x86_64-with-glibc2.39", | |
"processor": "x86_64", | |
"python_version": "3.10.15", | |
"optimum_benchmark_version": "0.5.0.dev0", | |
"optimum_benchmark_commit": "70f6b4dead3d8aa6a032126c9fcf37c802af9db4", | |
"transformers_version": "4.47.0", | |
"transformers_commit": null, | |
"accelerate_version": "1.2.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.31.0", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.12", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
}, | |
"print_report": true, | |
"log_report": true | |
}, | |
"report": { | |
"load_model": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1127.886848, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
1.7268132440000272 | |
], | |
"count": 1, | |
"total": 1.7268132440000272, | |
"mean": 1.7268132440000272, | |
"p50": 1.7268132440000272, | |
"p90": 1.7268132440000272, | |
"p95": 1.7268132440000272, | |
"p99": 1.7268132440000272, | |
"stdev": 0, | |
"stdev_": 0 | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 0.00019374549012777766, | |
"ram": 8.103220384743473e-06, | |
"gpu": 0, | |
"total": 0.00020184871051252113 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1014.136832, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.1049164620000056, | |
0.10837024499994641, | |
0.10605028399999128, | |
0.10717551999999841, | |
0.10757043500001373, | |
0.10120337600000084, | |
0.10045641599998589 | |
], | |
"count": 7, | |
"total": 0.7357427379999422, | |
"mean": 0.10510610542856316, | |
"p50": 0.10605028399999128, | |
"p90": 0.10789035899998681, | |
"p95": 0.10813030199996661, | |
"p99": 0.10832225639995045, | |
"stdev": 0.002897988233886027, | |
"stdev_": 2.75720256408481 | |
}, | |
"throughput": { | |
"unit": "samples/s", | |
"value": 19.028390328469815 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 4.08732398277768e-06, | |
"ram": 1.7091615687391412e-07, | |
"gpu": 0.0, | |
"total": 4.2582401396515955e-06 | |
}, | |
"efficiency": { | |
"unit": "samples/kWh", | |
"value": 469677.5978828751 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1014.136832, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.04877988999999161, | |
0.048366701000020385, | |
0.04971756700001606, | |
0.048209857999950145, | |
0.04902058699997269, | |
0.0415895489999798, | |
0.042087214999980915 | |
], | |
"count": 7, | |
"total": 0.3277713669999116, | |
"mean": 0.04682448099998737, | |
"p50": 0.048366701000020385, | |
"p90": 0.04929937899999004, | |
"p95": 0.04950847300000305, | |
"p99": 0.049675748200013456, | |
"stdev": 0.0031883799442905454, | |
"stdev_": 6.809215769612919 | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 42.712699794804756 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.4060360387502055e-06, | |
"ram": 5.879931345840644e-08, | |
"gpu": 0.0, | |
"total": 1.4648353522086169e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1365341.1606870932 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"values": [ | |
0.048297722999961934, | |
0.048297722999961934, | |
0.10887628699998686, | |
0.04795000400002891, | |
0.048297722999961934, | |
0.10887628699998686, | |
0.04795000400002891, | |
0.10648974299999736, | |
0.04924963500002377, | |
0.048297722999961934, | |
0.10887628699998686, | |
0.04795000400002891, | |
0.10648974299999736, | |
0.04924963500002377, | |
0.10766665500000272, | |
0.047716769999965436, | |
0.048297722999961934, | |
0.10887628699998686, | |
0.04795000400002891, | |
0.10648974299999736, | |
0.04924963500002377, | |
0.10766665500000272, | |
0.047716769999965436, | |
0.10808741800002508, | |
0.048560950999956276, | |
0.048297722999961934, | |
0.10887628699998686, | |
0.04795000400002891, | |
0.10648974299999736, | |
0.04924963500002377, | |
0.10766665500000272, | |
0.047716769999965436, | |
0.10808741800002508, | |
0.048560950999956276, | |
0.10168528400004107, | |
0.04124788299998272, | |
0.048297722999961934, | |
0.10887628699998686, | |
0.04795000400002891, | |
0.10648974299999736, | |
0.04924963500002377, | |
0.10766665500000272, | |
0.047716769999965436, | |
0.10808741800002508, | |
0.048560950999956276, | |
0.10168528400004107, | |
0.04124788299998272, | |
0.10081719800001565, | |
0.04171658499996056 | |
], | |
"count": 49, | |
"total": 3.5776176209997743, | |
"mean": 0.07301260451019947, | |
"p50": 0.04924963500002377, | |
"p90": 0.10887628699998686, | |
"p95": 0.10887628699998686, | |
"p99": 0.10887628699998686, | |
"stdev": 0.02943379812723238, | |
"stdev_": 40.31331072858884 | |
}, | |
"throughput": null, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |