IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
ae97127 verified
raw
history blame
9.65 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-1024-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "d4e01cd53c797cc9529d2651b70bdedc97c316bb",
"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": 1109.794816,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.812619962000042,
"mean": 4.812619962000042,
"stdev": 0.0,
"p50": 4.812619962000042,
"p90": 4.812619962000042,
"p95": 4.812619962000042,
"p99": 4.812619962000042,
"values": [
4.812619962000042
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.757532093260024e-05,
"ram": 2.8244591433485764e-06,
"gpu": 0,
"total": 7.039978007594881e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 963.526656,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6635341539998763,
"mean": 0.04423561026665842,
"stdev": 0.002570944066759592,
"p50": 0.04457042899997532,
"p90": 0.04692070099998773,
"p95": 0.047219482699966876,
"p99": 0.04771555253995416,
"values": [
0.044422801999985495,
0.046862449999991895,
0.046871156000008796,
0.04549594200000229,
0.04783956999995098,
0.04669019800002161,
0.04603526199997532,
0.046953730999973686,
0.04144962499998428,
0.04202913000000308,
0.041764394000040284,
0.04157811499999298,
0.04457042899997532,
0.04047171399997751,
0.040499635999992734
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.21244282476768
},
"energy": {
"unit": "kWh",
"cpu": 1.6068699624803332e-06,
"ram": 6.715380672076208e-08,
"gpu": 0.0,
"total": 1.6740237692010953e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1194726.1662565714
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 964.313088,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4012356170000544,
"mean": 0.02674904113333696,
"stdev": 0.001767066730121293,
"p50": 0.02578459199997951,
"p90": 0.029235994599991953,
"p95": 0.029487865300012572,
"p99": 0.02953293466001128,
"values": [
0.029463721000013265,
0.029544202000010955,
0.027639905999990333,
0.02796553500002119,
0.028586488000030386,
0.02889440499995999,
0.02762618100001646,
0.02537773000000243,
0.025470914000038647,
0.025322606999964137,
0.025223580999977457,
0.02578459199997951,
0.024606455000025562,
0.024604603000000225,
0.025124697000023843
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.38451763617477
},
"energy": {
"unit": "kWh",
"cpu": 9.462522798114355e-07,
"ram": 3.954632640117097e-08,
"gpu": 0.0,
"total": 9.857986062126065e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1014405.9787647242
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39495542899999236,
"mean": 0.026330361933332824,
"stdev": 0.0016959373425193905,
"p50": 0.025269366999964404,
"p90": 0.02876030200000059,
"p95": 0.028993311200002835,
"p99": 0.02901534383997955,
"values": [
0.02898150800001531,
0.02902085199997373,
0.027168413999959284,
0.027424161999988428,
0.02809084000000439,
0.028428492999978516,
0.02714168300002484,
0.02506503500001145,
0.025116912000044067,
0.024987007999982325,
0.024892131000001427,
0.025269366999964404,
0.024256288999993103,
0.02428332100004127,
0.02482941400000982
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.97896901424867
},
"energy": null,
"efficiency": null
}
}
}