IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ee4e8e9
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-1023-azure-x86_64-with-glibc2.35", | |
"processor": "x86_64", | |
"python_version": "3.10.14", | |
"optimum_benchmark_version": "0.3.1", | |
"optimum_benchmark_commit": "99fcabc594007fc692a6657e987b1cd9184b23bb", | |
"transformers_version": "4.43.1", | |
"transformers_commit": null, | |
"accelerate_version": "0.33.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": { | |
"load": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 1121.042432, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.98935480800003, | |
"mean": 4.98935480800003, | |
"stdev": 0.0, | |
"p50": 4.98935480800003, | |
"p90": 4.98935480800003, | |
"p95": 4.98935480800003, | |
"p99": 4.98935480800003, | |
"values": [ | |
4.98935480800003 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.767836809158327e-05, | |
"ram": 2.8287734232105777e-06, | |
"gpu": 0, | |
"total": 7.050714151479384e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.532608, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.6289879569998789, | |
"mean": 0.04838368899999068, | |
"stdev": 0.0011586016131887409, | |
"p50": 0.04875374499999907, | |
"p90": 0.04952680179995923, | |
"p95": 0.049914410999974734, | |
"p99": 0.05027401260000488, | |
"values": [ | |
0.04614502300000822, | |
0.0491750369999977, | |
0.04961474299994961, | |
0.047799013000030754, | |
0.05036391300001242, | |
0.047513613999967674, | |
0.046566525999992336, | |
0.04754206699999486, | |
0.04907924999997704, | |
0.04894661299999825, | |
0.04875374499999907, | |
0.04855826199997182, | |
0.048930150999979105 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 41.33624453481389 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6562419357123199e-06, | |
"ram": 6.921679876299436e-08, | |
"gpu": 0.0, | |
"total": 1.7254587344753143e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1159112.0436781524 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.450112, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.38703461600005085, | |
"mean": 0.02977189353846545, | |
"stdev": 0.0011511022185167381, | |
"p50": 0.029818787000010616, | |
"p90": 0.030815458999973087, | |
"p95": 0.03125857919998225, | |
"p99": 0.0316915502400002, | |
"values": [ | |
0.029516385999954764, | |
0.031799793000004684, | |
0.03032663900000898, | |
0.030897769999967295, | |
0.030486214999996264, | |
0.029544448000024204, | |
0.029742123999994874, | |
0.03029458900005011, | |
0.0300327929999753, | |
0.028348999000002095, | |
0.029818787000010616, | |
0.029345489000036196, | |
0.026880584000025465 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 33.5887268543398 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.409025090712089e-07, | |
"ram": 3.9321118356752996e-08, | |
"gpu": 0.0, | |
"total": 9.802236274279617e-07 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1020175.3681697411 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 13, | |
"total": 0.3806091710000601, | |
"mean": 0.02927762853846616, | |
"stdev": 0.0011309255586923173, | |
"p50": 0.02930692700005011, | |
"p90": 0.03029910640000253, | |
"p95": 0.03075672319999967, | |
"p99": 0.03120647263998535, | |
"values": [ | |
0.029024762999995346, | |
0.03131890999998177, | |
0.029843673000016224, | |
0.030381932000011602, | |
0.029967803999966236, | |
0.029066150000005564, | |
0.02925487999999632, | |
0.02980264600000737, | |
0.029507287999990695, | |
0.027797125000006417, | |
0.02930692700005011, | |
0.02881639700001415, | |
0.026520676000018284 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 34.15577182715323 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |