IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
da0b5f4 verified
raw
history blame
9.39 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.4.1+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": null,
"numactl": false,
"numactl_kwargs": {},
"start_method": "spawn"
},
"environment": {
"cpu": " AMD EPYC 7763 64-Core Processor",
"cpu_count": 4,
"cpu_ram_mb": 16766.767104,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.8.0-1014-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.15",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "023da6c3f34d2ed94ddc0e0bfec041ce126e452f",
"transformers_version": "4.44.2",
"transformers_commit": null,
"accelerate_version": "0.34.2",
"accelerate_commit": null,
"diffusers_version": "0.30.3",
"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": 1116.11904,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.959310172000016,
"mean": 4.959310172000016,
"stdev": 0.0,
"p50": 4.959310172000016,
"p90": 4.959310172000016,
"p95": 4.959310172000016,
"p99": 4.959310172000016,
"values": [
4.959310172000016
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.825560497777715e-05,
"ram": 2.854504635586977e-06,
"gpu": 0,
"total": 7.111010961336412e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 969.580544,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.6238718959999972,
"mean": 0.047990145846153624,
"stdev": 0.001078074775637448,
"p50": 0.048205365000001166,
"p90": 0.04908528560000036,
"p95": 0.0493104464000055,
"p99": 0.049464207680013035,
"values": [
0.04762542500000677,
0.04867281299999604,
0.04918231199999923,
0.046175647999973535,
0.048226902999999766,
0.0475577489999921,
0.048205365000001166,
0.04869718000000489,
0.04858649300001616,
0.04815904699998441,
0.049502648000014915,
0.047799999000005755,
0.04548031400000241
]
},
"throughput": {
"unit": "tokens/s",
"value": 41.67522237610159
},
"energy": {
"unit": "kWh",
"cpu": 1.7392427043478276e-06,
"ram": 7.272643974746955e-08,
"gpu": 0.0,
"total": 1.8119691440952974e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1103771.5551158488
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 970.235904,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 13,
"total": 0.388543956999996,
"mean": 0.029887996692307385,
"stdev": 0.0013425949337533918,
"p50": 0.03018197900001951,
"p90": 0.030735744399999022,
"p95": 0.030996818200003416,
"p99": 0.03127747324000893,
"values": [
0.030762938999998823,
0.030306380000013178,
0.029546805999984826,
0.029939146000003802,
0.030018093999984785,
0.02968076600001268,
0.03134763700001031,
0.030525136999983715,
0.03062696599999981,
0.03018197900001951,
0.030335694000001467,
0.029734214999990627,
0.025538197999992462
]
},
"throughput": {
"unit": "tokens/s",
"value": 33.4582478141595
},
"energy": {
"unit": "kWh",
"cpu": 1.012894497504038e-06,
"ram": 4.2356372294957596e-08,
"gpu": 0.0,
"total": 1.055250869798996e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 947641.9575853841
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.3816851280000435,
"mean": 0.02936039446154181,
"stdev": 0.0013019479168053963,
"p50": 0.029637225000016088,
"p90": 0.03019082500000536,
"p95": 0.03045931240000641,
"p99": 0.030757644880008,
"values": [
0.030210702000005085,
0.029765954999987798,
0.029029833999999255,
0.029365319000021373,
0.029459465000002183,
0.029153505000010682,
0.0308322280000084,
0.029990601999998034,
0.030111317000006466,
0.029637225000016088,
0.02979160199998887,
0.029167360999991843,
0.02517001300000743
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.05948790333407
},
"energy": null,
"efficiency": null
}
}
}