IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
7d6386f verified
raw
history blame
9.47 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.7712,
"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.5.0",
"optimum_benchmark_commit": "65940a2050d7f9877e8342436b601f47fdbbb585",
"transformers_version": "4.45.1",
"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": 1110.188032,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
1.748812111999996
],
"count": 1,
"total": 1.748812111999996,
"mean": 1.748812111999996,
"p50": 1.748812111999996,
"p90": 1.748812111999996,
"p95": 1.748812111999996,
"p99": 1.748812111999996,
"stdev": 0,
"stdev_": 0
},
"throughput": null,
"energy": null,
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 965.091328,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.045159581000007165,
0.04782010300004913,
0.048109933000034744,
0.045600812999964546,
0.04557635800000526,
0.04686897900000986,
0.045508582000024944,
0.04807066099999702,
0.04799457799998663,
0.04759849999999233,
0.0461754049999854,
0.04738526099998808,
0.04742278100002295,
0.04446566699999721
],
"count": 14,
"total": 0.6537572020000653,
"mean": 0.04669694300000466,
"p50": 0.04712711999999897,
"p90": 0.0480478360999939,
"p95": 0.04808440620001022,
"p99": 0.04810482764002984,
"stdev": 0.0011998660854343115,
"stdev_": 2.569474591589843
},
"throughput": {
"unit": "tokens/s",
"value": 42.82935608868016
},
"energy": {
"unit": "kWh",
"cpu": 1.6855388877314497e-06,
"ram": 7.047918965611992e-08,
"gpu": 0.0,
"total": 1.7560180773875695e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1138940.439027486
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 965.091328,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"values": [
0.029038425999999617,
0.02787078799997289,
0.028081450999991375,
0.027976996000006693,
0.02838096900001119,
0.02798565199998393,
0.028071210999996765,
0.02770303500000182,
0.029908277999993516,
0.028626497000004747,
0.027926182000044264,
0.0290267440000207,
0.026313824999988356,
0.027343624999957683
],
"count": 14,
"total": 0.39425367899997354,
"mean": 0.02816097707142668,
"p50": 0.028028431499990347,
"p90": 0.029034921400005943,
"p95": 0.029342874199997482,
"p99": 0.029795197239994308,
"stdev": 0.0008170368758343155,
"stdev_": 2.901308693096859
},
"throughput": {
"unit": "tokens/s",
"value": 35.51013153640334
},
"energy": {
"unit": "kWh",
"cpu": 9.79358107453715e-07,
"ram": 4.095441563995275e-08,
"gpu": 0.0,
"total": 1.020312523093668e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 980091.8614307713
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"values": [
0.028640944000017043,
0.02746865799997522,
0.027691313999980594,
0.027526566000005914,
0.027957318999995096,
0.02758130799998071,
0.027670403999991322,
0.02723674500003881,
0.029461855000022297,
0.028227052000033837,
0.02752711700003374,
0.028434921000041413,
0.025921832999983963,
0.026954859999989367
],
"count": 14,
"total": 0.3883008960000893,
"mean": 0.027735778285720665,
"p50": 0.027625855999986015,
"p90": 0.028579137100024354,
"p95": 0.02892826285001888,
"p99": 0.029355136570021614,
"stdev": 0.000798030435648703,
"stdev_": 2.87725993274022
},
"throughput": {
"unit": "tokens/s",
"value": 36.05451376552265
},
"energy": null,
"efficiency": null
}
}
}