IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
4670446 verified
raw
history blame
8.4 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.346304,
"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": "d35829e539df8480b726c647eeabf91e41eae047",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.0",
"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": 948.645888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6339867150000487,
"mean": 0.04528476535714633,
"stdev": 0.0016215549762257887,
"p50": 0.04481703600001197,
"p90": 0.0462271221999913,
"p95": 0.04779731334999155,
"p99": 0.050004287469986364,
"values": [
0.04631184999999505,
0.045226536999962264,
0.04494494300001861,
0.044653621000009025,
0.0438055200000349,
0.043956301000037,
0.04468912900000532,
0.044451223999999456,
0.045247165999967365,
0.04547249600000214,
0.04428059600002143,
0.04436187700002847,
0.05055603099998507,
0.046029423999982555
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.16496329895154
},
"energy": {
"unit": "kWh",
"cpu": 1.6950056748689663e-06,
"ram": 7.08365921310357e-08,
"gpu": 0.0,
"total": 1.765842267000002e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1132603.9915206071
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 948.645888,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3902009259998067,
"mean": 0.02787149471427191,
"stdev": 0.0009935493351508349,
"p50": 0.027663960000012366,
"p90": 0.028723292899968556,
"p95": 0.029497946349965786,
"p99": 0.030467642869971313,
"values": [
0.028845265999962066,
0.02765952700002572,
0.028438688999983697,
0.027900404999968487,
0.026684158999955798,
0.0275202869999589,
0.028259613999978228,
0.027668392999999014,
0.0281797860000097,
0.027368894999995064,
0.027082210000003215,
0.030710066999972696,
0.026835671000014827,
0.027047956999979306
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.87895124576648
},
"energy": {
"unit": "kWh",
"cpu": 1.013396446639597e-06,
"ram": 4.2353689736012584e-08,
"gpu": 0.0,
"total": 1.0557501363756092e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 947193.8156058408
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9492799199999808,
"mean": 0.07302153230769083,
"stdev": 0.0016894624988902415,
"p50": 0.07290782799998397,
"p90": 0.07464429679997693,
"p95": 0.07599381059999359,
"p99": 0.07726914132003003,
"values": [
0.07292421599998988,
0.07337603700000273,
0.0725685219999832,
0.07053093600001148,
0.07146733100000802,
0.07290782799998397,
0.07216007099998478,
0.07349734400003172,
0.07284272300000794,
0.07139964499998541,
0.07493103499996323,
0.07758797400003914,
0.07308625799998936
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.694590737788136
},
"energy": null,
"efficiency": null
}
}
}