IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
953a21d
verified
{ | |
"config": { | |
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2", | |
"backend": { | |
"name": "pytorch", | |
"version": "2.4.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": 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": null, | |
"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": "1cf5bfa2950404184ab9e18b574b5cfdc4aa0503", | |
"transformers_version": "4.44.2", | |
"transformers_commit": null, | |
"accelerate_version": "0.34.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": 1120.288768, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.867337074999995, | |
"mean": 4.867337074999995, | |
"stdev": 0.0, | |
"p50": 4.867337074999995, | |
"p90": 4.867337074999995, | |
"p95": 4.867337074999995, | |
"p99": 4.867337074999995, | |
"values": [ | |
4.867337074999995 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.924307619444474e-05, | |
"ram": 2.8941828769210567e-06, | |
"gpu": 0, | |
"total": 7.21372590713658e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 973.778944, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.6536631110000997, | |
"mean": 0.04357754073333998, | |
"stdev": 0.001773127225000299, | |
"p50": 0.04308373500001039, | |
"p90": 0.04610803120000355, | |
"p95": 0.04635290200000384, | |
"p99": 0.046427718000002755, | |
"values": [ | |
0.04566853700001161, | |
0.04631282200000442, | |
0.04529639100002214, | |
0.046446422000002485, | |
0.042465047000007417, | |
0.04308373500001039, | |
0.04276354500001389, | |
0.04321957900000939, | |
0.04330825400001004, | |
0.043069266999992806, | |
0.045800845000002255, | |
0.041612603000004356, | |
0.04194042599999648, | |
0.04131827300000168, | |
0.041357365000010304 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 45.895201205557136 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6018996699999788e-06, | |
"ram": 6.69464566793786e-08, | |
"gpu": 0.0, | |
"total": 1.6688461266793573e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1198432.8381308392 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.434304, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.3937093029998664, | |
"mean": 0.02624728686665776, | |
"stdev": 0.0011891665845052454, | |
"p50": 0.025921371000009685, | |
"p90": 0.028290209399989406, | |
"p95": 0.028466458899990242, | |
"p99": 0.028638341380000723, | |
"values": [ | |
0.028681312000003345, | |
0.028163954999996577, | |
0.02837437899998463, | |
0.026658879999985174, | |
0.0258090919999745, | |
0.02591821499999014, | |
0.02641055600000186, | |
0.02593608899999822, | |
0.026071762999976045, | |
0.025921371000009685, | |
0.025357917999997426, | |
0.025318142999992688, | |
0.025079216999984055, | |
0.02465084499999648, | |
0.025357567999975572 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.099175929315265 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.705250727083e-07, | |
"ram": 4.0561842334122905e-08, | |
"gpu": 0.0, | |
"total": 1.011086915042423e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 989034.6567861994 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 15, | |
"total": 0.38785590799992065, | |
"mean": 0.025857060533328043, | |
"stdev": 0.001122094018807666, | |
"p50": 0.025568340999996053, | |
"p90": 0.027771723999990172, | |
"p95": 0.027946888399992532, | |
"p99": 0.028114209679997657, | |
"values": [ | |
0.02815603999999894, | |
0.027643431999990753, | |
0.027857251999989785, | |
0.026291993999990382, | |
0.025441794999977674, | |
0.025569984000014756, | |
0.026035484999994196, | |
0.025568340999996053, | |
0.02570180099999675, | |
0.025463545000008025, | |
0.02501427500001796, | |
0.02497508199999743, | |
0.024783553999981223, | |
0.024327530999983082, | |
0.02502579699998364 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 38.67415627971579 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |