IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
8a2f0ed verified
raw
history blame
9.53 kB
{
"config": {
"name": "cpu_inference_transformers_text-generation_openai-community/gpt2",
"backend": {
"name": "pytorch",
"version": "2.3.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": "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-1023-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.3.1",
"optimum_benchmark_commit": "6f7b069b4b0cde5708134b51a746a564e69874ce",
"transformers_version": "4.42.4",
"transformers_commit": null,
"accelerate_version": "0.32.1",
"accelerate_commit": null,
"diffusers_version": "0.29.2",
"diffusers_commit": null,
"optimum_version": null,
"optimum_commit": null,
"timm_version": "1.0.7",
"timm_commit": null,
"peft_version": null,
"peft_commit": null
}
},
"report": {
"load": {
"memory": {
"unit": "MB",
"max_ram": 1115.42272,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.8100010649999945,
"mean": 4.8100010649999945,
"stdev": 0.0,
"p50": 4.8100010649999945,
"p90": 4.8100010649999945,
"p95": 4.8100010649999945,
"p99": 4.8100010649999945,
"values": [
4.8100010649999945
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.703964074452719e-05,
"ram": 2.80208581743409e-06,
"gpu": 0,
"total": 6.984172656196128e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 968.654848,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.631776919999993,
"mean": 0.04512692285714236,
"stdev": 0.00429957445682484,
"p50": 0.044201781499992876,
"p90": 0.04634179679998738,
"p95": 0.05145302249997598,
"p99": 0.05828253089997701,
"values": [
0.05998990799997728,
0.04514143400001558,
0.043509454999991704,
0.04433396500002118,
0.04406959799996457,
0.04357424700003776,
0.044933792999984234,
0.044788369000002604,
0.04304536199998665,
0.04449843399999054,
0.04685623799997529,
0.042178121000006286,
0.04246858700003031,
0.04238940900000898
]
},
"throughput": {
"unit": "tokens/s",
"value": 44.31944110905525
},
"energy": {
"unit": "kWh",
"cpu": 1.7043903829970797e-06,
"ram": 7.122927231080212e-08,
"gpu": 0.0,
"total": 1.7756196553078821e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1126367.3467577219
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 969.572352,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.3805838649999487,
"mean": 0.02718456178571062,
"stdev": 0.0025376856945996213,
"p50": 0.026543072500004428,
"p90": 0.027293185399992127,
"p95": 0.030480696349991374,
"p99": 0.03505709206997835,
"values": [
0.0362011909999751,
0.0263579790000108,
0.026374390000000858,
0.02704294799997342,
0.026611456000011913,
0.026474688999996943,
0.027400430000000142,
0.026644588999999996,
0.026312002999986817,
0.026778911000008065,
0.02670211700001346,
0.025965702000007695,
0.02556879499996967,
0.026148664999993798
]
},
"throughput": {
"unit": "tokens/s",
"value": 36.78558469629785
},
"energy": {
"unit": "kWh",
"cpu": 9.467587839578086e-07,
"ram": 3.9567501642750376e-08,
"gpu": 0.0,
"total": 9.863262856005586e-07
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1013863.2768882518
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.37572219200006884,
"mean": 0.026837299428576347,
"stdev": 0.002524102516706253,
"p50": 0.02619519850000529,
"p90": 0.026933272500014028,
"p95": 0.03010725485000307,
"p99": 0.03466992776998153,
"values": [
0.03581059599997616,
0.026018781000004765,
0.026033659000006537,
0.02669305000000577,
0.026267690000054245,
0.026122706999956335,
0.027036225000017566,
0.026274742999987666,
0.025889509000023736,
0.026439622999987478,
0.026388707000023714,
0.025643015000014202,
0.025269793000006757,
0.025834094000003915
]
},
"throughput": {
"unit": "tokens/s",
"value": 37.26157330626197
},
"energy": null,
"efficiency": null
}
}
}