IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8742d48 verified
raw
history blame
9.52 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": "c40deb04de5a36cb83739e342e41e216fb5a1cf2",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.33.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": 1121.775616,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.795239534000018,
"mean": 4.795239534000018,
"stdev": 0.0,
"p50": 4.795239534000018,
"p90": 4.795239534000018,
"p95": 4.795239534000018,
"p99": 4.795239534000018,
"values": [
4.795239534000018
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.750633061666824e-05,
"ram": 2.82160028619742e-06,
"gpu": 0,
"total": 7.032793090286566e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 975.245312,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6457435269999792,
"mean": 0.04612453764285566,
"stdev": 0.001587174346776919,
"p50": 0.046034405000028755,
"p90": 0.048084769399991956,
"p95": 0.048732576749989674,
"p99": 0.04916691454997817,
"values": [
0.04725535199997921,
0.0492754989999753,
0.04844023399999742,
0.04645893000002843,
0.04654775699998481,
0.04561030999997229,
0.04411636999998336,
0.04554151100001036,
0.046699411000020064,
0.04566864999998188,
0.045817879000026096,
0.046250931000031414,
0.04550519299999678,
0.04255549999999175
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.36086825381511
},
"energy": {
"unit": "kWh",
"cpu": 1.617513639777801e-06,
"ram": 6.759883343247081e-08,
"gpu": 0.0,
"total": 1.6851124732102717e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1186864.3973596864
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 976.031744,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.40095697999998947,
"mean": 0.028639784285713534,
"stdev": 0.0015491921567825737,
"p50": 0.028579456999977992,
"p90": 0.03050319710001759,
"p95": 0.03125437585003112,
"p99": 0.031603863170037695,
"values": [
0.03169123500003934,
0.0310191440000267,
0.029299320999996326,
0.0285792219999621,
0.028579691999993884,
0.02838571900002762,
0.028659812000000784,
0.028783513999997012,
0.028510753999967164,
0.028225598000005903,
0.028894492000006267,
0.028305719000002227,
0.02741096199997628,
0.024611795999987862
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.91646410545183
},
"energy": {
"unit": "kWh",
"cpu": 9.174545914722512e-07,
"ram": 3.834369650669938e-08,
"gpu": 0.0,
"total": 9.5579828797895e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1046245.8581240141
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.39457794400016155,
"mean": 0.028184138857154397,
"stdev": 0.0015200650675737234,
"p50": 0.028097718999987364,
"p90": 0.030028115600003957,
"p95": 0.030769237450019204,
"p99": 0.031128758690028346,
"values": [
0.031218639000030635,
0.03052725200001305,
0.02886346399998274,
0.028070567999975538,
0.02812486999999919,
0.027927069000043048,
0.028216481000015392,
0.028302813000038896,
0.028046813999992537,
0.027786846000026344,
0.02841338100000712,
0.02784560700001748,
0.026952612999991743,
0.024281527000027836
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.48094923418798
},
"energy": null,
"efficiency": null
}
}
}