IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8bed146
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.338112, | |
"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": "568ed8636147860d2a01865bb64a72a90d927d91", | |
"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": 1119.70304, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.994092136000006, | |
"mean": 4.994092136000006, | |
"stdev": 0.0, | |
"p50": 4.994092136000006, | |
"p90": 4.994092136000006, | |
"p95": 4.994092136000006, | |
"p99": 4.994092136000006, | |
"values": [ | |
4.994092136000006 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.889128952222182e-05, | |
"ram": 2.8794950831460553e-06, | |
"gpu": 0, | |
"total": 7.177078460536787e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 972.92288, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6560126480001145, | |
"mean": 0.04373417653334097, | |
"stdev": 0.0016828500559013463, | |
"p50": 0.043231986000023426, | |
"p90": 0.0462788688000046, | |
"p95": 0.04767424280000228, | |
"p99": 0.047835789359991165, | |
"values": [ | |
0.043569674000025316, | |
0.04263453499999059, | |
0.04298708000004581, | |
0.04231924800001252, | |
0.04386554799998521, | |
0.04320860199999288, | |
0.04250018499999442, | |
0.042222498000000996, | |
0.04233054900004163, | |
0.044315621999999166, | |
0.04787617599998839, | |
0.047587700000008226, | |
0.04361038000001827, | |
0.04375286499998765, | |
0.043231986000023426 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.730825604439815 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6719400687499464e-06, | |
"ram": 6.987346602223021e-08, | |
"gpu": 0.0, | |
"total": 1.7418135347721766e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1148228.5331199893 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.840384, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.40322033199993257, | |
"mean": 0.02688135546666217, | |
"stdev": 0.0014618371199596903, | |
"p50": 0.026509966999981316, | |
"p90": 0.029353130800006965, | |
"p95": 0.029723020300014013, | |
"p99": 0.02980490406002673, | |
"values": [ | |
0.02656965799997124, | |
0.02598341700002038, | |
0.026097630999970534, | |
0.026133706999985407, | |
0.026362493000021914, | |
0.02711257900000419, | |
0.025677868999991915, | |
0.025554829999975937, | |
0.026692155999967326, | |
0.02886409600000661, | |
0.029679154000007202, | |
0.029825375000029908, | |
0.027588453000021218, | |
0.026509966999981316, | |
0.02456894699997747 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.20050505787121 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.0171305216204155e-06, | |
"ram": 4.250804011956933e-08, | |
"gpu": 0.0, | |
"total": 1.0596385617399837e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 943718.0149030685 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.39704768000007107, | |
"mean": 0.02646984533333807, | |
"stdev": 0.0013999190148325377, | |
"p50": 0.026124369999990904, | |
"p90": 0.02881921479998937, | |
"p95": 0.02918388649999315, | |
"p99": 0.02925769170000194, | |
"values": [ | |
0.02618180700000039, | |
0.025623588000030395, | |
0.025720067999998264, | |
0.025756375000014486, | |
0.025954043000012916, | |
0.02673300300000392, | |
0.02530688900003497, | |
0.025200320999999803, | |
0.026293505000012374, | |
0.02833151499999076, | |
0.02914434799998844, | |
0.02927614300000414, | |
0.027184020999982295, | |
0.026124369999990904, | |
0.02421768400000701 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 37.77883804785691 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |