IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ed6a1f8 verified
raw
history blame
9.52 kB
{
"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": "789d9c2ca36ce9adc1c7d5a4e3c06eba2fa75fdc",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"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": 1121.77152,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.756794945000024,
"mean": 4.756794945000024,
"stdev": 0.0,
"p50": 4.756794945000024,
"p90": 4.756794945000024,
"p95": 4.756794945000024,
"p99": 4.756794945000024,
"values": [
4.756794945000024
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.861774309444496e-05,
"ram": 2.868032609564691e-06,
"gpu": 0,
"total": 7.148577570400965e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 976.019456,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6190742649999379,
"mean": 0.04421959035713842,
"stdev": 0.002141602012655898,
"p50": 0.045020388499978026,
"p90": 0.04593068049998124,
"p95": 0.046780233499976016,
"p99": 0.04800816670000131,
"values": [
0.045953739999959,
0.048315150000007634,
0.04528448700000354,
0.04513718999999128,
0.045080561999952806,
0.044960215000003245,
0.045876875000033124,
0.04490472100002307,
0.04514678800001093,
0.04296922199995379,
0.041817095999988396,
0.042491438000013204,
0.04079602000001614,
0.04034076099998174
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.22882242569526
},
"energy": {
"unit": "kWh",
"cpu": 1.6428896474537109e-06,
"ram": 6.86591189316424e-08,
"gpu": 0.0,
"total": 1.7115487663853533e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1168532.2903324754
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 976.150528,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3883078540000042,
"mean": 0.02773627528571459,
"stdev": 0.0011619771748840955,
"p50": 0.027863102499992465,
"p90": 0.02920098840001515,
"p95": 0.029472554900004867,
"p99": 0.029639367779977305,
"values": [
0.029360277000023416,
0.029681070999970416,
0.02771321000000171,
0.02832794900001545,
0.02805629800002407,
0.028424079999979313,
0.027891936999992595,
0.02882931499999586,
0.027834267999992335,
0.02648021400000289,
0.026126026000042657,
0.027561823999974422,
0.025717353999993975,
0.02630403099999512
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.053867712909685
},
"energy": {
"unit": "kWh",
"cpu": 9.53553271805489e-07,
"ram": 3.985085130975232e-08,
"gpu": 0.0,
"total": 9.934041231152423e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1006639.6713394681
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3824761340000009,
"mean": 0.027319723857142923,
"stdev": 0.001096598265360853,
"p50": 0.027392514999974082,
"p90": 0.0287231380000037,
"p95": 0.028996919800005117,
"p99": 0.029167546359993822,
"values": [
0.02888207500001272,
0.029210202999990997,
0.027252661999966676,
0.02784383600004503,
0.027573246000031304,
0.027940648000026158,
0.027417852999974457,
0.028352284999982658,
0.027367176999973708,
0.0261688470000081,
0.025817323000012493,
0.027252320000002328,
0.025405064999972637,
0.025992594000001645
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.603591062233356
},
"energy": null,
"efficiency": null
}
}
}