IlyasMoutawwakil
HF staff
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6ecf375
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": "5d46f86e41f222edc00e7cd49069aba0547a6c3d", | |
"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": 1120.841728, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 1, | |
"total": 4.851395104000005, | |
"mean": 4.851395104000005, | |
"stdev": 0.0, | |
"p50": 4.851395104000005, | |
"p90": 4.851395104000005, | |
"p95": 4.851395104000005, | |
"p99": 4.851395104000005, | |
"values": [ | |
4.851395104000005 | |
] | |
}, | |
"throughput": null, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 6.824340354999963e-05, | |
"ram": 2.8523626815522973e-06, | |
"gpu": 0, | |
"total": 7.109576623155192e-05 | |
}, | |
"efficiency": null | |
}, | |
"prefill": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 974.966784, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.6470298169999751, | |
"mean": 0.04621641549999822, | |
"stdev": 0.001723726017596568, | |
"p50": 0.046649421000012126, | |
"p90": 0.0473057869999991, | |
"p95": 0.04760677215000726, | |
"p99": 0.04799962643002175, | |
"values": [ | |
0.045450223999978334, | |
0.04809784000002537, | |
0.04681409599999142, | |
0.046526740999979666, | |
0.04734235099999751, | |
0.046741547999999966, | |
0.04583193199999869, | |
0.04616469200004758, | |
0.046557294000024285, | |
0.04678871599998047, | |
0.04722047100000282, | |
0.04620019799995134, | |
0.046861319000015556, | |
0.04043239499998208 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 43.27466720131242 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 1.6310878175925714e-06, | |
"ram": 6.816559955275156e-08, | |
"gpu": 0.0, | |
"total": 1.699253417145323e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 1176987.4815728893 | |
} | |
}, | |
"decode": { | |
"memory": { | |
"unit": "MB", | |
"max_ram": 975.36, | |
"max_global_vram": null, | |
"max_process_vram": null, | |
"max_reserved": null, | |
"max_allocated": null | |
}, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39867409399988674, | |
"mean": 0.02847672099999191, | |
"stdev": 0.0012635217256531286, | |
"p50": 0.028950984000005064, | |
"p90": 0.029316812199982677, | |
"p95": 0.029533989349988587, | |
"p99": 0.029790225070005363, | |
"values": [ | |
0.028946582000003218, | |
0.029854284000009557, | |
0.02835774299995819, | |
0.029212486999995235, | |
0.02891776500001697, | |
0.029034943999988627, | |
0.029361522999977296, | |
0.02909800199995516, | |
0.02867192700000487, | |
0.028086776000009195, | |
0.028995710999993207, | |
0.02895538600000691, | |
0.026161656999988736, | |
0.025019306999979563 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.11640262234841 | |
}, | |
"energy": { | |
"unit": "kWh", | |
"cpu": 9.925250312962806e-07, | |
"ram": 4.148060850234616e-08, | |
"gpu": 0.0, | |
"total": 1.0340056397986265e-06 | |
}, | |
"efficiency": { | |
"unit": "tokens/kWh", | |
"value": 967112.7134226762 | |
} | |
}, | |
"per_token": { | |
"memory": null, | |
"latency": { | |
"unit": "s", | |
"count": 14, | |
"total": 0.39208199499995544, | |
"mean": 0.028005856785711103, | |
"stdev": 0.0012049642410074956, | |
"p50": 0.028450085000031322, | |
"p90": 0.02881587539998236, | |
"p95": 0.02903248044997895, | |
"p99": 0.029279421689976742, | |
"values": [ | |
0.028432223000038448, | |
0.029341156999976192, | |
0.027873389999967912, | |
0.02869828799998686, | |
0.028424947000019074, | |
0.028568834999987303, | |
0.028866269999980432, | |
0.028593310999951882, | |
0.028156856999999036, | |
0.027620397000021057, | |
0.0285034830000086, | |
0.028467947000024196, | |
0.025840588999983538, | |
0.02469430100001091 | |
] | |
}, | |
"throughput": { | |
"unit": "tokens/s", | |
"value": 35.70681688660962 | |
}, | |
"energy": null, | |
"efficiency": null | |
} | |
} | |
} |