IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
857d7c9 verified
raw
history blame
9.63 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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "74b6b688af9c4d636ae9725e491e6605ea93a83c",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.1",
"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.772096,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.91040008600001,
"mean": 4.91040008600001,
"stdev": 0.0,
"p50": 4.91040008600001,
"p90": 4.91040008600001,
"p95": 4.91040008600001,
"p99": 4.91040008600001,
"values": [
4.91040008600001
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.838164025000013e-05,
"ram": 2.858181270547406e-06,
"gpu": 0,
"total": 7.123982152054754e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 974.6432,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.6621760500000278,
"mean": 0.044145070000001854,
"stdev": 0.002874522877009839,
"p50": 0.045469928000045456,
"p90": 0.04637378339998577,
"p95": 0.047464300599978054,
"p99": 0.049383976119985386,
"values": [
0.04627847000000429,
0.04601744200004987,
0.04628060400000322,
0.04643590299997413,
0.045469928000045456,
0.04509503700001005,
0.04572467399998459,
0.04582413999997925,
0.049863894999987224,
0.041188258999966365,
0.04039509699998689,
0.04076808400003529,
0.04125768899996274,
0.0403882570000178,
0.0411885710000206
]
},
"throughput": {
"unit": "tokens/s",
"value": 45.30517224233456
},
"energy": {
"unit": "kWh",
"cpu": 1.595276588888813e-06,
"ram": 6.666903432821507e-08,
"gpu": 0.0,
"total": 1.661945623217028e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1203408.8071597675
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.774272,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 15,
"total": 0.4011889319999682,
"mean": 0.02674592879999788,
"stdev": 0.0019349839060584138,
"p50": 0.027955722000001515,
"p90": 0.028738788999999088,
"p95": 0.02891279260001056,
"p99": 0.029161618520026876,
"values": [
0.028512172999967333,
0.028339439999967908,
0.028606799999977284,
0.029223825000030956,
0.02877949300000182,
0.027955722000001515,
0.028677732999994987,
0.028202243999999155,
0.02491264200000387,
0.024761449000038738,
0.02457233500001621,
0.024507403999962207,
0.024796455000000606,
0.02467644000000746,
0.02466477699999814
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.38886794614062
},
"energy": {
"unit": "kWh",
"cpu": 9.585163315972405e-07,
"ram": 4.005964841761825e-08,
"gpu": 0.0,
"total": 9.98575980014859e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1001426.0507098517
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 15,
"total": 0.39461505700001,
"mean": 0.02630767046666733,
"stdev": 0.0018449907576250065,
"p50": 0.027453823000030297,
"p90": 0.02820781759997999,
"p95": 0.02837624779999146,
"p99": 0.028620153559994605,
"values": [
0.028008600999953615,
0.02782975599996007,
0.028076198000007935,
0.02868112999999539,
0.028245583999989776,
0.027453823000030297,
0.02815116799996531,
0.027672173000041766,
0.024580150000019785,
0.02440951099998756,
0.0242441820000181,
0.02417742699998371,
0.024462069000037445,
0.024340552000012394,
0.02428273300000683
]
},
"throughput": {
"unit": "tokens/s",
"value": 38.011727464316245
},
"energy": null,
"efficiency": null
}
}
}