IlyasMoutawwakil's picture
Upload cpu_inference_transformers_text-generation_openai-community/gpt2/benchmark.json with huggingface_hub
988faa2 verified
raw
history blame
9.52 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-1025-azure-x86_64-with-glibc2.35",
"processor": "x86_64",
"python_version": "3.10.14",
"optimum_benchmark_version": "0.4.0",
"optimum_benchmark_commit": "144d755b3f25afde6379cd1489a9242ba4ce723e",
"transformers_version": "4.44.0",
"transformers_commit": null,
"accelerate_version": "0.33.0",
"accelerate_commit": null,
"diffusers_version": "0.30.0",
"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": 1119.854592,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 1,
"total": 4.885492091000003,
"mean": 4.885492091000003,
"stdev": 0.0,
"p50": 4.885492091000003,
"p90": 4.885492091000003,
"p95": 4.885492091000003,
"p99": 4.885492091000003,
"values": [
4.885492091000003
]
},
"throughput": null,
"energy": {
"unit": "kWh",
"cpu": 6.838964887222182e-05,
"ram": 2.8585156119824488e-06,
"gpu": 0,
"total": 7.124816448420427e-05
},
"efficiency": null
},
"prefill": {
"memory": {
"unit": "MB",
"max_ram": 973.185024,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.6510882919999403,
"mean": 0.04650630657142431,
"stdev": 0.002031433482843606,
"p50": 0.0470944314999997,
"p90": 0.04806874180002296,
"p95": 0.04847385980001491,
"p99": 0.04896336075999898,
"values": [
0.04573753699997951,
0.04785181800002647,
0.046834809000017685,
0.045054683999978806,
0.04789223400001674,
0.04666177299998253,
0.047620432999963214,
0.04814438800002563,
0.04778945099997145,
0.04667190100002472,
0.049085735999994995,
0.047354053999981716,
0.04146578299997827,
0.0429236909999986
]
},
"throughput": {
"unit": "tokens/s",
"value": 43.00492013762485
},
"energy": {
"unit": "kWh",
"cpu": 1.6471950136574285e-06,
"ram": 6.883882320592139e-08,
"gpu": 0.0,
"total": 1.7160338368633499e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 1165478.1840757274
}
},
"decode": {
"memory": {
"unit": "MB",
"max_ram": 974.2336,
"max_global_vram": null,
"max_process_vram": null,
"max_reserved": null,
"max_allocated": null
},
"latency": {
"unit": "s",
"count": 14,
"total": 0.405951185000049,
"mean": 0.028996513214289216,
"stdev": 0.0013908038226888766,
"p50": 0.029587314000025344,
"p90": 0.030225692499988098,
"p95": 0.030308906899992393,
"p99": 0.03041015817997902,
"values": [
0.029826769000010245,
0.030435470999975678,
0.028686425999978837,
0.02960244700000203,
0.02988929600002166,
0.029218486000047506,
0.02957218100004866,
0.029949458999965373,
0.02882716200002733,
0.030240757000001395,
0.030190541999957077,
0.02643467600000804,
0.02628880200001049,
0.02678871099999469
]
},
"throughput": {
"unit": "tokens/s",
"value": 34.486905118895784
},
"energy": {
"unit": "kWh",
"cpu": 9.71566485231545e-07,
"ram": 4.06043643731167e-08,
"gpu": 0.0,
"total": 1.0121708496046615e-06
},
"efficiency": {
"unit": "tokens/kWh",
"value": 987975.4987911228
}
},
"per_token": {
"memory": null,
"latency": {
"unit": "s",
"count": 14,
"total": 0.399307856000064,
"mean": 0.028521989714290288,
"stdev": 0.0013292481091218484,
"p50": 0.029120021000039742,
"p90": 0.029673451399963822,
"p95": 0.029763459899962187,
"p99": 0.029892229579964465,
"values": [
0.029292415000043093,
0.029924421999965034,
0.028246560000013687,
0.029125160000035066,
0.02935427099998833,
0.028737953000018024,
0.029114882000044418,
0.029413541999986137,
0.028341108999995868,
0.029676787999960652,
0.029665665999971225,
0.02606847800001333,
0.025924097000029178,
0.02642251299999998
]
},
"throughput": {
"unit": "tokens/s",
"value": 35.06066757674248
},
"energy": null,
"efficiency": null
}
}
}