IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
5a7ec89 verified
raw
history blame
8.39 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.1+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"library": "transformers",
"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": {},
"hub_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,
"latency": true,
"memory": 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-1022-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.1",
"optimum_benchmark_commit": "3731aa19b0b76022fb42f78436721c579f50c777",
"transformers_version": "4.42.3",
"transformers_commit": null,
"accelerate_version": "0.31.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": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 956.837888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6405069269998762,
"mean": 0.04575049478570544,
"stdev": 0.002331541050808257,
"p50": 0.04650717549998262,
"p90": 0.047667009499991767,
"p95": 0.04791023484999357,
"p99": 0.04795499176999272,
"values": [
0.0479661809999925,
0.04788010999999415,
0.0471697749999862,
0.046457998999983374,
0.04434686200005444,
0.04655635199998187,
0.046287270999982866,
0.04689336100000219,
0.04693889599997192,
0.04637273999998115,
0.04687180100000887,
0.04591306300000042,
0.04070340999999189,
0.04014910599994437
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.715374213283745
},
"energy": {
"unit": "kWh",
"cpu": 1.548574520991399e-06,
"ram": 6.471743282746118e-08,
"gpu": 0.0,
"total": 1.61329195381886e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1239701.2179139396
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 956.837888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3938643540001294,
"mean": 0.02813316814286639,
"stdev": 0.0014214745719536034,
"p50": 0.028675639000027786,
"p90": 0.02945363829999792,
"p95": 0.029599561250009288,
"p99": 0.029620733050015245,
"values": [
0.029626026000016736,
0.027960590999953183,
0.028843357000027936,
0.02876842700004545,
0.028859105999970325,
0.02894663000000719,
0.028135958999996546,
0.029146401999980753,
0.029585311000005277,
0.028582851000010123,
0.02852419200002032,
0.026504278999993858,
0.0247047200000452,
0.025676503000056528
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.54523240759025
},
"energy": {
"unit": "kWh",
"cpu": 9.442384999531969e-07,
"ram": 3.946180583553242e-08,
"gpu": 0.0,
"total": 9.837003057887297e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1016569.7765013921
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9572018220000018,
"mean": 0.07363090938461553,
"stdev": 0.00357479025210195,
"p50": 0.07525248499996451,
"p90": 0.07610086180003464,
"p95": 0.07631410200001483,
"p99": 0.07654280279999512,
"values": [
0.07588265999999066,
0.07601023700004816,
0.07525248499996451,
0.07322024600000532,
0.07553119400000696,
0.07428790699998444,
0.07612351800003125,
0.07659997799999019,
0.07495814599997175,
0.0754330310000455,
0.0726004129999751,
0.06542875899998535,
0.0658732480000026
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.581252878141695
},
"energy": null,
"efficiency": null
}
}
}