IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
1efe24e
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": "9a20da1f489402dd778fe1d26b97f74daf179458", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.0", | |
"accelerate_commit": null, | |
"diffusers_version": "0.30.2", | |
"diffusers_commit": null, | |
"optimum_version": null, | |
"optimum_commit": null, | |
"timm_version": "1.0.9", | |
"timm_commit": null, | |
"peft_version": null, | |
"peft_commit": null | |
} | |
}, | |
"report": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1110.700032, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.985544787999999, | |
"mean": 4.985544787999999, | |
"stdev": 0.0, | |
"p50": 4.985544787999999, | |
"p90": 4.985544787999999, | |
"p95": 4.985544787999999, | |
"p99": 4.985544787999999, | |
"values": [ | |
4.985544787999999 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.800998442777833e-05, | |
"ram": 2.842646858687908e-06, | |
"gpu": 0, | |
"total": 7.085263128646624e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.042752, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6267067390000136, | |
"mean": 0.04820821069230874, | |
"stdev": 0.0021459860148466967, | |
"p50": 0.04866667599998209, | |
"p90": 0.05023369680001224, | |
"p95": 0.05072652079999784, | |
"p99": 0.051186066559984054, | |
"values": [ | |
0.047659333000012793, | |
0.049725910999995904, | |
0.04912055899998791, | |
0.047947160999996186, | |
0.05034356600000933, | |
0.05130095299998061, | |
0.049040923999996267, | |
0.04866667599998209, | |
0.04979422000002387, | |
0.042715979000007565, | |
0.0478101570000149, | |
0.0470463489999986, | |
0.045534951000007595 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.48670882570394 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6627967724537004e-06, | |
"ram": 6.949172502802344e-08, | |
"gpu": 0.0, | |
"total": 1.732288497481724e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1154542.1001798809 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 964.829184, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.386703625999985, | |
"mean": 0.029746432769229614, | |
"stdev": 0.0017120197487387923, | |
"p50": 0.030086836999998923, | |
"p90": 0.031649524999994585, | |
"p95": 0.03174076799999739, | |
"p99": 0.03184991280000531, | |
"values": [ | |
0.030281763999994382, | |
0.030534136999989414, | |
0.029945635000018456, | |
0.03164836900000978, | |
0.031649813999990783, | |
0.03084866800000441, | |
0.031877199000007295, | |
0.02999714899999617, | |
0.026491816999993034, | |
0.02757747299997959, | |
0.02695069300000341, | |
0.030086836999998923, | |
0.02881407099999933 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.61747634608553 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.969289312499564e-07, | |
"ram": 4.166352117617076e-08, | |
"gpu": 0.0, | |
"total": 1.038592452426128e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 962841.5820508065 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.38050565699995786, | |
"mean": 0.02926966592307368, | |
"stdev": 0.0016489780978953127, | |
"p50": 0.02967904499999463, | |
"p90": 0.031091859599990813, | |
"p95": 0.03118656919999694, | |
"p99": 0.03129772904000447, | |
"values": [ | |
0.029761109999981272, | |
0.030029311999982156, | |
0.029394723000024214, | |
0.03108355399999141, | |
0.031093935999990663, | |
0.030328147000005856, | |
0.03132551900000635, | |
0.029520851000000903, | |
0.026133607999980768, | |
0.02715953300000251, | |
0.02656148599999142, | |
0.02967904499999463, | |
0.02843483300000571 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.16506367473386 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |