IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
c461a6c verified
raw
history blame
8.27 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.0+cpu",
"_target_": "optimum_benchmark.backends.pytorch.backend.PyTorchBackend",
"task": "text-generation",
"model": "openai-community/gpt2",
"library": "transformers",
"device": "cpu",
"device_ids": null,
"seed": 42,
"inter_op_num_threads": null,
"intra_op_num_threads": null,
"hub_kwargs": {
"revision": "main",
"force_download": false,
"local_files_only": false,
"trust_remote_code": false
},
"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",
"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-1018-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "47f521462daae132cf29116243bfd11ec14edd99",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "0.9.16",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 959.287296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6302729209999711,
"mean": 0.04848253238461316,
"stdev": 0.0009278845580908386,
"p50": 0.04878379599998084,
"p90": 0.0492147455999941,
"p95": 0.04937029719999941,
"p99": 0.049552876240005615,
"values": [
0.04917770299999802,
0.04912363100001471,
0.047266073999992386,
0.049218147999994244,
0.04878379599998084,
0.046119949999990695,
0.04844273800000565,
0.04770730099997422,
0.04959852100000717,
0.04833384299999466,
0.04920113599999354,
0.048934878000011395,
0.048365202000013596
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.25197058878751
},
"energy": {
"unit": "kWh",
"cpu": 1.6470589571528964e-06,
"ram": 6.883293793123357e-08,
"gpu": 0.0,
"total": 1.71589189508413e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1165574.5946057634
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 959.287296,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.39883740300004433,
"mean": 0.03067980023077264,
"stdev": 0.0006081779709892031,
"p50": 0.0307228760000271,
"p90": 0.03132686599999488,
"p95": 0.03156443459999991,
"p99": 0.03182845332000852,
"values": [
0.030779019999982893,
0.03134441899999274,
0.031018650000021353,
0.030634620000000723,
0.030637785999999778,
0.0307228760000271,
0.029875078999992866,
0.029803284000024632,
0.03018128200000092,
0.031256654000003437,
0.03189445800001067,
0.030863869000000932,
0.029825405999986287
]
},
"throughput": {
"unit": "tokens/s",
"value": 32.594736356756776
},
"energy": {
"unit": "kWh",
"cpu": 9.726747649687302e-07,
"ram": 4.065034045004267e-08,
"gpu": 0.0,
"total": 1.0133251054187729e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 986850.1181432132
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 12,
"total": 0.9493795660000046,
"mean": 0.07911496383333372,
"stdev": 0.001209883272354565,
"p50": 0.07953593050001473,
"p90": 0.08042491450001137,
"p95": 0.08076838710000515,
"p99": 0.0810428494199948,
"values": [
0.08048768700001574,
0.07828604700000596,
0.07985996199997203,
0.07950258300002133,
0.07676826599998776,
0.07841652100000829,
0.07753915899999697,
0.07979905799999187,
0.07956927800000813,
0.08111146499999222,
0.07977228800001512,
0.07826725199998918
]
},
"throughput": {
"unit": "tokens/s",
"value": 12.639833876517141
},
"energy": null,
"efficiency": null
}
}
}