IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8587ad4 verified
raw
history blame
9.51 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-1024-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "3d7258bc53700ac83eb355d4dbbeac8dec4eb496",
"transformers_version": "4.43.3",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.8",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1110.700032,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.9836419160000105,
"mean": 4.9836419160000105,
"stdev": 0.0,
"p50": 4.9836419160000105,
"p90": 4.9836419160000105,
"p95": 4.9836419160000105,
"p99": 4.9836419160000105,
"values": [
4.9836419160000105
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.750328805711535e-05,
"ram": 2.821455310006513e-06,
"gpu": 0,
"total": 7.032474336712186e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 964.050944,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6061337680000065,
"mean": 0.043295269142857605,
"stdev": 0.001877189216895633,
"p50": 0.04273556600000461,
"p90": 0.04643531699999812,
"p95": 0.04742716495001957,
"p99": 0.047709720990041546,
"values": [
0.047236983000004784,
0.04778036000004704,
0.04328778399997191,
0.04285363200000347,
0.04303551299994979,
0.04296166400001766,
0.042096396000033565,
0.04456476299998258,
0.042363134000027,
0.04162081599997691,
0.04261750000000575,
0.0419444419999877,
0.04148194499998681,
0.04228883600001154
]
},
"throughput": {
"unit": "tokens/s",
"value": 46.19442353853432
},
"energy": {
"unit": "kWh",
"cpu": 1.659082207414839e-06,
"ram": 6.933488494254902e-08,
"gpu": 0.0,
"total": 1.728417092357388e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1157128.108049545
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 964.837376,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.39680794700001343,
"mean": 0.028343424785715245,
"stdev": 0.006708748704519758,
"p50": 0.026225478499981136,
"p90": 0.029175095299990517,
"p95": 0.037461895699991025,
"p99": 0.049252179139998,
"values": [
0.05219974999999977,
0.02952612799998633,
0.02620449500000177,
0.02657688100003952,
0.028356019000000288,
0.026221986999985347,
0.02625661100000798,
0.02609110299999884,
0.02695015000000467,
0.025643535000028805,
0.026228969999976925,
0.02591563400000041,
0.025149181000017506,
0.025487502999965272
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.28155145541862
},
"energy": {
"unit": "kWh",
"cpu": 9.523581685843298e-07,
"ram": 3.980077563269901e-08,
"gpu": 0.0,
"total": 9.92158944217028e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1007903.0238337063
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.3915542380000261,
"mean": 0.02796815985714472,
"stdev": 0.006673740160836508,
"p50": 0.025871421000005057,
"p90": 0.02882410970000251,
"p95": 0.03705699234998575,
"p99": 0.04876894246999028,
"values": [
0.051696929999991426,
0.029173948999982713,
0.025864217999981065,
0.02622419100003981,
0.0280078180000487,
0.02587862400002905,
0.025684611999963636,
0.02573012700003119,
0.026548729000012372,
0.025308117999998103,
0.0259012569999868,
0.025552764999986266,
0.0248221790000116,
0.02516072099996336
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.754944376311585
},
"energy": null,
"efficiency": null
}
}
}