IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
803e5b6
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": "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": {}, | |
"hub_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, | |
"latency": true, | |
"memory": 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-1022-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.2.1", | |
"optimum_benchmark_commit": "0d561969d04a7091baf8691bc894eb753a189d4f", | |
"transformers_version": "4.42.3", | |
"transformers_commit": null, | |
"accelerate_version": "0.31.0", | |
"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": { | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.206528, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6387231899999222, | |
"mean": 0.04562308499999444, | |
"stdev": 0.002015861364428384, | |
"p50": 0.046632702499991296, | |
"p90": 0.047173561899981564, | |
"p95": 0.04719734799998889, | |
"p99": 0.04720031200000505, | |
"values": [ | |
0.04719535299997801, | |
0.04699393499998905, | |
0.04674314400000412, | |
0.047078662999979315, | |
0.04490739100000951, | |
0.04712271599998985, | |
0.04652226099997847, | |
0.04695320799999081, | |
0.0472010530000091, | |
0.04615858799999728, | |
0.04584094200001232, | |
0.042746658999988085, | |
0.04227583599998752, | |
0.040983441000008725 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.837456410504544 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6029505729675295e-06, | |
"ram": 6.698988656630717e-08, | |
"gpu": 0.0, | |
"total": 1.6699404595338366e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1197647.490113689 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 957.206528, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39395761500003346, | |
"mean": 0.02813982964285953, | |
"stdev": 0.0016018981040718367, | |
"p50": 0.02830891700000393, | |
"p90": 0.029609133900001437, | |
"p95": 0.029927618500002494, | |
"p99": 0.030335054099991224, | |
"values": [ | |
0.029299890000004325, | |
0.027634806999998318, | |
0.030436912999988408, | |
0.029455643000005693, | |
0.02965338300001008, | |
0.02907299500000704, | |
0.028112914000018918, | |
0.028504919999988942, | |
0.029505885999981274, | |
0.02810255400001438, | |
0.027854520000005323, | |
0.025749852000018336, | |
0.02548508600000332, | |
0.025088251999989097 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.53681783762147 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.644201596577967e-07, | |
"ram": 4.030301915143466e-08, | |
"gpu": 0.0, | |
"total": 1.0047231788092312e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 995299.0247375113 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.9565889090000042, | |
"mean": 0.07358376223076955, | |
"stdev": 0.003504193314235454, | |
"p50": 0.07468265299999644, | |
"p90": 0.07665597619999857, | |
"p95": 0.07685573879999197, | |
"p99": 0.07707262535998893, | |
"values": [ | |
0.07470334200002071, | |
0.07712684699998817, | |
0.0765798810000149, | |
0.07449270699999033, | |
0.07628734299998996, | |
0.07468265299999644, | |
0.07546289600000478, | |
0.0766749999999945, | |
0.07431690700002491, | |
0.07370704399997408, | |
0.06868606599999794, | |
0.06778333500000144, | |
0.066084888000006 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 13.58995476289799 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |