IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
6683b3b verified
raw
history blame
9.64 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": "warn",
"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": "505086556c6e125f92759cd19b806135534e5ab3",
"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.878592,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.883996857999989,
"mean": 4.883996857999989,
"stdev": 0.0,
"p50": 4.883996857999989,
"p90": 4.883996857999989,
"p95": 4.883996857999989,
"p99": 4.883996857999989,
"values": [
4.883996857999989
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.890721187777728e-05,
"ram": 2.880146288289732e-06,
"gpu": 0,
"total": 7.178735816606702e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.229504,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.629977077999996,
"mean": 0.0419984718666664,
"stdev": 0.001218402626521423,
"p50": 0.04163306300000613,
"p90": 0.043583808799996855,
"p95": 0.04479018890001214,
"p99": 0.04512662738001779,
"values": [
0.04199414699999693,
0.041580654999989974,
0.0419893780000109,
0.04194373200002133,
0.04189386000001605,
0.041213037999995095,
0.04163306300000613,
0.041117950999989716,
0.04460995400000911,
0.04204459099997848,
0.04145615199999497,
0.04521073700001921,
0.040447095999979865,
0.04127034499998672,
0.04157237900000155
]
},
"throughput": {
"unit": "tokens/s",
"value": 47.620780259563965
},
"energy": {
"unit": "kWh",
"cpu": 1.6280356150462874e-06,
"ram": 6.803809038718375e-08,
"gpu": 0.0,
"total": 1.6960737054334712e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1179194.0371417133
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 975.015936,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.39445368399998415,
"mean": 0.02629691226666561,
"stdev": 0.0006256829530236599,
"p50": 0.026397308000014164,
"p90": 0.026994013600005928,
"p95": 0.0272245181000045,
"p99": 0.027514792420002435,
"values": [
0.026040761999979622,
0.026291319999984353,
0.026881513000006407,
0.02662697699997807,
0.026439295999978185,
0.02706901400000561,
0.026443833999991284,
0.02758736100000192,
0.026030862999988358,
0.026397308000014164,
0.026681409000019585,
0.025361021999998457,
0.02584686900001998,
0.025546748000010666,
0.025209388000007493
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.02727825455067
},
"energy": {
"unit": "kWh",
"cpu": 9.820147493981547e-07,
"ram": 4.104005464582367e-08,
"gpu": 0.0,
"total": 1.0230548040439783e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 977464.7419152461
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.3888606839999511,
"mean": 0.02592404559999674,
"stdev": 0.0005828214847466364,
"p50": 0.02605945700000234,
"p90": 0.026641749399999526,
"p95": 0.026804358100005744,
"p99": 0.02698054361999823,
"values": [
0.02566586099999313,
0.025917421000002605,
0.026539413999984163,
0.026284987999986242,
0.026094270999976743,
0.026709973000009768,
0.02610173499999746,
0.02702458999999635,
0.02568422499999201,
0.02605945700000234,
0.026112075000014556,
0.025035683999988123,
0.025518817000005356,
0.025227572000005694,
0.024884600999996564
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.57422623882924
},
"energy": null,
"efficiency": null
}
}
}