IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
0b857b8 verified
raw
history blame
8.34 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",
"library": "transformers",
"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": {},
"hub_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,
"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.354496,
"system": "Linux",
"machine": "x86_64",
"platform": "Linux-6.5.0-1021-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.2.0",
"optimum_benchmark_commit": "7baf94000c37c83d18199a862912f4a1d19e3245",
"transformers_version": "4.40.2",
"transformers_commit": null,
"accelerate_version": "0.30.1",
"accelerate_commit": null,
"diffusers_version": "0.27.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.3",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 946.46272,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6270912819999239,
"mean": 0.044792234428565995,
"stdev": 0.002274742310623746,
"p50": 0.04603534199998194,
"p90": 0.046469210499998324,
"p95": 0.04657202490000003,
"p99": 0.04670445537999484,
"values": [
0.046437293999986196,
0.04578597400001172,
0.046482889000003524,
0.04607523099997479,
0.04624404599999821,
0.04625596799999698,
0.04569205900000384,
0.04617141099998889,
0.04673756299999354,
0.045995452999989084,
0.042881985999997596,
0.040935848000003716,
0.040687755999982755,
0.040707803999993075
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.65059681694538
},
"energy": {
"unit": "kWh",
"cpu": 1.6198531256781685e-06,
"ram": 6.769649982414876e-08,
"gpu": 0.0,
"total": 1.6875496255023173e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1185150.3326337312
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 946.46272,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3940240219999964,
"mean": 0.028144572999999746,
"stdev": 0.0019657709224799183,
"p50": 0.028790189999995164,
"p90": 0.02981960119999485,
"p95": 0.030493039999996085,
"p99": 0.0313097623999937,
"values": [
0.02904804900001068,
0.02898591299998543,
0.028741058999997904,
0.028462771000022258,
0.029324602000002642,
0.028839320999992424,
0.028622026999983063,
0.02994332299999769,
0.02953091699998822,
0.031513942999993105,
0.025060987000017576,
0.025382084000000305,
0.025232256000009556,
0.025336769999995568
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.530828625469255
},
"energy": {
"unit": "kWh",
"cpu": 9.608754217624665e-07,
"ram": 4.015936459237963e-08,
"gpu": 0.0,
"total": 1.001034786354846e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 998966.283321068
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 13,
"total": 0.9460952139999961,
"mean": 0.07277655492307662,
"stdev": 0.004204756925845241,
"p50": 0.07480900699999893,
"p90": 0.07626089900000466,
"p95": 0.07679263940000282,
"p99": 0.0773867550799946,
"values": [
0.07480900699999893,
0.07526512399999774,
0.07453133000001344,
0.0756007579999789,
0.07508701300000098,
0.07434589500002176,
0.07611432299998455,
0.07629754300000968,
0.07753528399999254,
0.06815923499999599,
0.0663509329999954,
0.0659376750000149,
0.06606109399999127
]
},
"throughput": {
"unit": "tokens/s",
"value": 13.740688894342144
},
"energy": null,
"efficiency": null
}
}
}